Ignore:
Timestamp:
Jan 17, 2017, 9:48:19 PM (7 years ago)
Author:
stuerze
Message:

minor changes

File:
1 edited

Legend:

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

    r8075 r8076  
    211211  double timeDiff = fabs(toc - currentTime);
    212212
    213   if      (eph->type() == t_eph::GPS  || t_eph::Galileo) {
    214     if (timeDiff > 4*3600) { // update interval: 2h, data sets are valid for 4 hours
    215       eph->setCheckState(t_eph::outdated);
    216       return;
    217     }
    218   }
    219   else if (eph->type() == t_eph::GLONASS) {
    220     if (timeDiff > 1*3600) { // updated every 30 minutes
    221       eph->setCheckState(t_eph::outdated);
    222       return;
    223     }
    224   }
    225   else if (eph->type() == t_eph::QZSS) {
    226     if (timeDiff > 4*3600) { // orbit parameters are valid for 7200 seconds (at minimum)
    227       eph->setCheckState(t_eph::outdated);
    228       return;
    229     }
    230   }
    231   else if (eph->type() == t_eph::SBAS) {
    232     if (timeDiff > 600) { // maximum update interval: 300 sec
    233       eph->setCheckState(t_eph::outdated);
    234       return;
    235     }
    236   }
    237   else if (eph->type() == t_eph::BDS) {
    238     if (timeDiff > 6*3600) { // updates 1 (GEO) up to 6 hours
    239       eph->setCheckState(t_eph::outdated);
    240       return;
    241     }
     213  if      (eph->type() == t_eph::GPS     && timeDiff > 4*3600) { // update interval: 2h, data sets are valid for 4 hours
     214    eph->setCheckState(t_eph::outdated);
     215    return;
     216  }
     217  else if (eph->type() == t_eph::Galileo && timeDiff > 4*3600) { // update interval: 2h, data sets are valid for 4 hours
     218    eph->setCheckState(t_eph::outdated);
     219    return;
     220  }
     221  else if (eph->type() == t_eph::GLONASS && timeDiff > 1*3600) { // updated every 30 minutes
     222    eph->setCheckState(t_eph::outdated);
     223    return;
     224  }
     225  else if (eph->type() == t_eph::QZSS    && timeDiff > 4*3600) { // orbit parameters are valid for 7200 seconds (at minimum)
     226    eph->setCheckState(t_eph::outdated);
     227    return;
     228  }
     229  else if (eph->type() == t_eph::SBAS    && timeDiff > 600) { // maximum update interval: 300 sec
     230    eph->setCheckState(t_eph::outdated);
     231    return;
     232  }
     233  else if (eph->type() == t_eph::BDS     && timeDiff > 6*3600) { // updates 1 (GEO) up to 6 hours
     234    eph->setCheckState(t_eph::outdated);
     235    return;
    242236  }
    243237
Note: See TracChangeset for help on using the changeset viewer.