Changeset 9245 in ntrip for trunk/BNC/src/bncephuser.cpp


Ignore:
Timestamp:
Nov 12, 2020, 10:09:03 AM (3 years ago)
Author:
stuerze
Message:

another check is added, to prevent the usage of not updated nav data sets during ssr upload

File:
1 edited

Legend:

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

    r9244 r9245  
    243243    }
    244244    // maximum update interval: 300 sec
    245     else if (eph->type() == t_eph::SBAS    && (dt >     600 || dt <       -300)) {
     245    else if (eph->type() == t_eph::SBAS    && (dt >     600 || dt <     -300.0)) {
    246246      eph->setCheckState(t_eph::outdated);
    247247      return;
     
    253253    }
    254254    // update interval: up to 24 hours
    255     else if (eph->type() == t_eph::IRNSS   && fabs(dt > 24*3600)) {
     255    else if (eph->type() == t_eph::IRNSS   && fabs(dt > 24*3600.0)) {
    256256      eph->setCheckState(t_eph::outdated);
    257257      return;
     
    279279    // some lines to allow update of ephemeris data sets after an outage
    280280    // update interval: 2h,
    281     if      (eph->type() == t_eph::GPS     && dt >  2*3600) {
     281    if      (eph->type() == t_eph::GPS     && dt >  2*3600.0) {
    282282      ephL->setCheckState(t_eph::outdated);
    283283      return;
    284284    }
    285285    // update interval: 3h,
    286     else if (eph->type() == t_eph::Galileo && dt >  3*3600) {
     286    else if (eph->type() == t_eph::Galileo && dt >  3*3600.0) {
    287287      ephL->setCheckState(t_eph::outdated);
    288288      return;
    289289    }
    290290    // updated every 30 minutes
    291     else if (eph->type() == t_eph::GLONASS && dt >    1800) {
     291    else if (eph->type() == t_eph::GLONASS && dt >    1800.0) {
    292292      ephL->setCheckState(t_eph::outdated);
    293293      return;
    294294    }
    295295    // updated every ?
    296     else if (eph->type() == t_eph::QZSS    && dt >  2*3600) {
     296    else if (eph->type() == t_eph::QZSS    && dt >  2*3600.0) {
    297297      ephL->setCheckState(t_eph::outdated);
    298298      return;
    299299    }
    300300    // maximum update interval: 300 sec
    301     else if  (eph->type() == t_eph::SBAS   && dt >     300) {
     301    else if  (eph->type() == t_eph::SBAS   && dt >     300.0) {
    302302      ephL->setCheckState(t_eph::outdated);
    303303      return;
    304304    }
    305305    // updates 1h (GEO) up to 6 hours non-GEO
    306     else if  (eph->type() == t_eph::BDS    && dt >  6*3600) {
     306    else if  (eph->type() == t_eph::BDS    && dt >  6*3600.0) {
    307307      ephL->setCheckState(t_eph::outdated);
    308308      return;
    309309    }
    310310    // update interval: up to 24 hours
    311     else if  (eph->type() == t_eph::IRNSS  && dt > 24*3600) {
     311    else if  (eph->type() == t_eph::IRNSS  && dt > 24*3600.0) {
    312312      ephL->setCheckState(t_eph::outdated);
    313313      return;
Note: See TracChangeset for help on using the changeset viewer.