Changeset 11137 in ntrip for trunk/BNC/src/ephemeris.cpp
- Timestamp:
- Oct 28, 2026, 9:48:01 PM (19 hours ago)
- File:
-
- 1 edited
-
trunk/BNC/src/ephemeris.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/ephemeris.cpp
r11057 r11137 26 26 _clkCorr = 0; 27 27 } 28 29 // Is this data set newer than eph (the latest one received)? 30 // Usually its TOC is later. An upload of a GPS or QZSS satellite within the 31 // curve fit interval (cutover) gets a TOC slightly earlier than that of the 32 // data set it replaces (e.g. 01:59:44 instead of 02:00:00, i.e. off the regular 33 // grid), and a different IOD; the new upload is broadcast from then on and 34 // the corrections of the ACs refer to it. 35 //////////////////////////////////////////////////////////////////////////// 36 bool t_eph::isNewerThan(const t_eph* eph) const { 37 if (eph->_TOC < _TOC) { 38 return true; 39 } 40 const double MAX_CUTOVER_SHIFT = 600.0; // observed: 16 s, 32 s 41 if ((system() == GPS || system() == QZSS) && system() == eph->system() && 42 IOD() != eph->IOD() && eph->_TOC - _TOC <= MAX_CUTOVER_SHIFT) { 43 return true; 44 } 45 return false; 46 } 47 28 48 // Destructor 29 49 ////////////////////////////////////////////////////////////////////////////
Note:
See TracChangeset
for help on using the changeset viewer.
