mirror of
https://github.com/gnss-sdr/gnss-sdr
synced 2025-11-07 02:33:03 +00:00
Bug correction in SUPL client (the assistance TOW scale was 0.08 s instead of 1 s)
git-svn-id: https://svn.code.sf.net/p/gnss-sdr/code/trunk@409 64b25241-fba3-4117-9849-534c7e92360d
This commit is contained in:
@@ -197,7 +197,9 @@ static time_t utc_time(int week, long tow) {
|
||||
|
||||
/* soon week will wrap again, uh oh... */
|
||||
/* TS 44.031: GPSTOW, range 0-604799.92, resolution 0.08 sec, 23-bit presentation */
|
||||
t += (1024 + week) * 604800 + tow*0.08;
|
||||
/* The factor 0.08 was applied in the ephemeris SUPL class */
|
||||
/* here the tow is in [s] */
|
||||
t += (1024 + week) * 604800 + tow;
|
||||
|
||||
return t;
|
||||
}
|
||||
@@ -417,8 +419,8 @@ int main(int argc, char** argv)
|
||||
|
||||
std::cout << "Reference location (defined in config file):" << std::endl;
|
||||
|
||||
std::cout << "Latitude=" << lat_deg << " [<5B>]" << std::endl;
|
||||
std::cout << "Longitude=" << lon_deg << " [<5B>]" << std::endl;
|
||||
std::cout << "Latitude=" << lat_deg << " [<5B>]" << std::endl;
|
||||
std::cout << "Longitude=" << lon_deg << " [<5B>]" << std::endl;
|
||||
std::cout << "Altitude=" << altitude_m << " [m]" << std::endl;
|
||||
|
||||
if (doppler_measurements_map.size() == 0)
|
||||
|
||||
Reference in New Issue
Block a user