Changeset 6468 in ntrip for trunk/BNC/src/RTCM3


Ignore:
Timestamp:
Dec 27, 2014, 7:57:27 PM (10 years ago)
Author:
mervart
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/RTCM3/RTCM3coDecoder.cpp

    r6467 r6468  
    368368  }
    369369  else if (_codeBias.NumberOfSat[CLOCKORBIT_SATGPS] > 0) {
    370     epoSecGPS = _clkOrb.EpochTime[CLOCKORBIT_SATGPS]; // 0 .. 604799 s 
     370    epoSecGPS = _codeBias.EpochTime[CLOCKORBIT_SATGPS]; // 0 .. 604799 s 
    371371  }
    372372  else if (_clkOrb.NumberOfSat[CLOCKORBIT_SATGLONASS] > 0) {
    373     epoSecGlo = _codeBias.EpochTime[CLOCKORBIT_SATGLONASS]; // 0 .. 86399 s (86400 for leap second)
     373    epoSecGlo = _clkOrb.EpochTime[CLOCKORBIT_SATGLONASS]; // 0 .. 86399 s (86400 for leap second)
    374374  }
    375375  else if (_codeBias.NumberOfSat[CLOCKORBIT_SATGLONASS] > 0) {
     
    388388  if      (epoSecGPS != -1) {
    389389    _lastTime.set(currentWeek, epoSecGPS);
    390     while (_lastTime < currentTime - 7 * 86400.0) {
    391       _lastTime = _lastTime + 7 * 86400.0;
    392     }
    393     while (_lastTime > currentTime + 7 * 86400.0) {
    394       _lastTime = _lastTime - 7 * 86400.0;
    395     }
    396390  }
    397391  else if (epoSecGlo != -1) {
     
    399393    epoSecGlo = epoSecGlo - 3 * 3600 + gnumleap(date.year(), date.month(), date.day());
    400394    _lastTime.set(currentWeek, epoSecGlo);
    401     while (_lastTime < currentTime - 86400.0) {
    402       _lastTime = _lastTime + 86400.0;
    403     }
    404     while (_lastTime > currentTime + 86400.0) {
    405       _lastTime = _lastTime - 86400.0;
    406     }
    407   }
    408 }
     395  }
     396
     397  if (_lastTime.valid()) {
     398    while (_lastTime < currentTime - 86400.0/2) {
     399      _lastTime = _lastTime + 86400.0/2;
     400    }
     401    while (_lastTime > currentTime + 86400.0/2) {
     402      _lastTime = _lastTime - 86400.0/2;
     403    }
     404  }
     405}
Note: See TracChangeset for help on using the changeset viewer.