tomojitakasu / RTKLIB

2.58k stars 1.63k forks source link

Reading precise ephemeris #625

Open Weirdo-p opened 3 years ago

Weirdo-p commented 3 years ago

I found that the precise ephemeris will be incomplete when reading head of mix precise ephemeris which may be caused by this in preceph.c.

if (ns==0) {
    ns=(int)str2num(buff,4,2);
}

The bug can be fixed by changing code like this:

if (ns==0) {
    ns=(int)str2num(buff,3,3);
}