Changeset 9406 in ntrip


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

eph checks harmonized

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/bncutils.cpp

    r9377 r9406  
    272272
    273273  // update interval: 2h, data sets are valid for 4 hours
    274   if      (eph->type() == t_eph::GPS     && dt > 14400.0) {
     274  if      (eph->type() == t_eph::GPS     && (dt > 14400.0 || dt < -7200.0)) {
    275275    return true;
    276276  }
    277277  // update interval: 3h, data sets are valid for 4 hours
    278   else if (eph->type() == t_eph::Galileo && dt > 14400.0) {
     278  else if (eph->type() == t_eph::Galileo && (dt > 14400.0 || dt <     0.0)) {
    279279    return true;
    280280  }
    281281  // updated every 30 minutes + 5 min
    282   else if (eph->type() == t_eph::GLONASS && dt >  3900.0) {
     282  else if (eph->type() == t_eph::GLONASS && (dt >  3900.0 || dt < -2100.0)) {
    283283    return true;
    284284  }
    285285  // orbit parameters are valid for 7200 seconds (minimum)
    286   else if (eph->type() == t_eph::QZSS    && dt >  7200.0) {
     286  else if (eph->type() == t_eph::QZSS    && (dt >  7200.0 || dt < -3600.0)) {
    287287    return true;
    288288  }
    289289  // maximum update interval: 300 sec
    290   else if (eph->type() == t_eph::SBAS    && dt >   600.0) {
     290  else if (eph->type() == t_eph::SBAS    && (dt >   600.0 || dt <  -600.0)) {
    291291    return true;
    292292  }
    293293  // updates 1h + 5 min
    294   else if (eph->type() == t_eph::BDS     && dt >  3900.0) {
     294  else if (eph->type() == t_eph::BDS     && (dt >  3900.0 || dt <     0.0) ) {
    295295    return true;
    296296  }
    297297  // update interval: up to 24 hours
    298   else if (eph->type() == t_eph::IRNSS   && dt > 86400.0) {
     298  else if (eph->type() == t_eph::IRNSS   && (fabs(dt > 86400.0))) {
    299299    return true;
    300300  }
     301
    301302  return false;
    302303}
Note: See TracChangeset for help on using the changeset viewer.