Changeset 9377 in ntrip


Ignore:
Timestamp:
Mar 12, 2021, 11:20:03 AM (3 years ago)
Author:
stuerze
Message:

minor changes

Location:
branches/BNC_2.12/src
Files:
2 edited

Legend:

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

    r9363 r9377  
    224224    double dt = currentTime - toc;
    225225
    226     // update interval: 2h, data sets are valid for 4 hours + 5 min
    227     if      (eph->type() == t_eph::GPS     && (dt > 14700.0 || dt < -7500.0)) {
    228       eph->setCheckState(t_eph::outdated);
    229       return;
    230     }
    231     // update interval: 3h, data sets are valid for 4 hours + 5 min
    232     else if (eph->type() == t_eph::Galileo && (dt > 14700.0 || dt < 0.0)) {
     226    // update interval: 2h, data sets are valid for 4 hours
     227    if      (eph->type() == t_eph::GPS     && (dt > 14400.0 || dt < -7200.0)) {
     228      eph->setCheckState(t_eph::outdated);
     229      return;
     230    }
     231    // update interval: 3h, data sets are valid for 4 hours
     232    else if (eph->type() == t_eph::Galileo && (dt > 14400.0 || dt <    0.0)) {
    233233      eph->setCheckState(t_eph::outdated);
    234234      return;
    235235    }
    236236    // updated every 30 minutes + 5 min
    237     else if (eph->type() == t_eph::GLONASS && (dt > 3900.0 || dt < -2100.0)) {
    238       eph->setCheckState(t_eph::outdated);
    239       return;
    240     }
    241     // orbit parameters are valid for 7200 seconds (minimum) + 5 min
    242     else if (eph->type() == t_eph::QZSS    && (dt > 7500.0 || dt < 3900.0)) {
    243       eph->setCheckState(t_eph::outdated);
    244       return;
    245     }
    246     // maximum update interval: 300 sec + 5 min
    247     else if (eph->type() == t_eph::SBAS    && (dt > 600.0 || dt < -600.0)) {
     237    else if (eph->type() == t_eph::GLONASS && (dt >  3900.0 || dt < -2100.0)) {
     238      eph->setCheckState(t_eph::outdated);
     239      return;
     240    }
     241    // orbit parameters are valid for 7200 seconds (minimum)
     242    else if (eph->type() == t_eph::QZSS    && (dt >  7200.0 || dt < -3600.0)) {
     243      eph->setCheckState(t_eph::outdated);
     244      return;
     245    }
     246    // maximum update interval: 300 sec
     247    else if (eph->type() == t_eph::SBAS    && (dt >   600.0 || dt < -600.0)) {
    248248      eph->setCheckState(t_eph::outdated);
    249249      return;
    250250    }
    251251    // updates 1h + 5 min
    252     else if (eph->type() == t_eph::BDS     && (dt > 3900.0 || dt < 0.0)) {
    253       eph->setCheckState(t_eph::outdated);
    254       return;
    255     }
    256     // update interval: up to 24 hours + 5 min
    257     else if (eph->type() == t_eph::IRNSS   && fabs(dt > 86700.0)) {
     252    else if (eph->type() == t_eph::BDS     && (dt >  3900.0 || dt <    0.0)) {
     253      eph->setCheckState(t_eph::outdated);
     254      return;
     255    }
     256    // update interval: up to 24 hours
     257    else if (eph->type() == t_eph::IRNSS   && fabs(dt > 86400.0)) {
    258258      eph->setCheckState(t_eph::outdated);
    259259      return;
     
    275275    MAXDIFF *= 10.0;
    276276  }
    277  
     277
    278278  if (ephL) {
    279279    ColumnVector xcL(6);
     
    305305    double dt = eph->TOC() - ephL->TOC();
    306306
    307     // update interval: 2h, + 5 min
    308     if      (eph->type() == t_eph::GPS     && dt > 3900.0) {
    309       ephL->setCheckState(t_eph::outdated);
    310       return;
    311     }
    312     // update interval: 3h, + 5 min
    313     else if (eph->type() == t_eph::Galileo && dt > 11100.0) {
    314       ephL->setCheckState(t_eph::outdated);
    315       return;
    316     }
    317     // updated every 30 minutes
    318     else if (eph->type() == t_eph::GLONASS && dt > 2100.0) {
     307    // update interval: 2h
     308    if      (eph->type() == t_eph::GPS     && dt >  3600.0) {
     309      ephL->setCheckState(t_eph::outdated);
     310      return;
     311    }
     312    // update interval: 3h
     313    else if (eph->type() == t_eph::Galileo && dt > 10800.0) {
     314      ephL->setCheckState(t_eph::outdated);
     315      return;
     316    }
     317    // updated every 30 minutes + 5 min
     318    else if (eph->type() == t_eph::GLONASS && dt >  2100.0) {
    319319      ephL->setCheckState(t_eph::outdated);
    320320      return;
    321321    }
    322322    // updated every ?
    323     else if (eph->type() == t_eph::QZSS    && dt > 3900.0) {
    324       ephL->setCheckState(t_eph::outdated);
    325       return;
    326     }
    327     // maximum update interval: 300 sec + 5 min
    328     else if  (eph->type() == t_eph::SBAS   && dt > 600.0) {
     323    else if (eph->type() == t_eph::QZSS    && dt >  3600.0) {
     324      ephL->setCheckState(t_eph::outdated);
     325      return;
     326    }
     327    // maximum update interval: 300 sec
     328    else if  (eph->type() == t_eph::SBAS   && dt >   600.0) {
    329329      ephL->setCheckState(t_eph::outdated);
    330330      return;
    331331    }
    332332    // updates 1h + 5 min
    333     else if  (eph->type() == t_eph::BDS    && dt > 3900.0) {
    334       ephL->setCheckState(t_eph::outdated);
    335       return;
    336     }
    337     // update interval: up to 24 hours + 5 min
    338     else if  (eph->type() == t_eph::IRNSS  && dt > 86700.0) {
    339       ephL->setCheckState(t_eph::outdated);
    340       return;
    341     }
    342   }
    343 }
     333    else if  (eph->type() == t_eph::BDS    && dt >  3900.0) {
     334      ephL->setCheckState(t_eph::outdated);
     335      return;
     336    }
     337    // update interval: up to 24 hours
     338    else if  (eph->type() == t_eph::IRNSS  && dt > 86400.0) {
     339      ephL->setCheckState(t_eph::outdated);
     340      return;
     341    }
     342  }
     343}
  • branches/BNC_2.12/src/bncutils.cpp

    r9371 r9377  
    271271  double dt = currentTime - toc;
    272272
    273   // update interval: 2h, data sets are valid for 4 hours + 5 min
    274   if      (eph->type() == t_eph::GPS     && dt > 14700.0) {
     273  // update interval: 2h, data sets are valid for 4 hours
     274  if      (eph->type() == t_eph::GPS     && dt > 14400.0) {
    275275    return true;
    276276  }
    277   // update interval: 3h, data sets are valid for 4 hours + 5 min
    278   else if (eph->type() == t_eph::Galileo && dt > 14700.0) {
     277  // update interval: 3h, data sets are valid for 4 hours
     278  else if (eph->type() == t_eph::Galileo && dt > 14400.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) {
    283283    return true;
    284284  }
    285   // orbit parameters are valid for 7200 seconds (minimum) + 5 min
    286   else if (eph->type() == t_eph::QZSS    && dt > 7500.0) {
     285  // orbit parameters are valid for 7200 seconds (minimum)
     286  else if (eph->type() == t_eph::QZSS    && dt >  7200.0) {
    287287    return true;
    288288  }
    289   // maximum update interval: 300 sec + 5 min
    290   else if (eph->type() == t_eph::SBAS    && dt > 600.0) {
     289  // maximum update interval: 300 sec
     290  else if (eph->type() == t_eph::SBAS    && 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) {
    295295    return true;
    296296  }
    297   // update interval: up to 24 hours + 5 min
    298   else if (eph->type() == t_eph::IRNSS   && dt > 86700.0) {
     297  // update interval: up to 24 hours
     298  else if (eph->type() == t_eph::IRNSS   && dt > 86400.0) {
    299299    return true;
    300300  }
Note: See TracChangeset for help on using the changeset viewer.