Page 1 of 1

Time not set when fix >= TD_GEOLOC_TIME_FIX

Posted: Sun Feb 14, 2016 11:51 am
by disk91
When testing fix->type >= TD_GEOLOC_TIME_FIX and trying to access year, it returns 255 most of the time.
Works when waiting for longer time. So TIME_FIX seems not to be TIME_FIX ready

Trace in GPS callback :

if (fix->type >= TD_GEOLOC_TIME_FIX ) {
tfp_printf("year :%d\r\n",fix->datetime.year);
}

year :255
year :255
year :255
year :2016

Re: Time not set when fix >= TD_GEOLOC_TIME_FIX

Posted: Sun Feb 14, 2016 12:54 pm
by lcheminade
Time isn't date! You would usually get time first, then date, then position. And no there isn't any TD_GEOLOC_DATE_FIX indicator but you just need to check for year just as you did.

Re: Time not set when fix >= TD_GEOLOC_TIME_FIX

Posted: Mon Feb 15, 2016 12:09 pm
by disk91
lcheminade wrote:Time isn't date! You would usually get time first, then date, then position. And no there isn't any TD_GEOLOC_DATE_FIX indicator but you just need to check for year just as you did.


I found it myself ... shame on me ;)