Questions and discussions about the software that runs on the TD RF module itself.
disk91
 
Posts: 58
Joined: Thu May 07, 2015 4:30 pm

Time not set when fix >= TD_GEOLOC_TIME_FIX

by disk91 Sun Feb 14, 2016 11:51 am

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
User avatar
lcheminade
 
Posts: 146
Joined: Mon May 11, 2015 7:47 am

Re: Time not set when fix >= TD_GEOLOC_TIME_FIX

by lcheminade Sun Feb 14, 2016 12:54 pm

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.
disk91
 
Posts: 58
Joined: Thu May 07, 2015 4:30 pm

Re: Time not set when fix >= TD_GEOLOC_TIME_FIX

by disk91 Mon Feb 15, 2016 12:09 pm

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 ;)
Return to Firmware

Who is online

Users browsing this forum: No registered users and 27 guests