Changeset 9240 in ntrip for trunk/BNC/src


Ignore:
Timestamp:
Nov 11, 2020, 11:15:50 AM (3 years ago)
Author:
stuerze
Message:

another BRDC check is added

File:
1 edited

Legend:

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

    r9202 r9240  
    259259  }
    260260
    261   // Check consistency with older ephemerides
    262   // ----------------------------------------
     261  // Check consistency with older ephemeris
     262  // --------------------------------------
    263263  const double MAXDIFF = 1000.0;
     264  const double MINDIFF =    1.0;
    264265  QString      prn     = QString(eph->prn().toInternalString().c_str());
    265266  t_eph*       ephL    = ephLast(prn);
     
    276277    double diffC = fabs(xc(4) - xcL(4)) * t_CST::c;
    277278
    278     // some lines to allow update of ephemeris data sets after outage
     279    // some lines to allow update of ephemeris data sets after an outage
    279280    // update interval: 2h,
    280281    if      (eph->type() == t_eph::GPS     && dt >  2*3600) {
     
    315316    if (diff < MAXDIFF && diffC < MAXDIFF) {
    316317      if (dt != 0.0) {
    317         eph->setCheckState(t_eph::ok);
    318         ephL->setCheckState(t_eph::ok);
     318        if (diff < MINDIFF && diffC < MINDIFF &&
     319            ephL->checkState() == t_eph::ok) {
     320          // to prevent the same data sets with different TOC values
     321          eph->setCheckState(t_eph::bad);
     322        }
     323        else {
     324          eph->setCheckState(t_eph::ok);
     325          ephL->setCheckState(t_eph::ok);
     326        }
    319327      }
    320328    }
Note: See TracChangeset for help on using the changeset viewer.