Changeset 2463 in ntrip for trunk


Ignore:
Timestamp:
May 2, 2010, 11:57:50 AM (15 years ago)
Author:
mervart
Message:

* empty log message *

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/RTCM3/RTCM3Decoder.cpp

    r2387 r2463  
    366366
    367367bool RTCM3Decoder::storeEph(const t_ephGPS& gpseph) {
     368  const double secPerWeek = 7.0 * 24.0 * 3600.0;
    368369  double weekold = 0.0;
    369   double weeknew = gpseph.GPSweek() + gpseph.GPSweeks() / 86400.0;
     370  double weeknew = gpseph.GPSweek() + gpseph.GPSweeks() / secPerWeek;
    370371  if ( _ephList.find(gpseph.prn()) != _ephList.end() ) {
    371372    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 ) {
    376377    _ephList[gpseph.prn()] = gpseph;
    377378
Note: See TracChangeset for help on using the changeset viewer.