- Timestamp:
- May 2, 2010, 11:57:50 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/RTCM3/RTCM3Decoder.cpp
r2387 r2463 366 366 367 367 bool RTCM3Decoder::storeEph(const t_ephGPS& gpseph) { 368 const double secPerWeek = 7.0 * 24.0 * 3600.0; 368 369 double weekold = 0.0; 369 double weeknew = gpseph.GPSweek() + gpseph.GPSweeks() / 86400.0;370 double weeknew = gpseph.GPSweek() + gpseph.GPSweeks() / secPerWeek; 370 371 if ( _ephList.find(gpseph.prn()) != _ephList.end() ) { 371 372 weekold = _ephList.find(gpseph.prn())->second.GPSweek() 372 + _ephList.find(gpseph.prn())->second.GPSweeks() / 86400.0;373 } 374 375 if ( weeknew - weekold > 1 /86400.0) {373 + _ephList.find(gpseph.prn())->second.GPSweeks() / secPerWeek; 374 } 375 376 if ( weeknew - weekold > 1.0/secPerWeek ) { 376 377 _ephList[gpseph.prn()] = gpseph; 377 378
Note:
See TracChangeset
for help on using the changeset viewer.