Changeset 9410 in ntrip for trunk/BNC/src
- Timestamp:
- Apr 19, 2021, 11:13:10 AM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/upload/bncephuploadcaster.cpp
r8904 r9410 80 80 81 81 bncTime toc = eph->TOC(); 82 double timeDiff = fabs(toc - currentTime);82 double dt = currentTime -toc; 83 83 84 84 const t_ephGPS* ephGPS = dynamic_cast<const t_ephGPS*>(eph); … … 92 92 93 93 if (ephGPS && ephGPS->type() == t_eph::GPS && (system == "ALL" || system == "GPS")) { 94 if ( timeDiff <= 4*3600) {94 if (dt > 14400.0 || dt < -7200.0) { 95 95 size = t_ephEncoder::RTCM3(*ephGPS, Array); 96 96 } 97 97 } 98 98 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) { 100 100 size = t_ephEncoder::RTCM3(*ephGPS, Array); 101 101 } 102 102 } 103 103 else if (ephGlo && (system == "ALL" || system == "GLONASS")) { 104 if ( timeDiff <= 1*3600) {104 if (dt > 3900.0 || dt < -2100.0) { 105 105 size = t_ephEncoder::RTCM3(*ephGlo, Array); 106 106 } 107 107 } 108 108 else if (ephGal && (system == "ALL" || system == "Galileo")) { 109 if ( timeDiff <= 2*3600) {109 if (dt > 14400.0 || dt < 0.0) { 110 110 size = t_ephEncoder::RTCM3(*ephGal, Array); 111 111 } 112 112 } 113 113 else if (ephSBAS && (system == "ALL" || system == "SBAS")) { 114 if ( timeDiff <= 1*3600) {114 if (dt > 600.0 || dt < -600.0) { 115 115 size = t_ephEncoder::RTCM3(*ephSBAS, Array); 116 116 } 117 117 } 118 118 else if (ephBDS && (system == "ALL" || system == "BDS")) { 119 if ( timeDiff <= 6*3600) {119 if (dt > 3900.0 || dt < 0.0) { 120 120 size = t_ephEncoder::RTCM3(*ephBDS, Array); 121 121 } 122 122 } 123 123 else if (ephGPS && ephGPS->type() == t_eph::IRNSS && (system == "ALL" || system == "IRNSS")) { 124 if ( timeDiff <= 24*3600) {124 if (fabs(dt > 86400.0)) { 125 125 size = t_ephEncoder::RTCM3(*ephGPS, Array); 126 126 }
Note:
See TracChangeset
for help on using the changeset viewer.