Changeset 9410 in ntrip for trunk/BNC/src


Ignore:
Timestamp:
Apr 19, 2021, 11:13:10 AM (4 years ago)
Author:
stuerze
Message:

eph checks harmonized

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BNC/src/upload/bncephuploadcaster.cpp

    r8904 r9410  
    8080
    8181        bncTime toc = eph->TOC();
    82         double timeDiff = fabs(toc - currentTime);
     82        double dt = currentTime -toc;
    8383
    8484        const t_ephGPS*  ephGPS  = dynamic_cast<const t_ephGPS*>(eph);
     
    9292
    9393        if      (ephGPS && ephGPS->type() == t_eph::GPS  &&  (system == "ALL" || system == "GPS")) {
    94           if (timeDiff <= 4*3600) {
     94          if (dt > 14400.0 || dt < -7200.0) {
    9595            size = t_ephEncoder::RTCM3(*ephGPS, Array);
    9696          }
    9797        }
    9898        else if (ephGPS && ephGPS->type() == t_eph::QZSS && (system == "ALL" || system == "QZSS")) {
    99           if (timeDiff <= 4*3600) {
     99          if (dt >  7200.0 || dt < -3600.0) {
    100100            size = t_ephEncoder::RTCM3(*ephGPS, Array);
    101101          }
    102102        }
    103103        else if (ephGlo && (system == "ALL" || system == "GLONASS")) {
    104           if (timeDiff <= 1*3600) {
     104          if (dt >  3900.0 || dt < -2100.0) {
    105105            size = t_ephEncoder::RTCM3(*ephGlo, Array);
    106106          }
    107107        }
    108108        else if (ephGal && (system == "ALL" || system == "Galileo")) {
    109           if (timeDiff <= 2*3600) {
     109          if (dt > 14400.0 || dt <     0.0) {
    110110            size = t_ephEncoder::RTCM3(*ephGal, Array);
    111111          }
    112112        }
    113113        else if (ephSBAS && (system == "ALL" || system == "SBAS")) {
    114           if (timeDiff <= 1*3600) {
     114          if (dt >   600.0 || dt <  -600.0) {
    115115            size = t_ephEncoder::RTCM3(*ephSBAS, Array);
    116116          }
    117117        }
    118118        else if (ephBDS && (system == "ALL" || system == "BDS")) {
    119           if (timeDiff <= 6*3600) {
     119          if (dt >  3900.0 || dt <     0.0) {
    120120            size = t_ephEncoder::RTCM3(*ephBDS, Array);
    121121          }
    122122        }
    123123        else if (ephGPS && ephGPS->type() == t_eph::IRNSS && (system == "ALL" || system == "IRNSS")) {
    124           if (timeDiff <= 24*3600) {
     124          if (fabs(dt > 86400.0)) {
    125125            size = t_ephEncoder::RTCM3(*ephGPS, Array);
    126126          }
Note: See TracChangeset for help on using the changeset viewer.