Changeset 9362 in ntrip for trunk/BNC/src


Ignore:
Timestamp:
Mar 5, 2021, 10:48:52 AM (4 years ago)
Author:
stuerze
Message:

eph check ajusted

File:
1 edited

Legend:

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

    r9356 r9362  
    271271  double dt = currentTime - toc;
    272272
    273   // update interval: 2h, data sets are valid for 4 hours
    274   if      (eph->type() == t_eph::GPS     && dt > 4*3600.0) {
     273  // update interval: 2h, data sets are valid for 4 hours + 5 min
     274  if      (eph->type() == t_eph::GPS     && dt > 14700.0) {
    275275    return true;
    276276  }
    277   // update interval: 3h, data sets are valid for 4 hours
    278   else if (eph->type() == t_eph::Galileo && dt > 4*3600.0) {
     277  // update interval: 3h, data sets are valid for 4 hours + 5 min
     278  else if (eph->type() == t_eph::Galileo && dt > 14700.0) {
    279279    return true;
    280280  }
    281   /* updated every 30 minutes
    282   else if (eph->type() == t_eph::GLONASS && dt > 1*3600.0) {
     281  // updated every 30 minutes + 5 min
     282  else if (eph->type() == t_eph::GLONASS && dt > 3900.0) {
    283283    return true;
    284   }*/
    285   // orbit parameters are valid for 7200 seconds (minimum)
    286   else if (eph->type() == t_eph::QZSS    && dt > 2*3600.0) {
     284  }
     285  // orbit parameters are valid for 7200 seconds (minimum) + 5 min
     286  else if (eph->type() == t_eph::QZSS    && dt > 7500.0) {
    287287    return true;
    288288  }
    289   // maximum update interval: 300 sec
    290   else if (eph->type() == t_eph::SBAS    && dt >    600.0) {
     289  // maximum update interval: 300 sec + 5 min
     290  else if (eph->type() == t_eph::SBAS    && dt > 600.0) {
    291291    return true;
    292292  }
    293   // updates 1h (GEO) up to 6 hours non-GEO
    294   else if (eph->type() == t_eph::BDS     && dt > 6*3600.0) {
     293  // updates 1h + 5 min
     294  else if (eph->type() == t_eph::BDS     && dt > 3900.0) {
    295295    return true;
    296296  }
    297   // update interval: up to 24 hours
    298   else if (eph->type() == t_eph::IRNSS   && dt > 24*3600.0) {
     297  // update interval: up to 24 hours + 5 min
     298  else if (eph->type() == t_eph::IRNSS   && dt > 86700.0) {
    299299    return true;
    300300  }
Note: See TracChangeset for help on using the changeset viewer.