Changeset 9408 in ntrip for trunk/BNC/src


Ignore:
Timestamp:
Apr 19, 2021, 11:09:38 AM (4 years ago)
Author:
stuerze
Message:

eph checks harmonized

File:
1 edited

Legend:

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

    r9380 r9408  
    218218  // --------------------------------------------------------
    219219  if (realTime) {
    220     bncTime   toc = eph->TOC();
    221     QDateTime now = currentDateAndTimeGPS();
    222     bncTime currentTime(now.toString(Qt::ISODate).toStdString());
    223     double dt = currentTime - toc;
    224 
    225     // update interval: 2h, data sets are valid for 4 hours
    226     if      (eph->type() == t_eph::GPS     && (dt > 14400.0 || dt < -7200.0)) {
    227       eph->setCheckState(t_eph::outdated);
    228       return;
    229     }
    230     // update interval: 3h, data sets are valid for 4 hours
    231     else if (eph->type() == t_eph::Galileo && (dt > 14400.0 || dt <     0.0)) {
    232       eph->setCheckState(t_eph::outdated);
    233       return;
    234     }
    235     // updated every 30 minutes + 5 min
    236     else if (eph->type() == t_eph::GLONASS && (dt >  3900.0 || dt < -2100.0)) {
    237       eph->setCheckState(t_eph::outdated);
    238       return;
    239     }
    240     // orbit parameters are valid for 7200 seconds (minimum)
    241     else if (eph->type() == t_eph::QZSS    && (dt >  7200.0 || dt < -3600.0)) {
    242       eph->setCheckState(t_eph::outdated);
    243       return;
    244     }
    245     // maximum update interval: 300 sec
    246     else if (eph->type() == t_eph::SBAS    && (dt >   600.0 || dt <  -600.0)) {
    247       eph->setCheckState(t_eph::outdated);
    248       return;
    249     }
    250     // updates 1h + 5 min
    251     else if (eph->type() == t_eph::BDS     && (dt >  3900.0 || dt <     0.0)) {
    252       eph->setCheckState(t_eph::outdated);
    253       return;
    254     }
    255     // update interval: up to 24 hours
    256     else if (eph->type() == t_eph::IRNSS   && fabs(dt > 86400.0)) {
     220    if (outDatedBcep(eph)) {
    257221      eph->setCheckState(t_eph::outdated);
    258222      return;
Note: See TracChangeset for help on using the changeset viewer.