Changeset 11137 in ntrip for trunk/BNC/src/ephemeris.cpp


Ignore:
Timestamp:
Oct 28, 2026, 9:48:01 PM (19 hours ago)
Author:
stuerze
Message:

eph handling improved

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/ephemeris.cpp

    r11057 r11137  
    2626  _clkCorr = 0;
    2727}
     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////////////////////////////////////////////////////////////////////////////
     36bool 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
    2848// Destructor
    2949////////////////////////////////////////////////////////////////////////////
Note: See TracChangeset for help on using the changeset viewer.