mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-04-19 09:13:20 +00:00
Fix TOW wrong rollover for modern ephemeris
This commit is contained in:
parent
2832c5d379
commit
630e94dbef
@ -2128,6 +2128,11 @@ int adjgpsweek(int week, int custom_year)
|
||||
// w = week + 1024; //add weeks from 6-january-1980 to week rollover in 21 august 1999
|
||||
// }
|
||||
int w;
|
||||
if (week>1023)
|
||||
{
|
||||
return week;
|
||||
}
|
||||
|
||||
if (custom_year == 0)
|
||||
{
|
||||
(void)time2gpst(utc2gpst(timeget()), &w);
|
||||
|
Loading…
x
Reference in New Issue
Block a user