Ignore:
Timestamp:
Oct 28, 2026, 9:48:01 PM (19 hours ago)
Author:
stuerze
Message:

eph handling improved

File:
1 edited

Legend:

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

    r10754 r11137  
    9292
    9393        if      (ephGPS && ephGPS->system() == t_eph::GPS  &&  (system == "ALL" || system.contains('G'))) {
    94           if (dt < 14400.0 || dt > -7200.0) {
     94          if (dt < 14400.0 && dt > -7200.0) {
    9595            size = t_ephEncoder::RTCM3(*ephGPS, Array);
    9696          }
    9797        }
    9898        else if (ephGPS && ephGPS->system() == t_eph::QZSS && (system == "ALL" || system.contains('J'))) {
    99           if (dt <  7200.0 || dt > -3600.0) {
     99          if (dt <  7200.0 && dt > -3600.0) {
    100100            size = t_ephEncoder::RTCM3(*ephGPS, Array);
    101101          }
    102102        }
    103103        else if (ephGlo && (system == "ALL" || system.contains('R'))) {
    104           if (dt <  3900.0 || dt > -2100.0) {
     104          if (dt <  3900.0 && dt > -2100.0) {
    105105            size = t_ephEncoder::RTCM3(*ephGlo, Array);
    106106          }
    107107        }
    108108        else if (ephGal && (system == "ALL" || system.contains('E'))) {
    109           if (dt < 14400.0 || dt >     0.0) {
     109          if (dt < 14400.0 && dt >     0.0) {
    110110            size = t_ephEncoder::RTCM3(*ephGal, Array);
    111111          }
    112112        }
    113113        else if (ephSBAS && (system == "ALL" || system.contains('S'))) {
    114           if (dt <   600.0 || dt >  -600.0) {
     114          if (dt <   600.0 && dt >  -600.0) {
    115115            size = t_ephEncoder::RTCM3(*ephSBAS, Array);
    116116          }
    117117        }
    118118        else if (ephBDS && (system == "ALL" || system.contains('C'))) {
    119           if (dt <  3900.0 || dt >     0.0) {
     119          if (dt <  3900.0 && dt >     0.0) {
    120120            size = t_ephEncoder::RTCM3(*ephBDS, Array);
    121121          }
    122122        }
    123123        else if (ephGPS && ephGPS->system() == t_eph::NavIC && (system == "ALL" || system.contains('I'))) {
    124           if (fabs(dt < 86400.0)) {
     124          if (fabs(dt) < 86400.0) {
    125125            size = t_ephEncoder::RTCM3(*ephGPS, Array);
    126126          }
Note: See TracChangeset for help on using the changeset viewer.