Changeset 9789 in ntrip for trunk/BNC/src/ephemeris.cpp
- Timestamp:
- Jul 13, 2022, 2:24:35 PM (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/ephemeris.cpp
r9788 r9789 2065 2065 } 2066 2066 else if (navType() == t_eph::CNV3) { 2067 double health; 2067 2068 if ( readDbl(line, pos[0], fieldLen, _SISMAI ) || 2068 readDbl(line, pos[1], fieldLen, _health ) ||2069 readDbl(line, pos[1], fieldLen, health ) || 2069 2070 readDbl(line, pos[2], fieldLen, _INTEGRITYF_B2b) || 2070 2071 readDbl(line, pos[3], fieldLen, _TGD_B2bI) ) { … … 2072 2073 return; 2073 2074 } 2075 _health = int(health); 2074 2076 } 2075 2077 else { // D1, D2 or undefined … … 2090 2092 // ===================== 2091 2093 else if ( iLine == 8 ) { 2092 2094 double health; 2093 2095 if (navType() == t_eph::CNV1) { 2094 2096 if ( readDbl(line, pos[0], fieldLen, _SISMAI ) || 2095 readDbl(line, pos[1], fieldLen, _health ) ||2097 readDbl(line, pos[1], fieldLen, health ) || 2096 2098 readDbl(line, pos[2], fieldLen, _INTEGRITYF_B1C) || 2097 2099 readDbl(line, pos[3], fieldLen, _IODC) ) { … … 2099 2101 return; 2100 2102 } 2103 _health = int(health); 2101 2104 } 2102 2105 else if (navType() == t_eph::CNV2) { 2103 2106 if ( readDbl(line, pos[0], fieldLen, _SISMAI ) || 2104 readDbl(line, pos[1], fieldLen, _health ) ||2107 readDbl(line, pos[1], fieldLen, health ) || 2105 2108 readDbl(line, pos[2], fieldLen, _INTEGRITYF_B2aB1C) || 2106 2109 readDbl(line, pos[3], fieldLen, _IODC) ) { … … 2108 2111 return; 2109 2112 } 2113 _health = int(health); 2110 2114 } 2111 2115 else if (navType() == t_eph::CNV3) { … … 2313 2317 } 2314 2318 2319 2320 // Health status of SBAS Ephemeris (virtual) 2321 //////////////////////////////////////////////////////////////////////////// 2322 unsigned int t_ephBDS::isUnhealthy() const { 2323 2324 if (navType() == t_eph::CNV1 || 2325 navType() == t_eph::CNV2 || 2326 navType() == t_eph::CNV3) { 2327 return static_cast<unsigned int>(_health); 2328 } 2329 2330 return static_cast<unsigned int>(_SatH1); 2331 2332 } 2333 2334 2315 2335 // RINEX Format String 2316 2336 ////////////////////////////////////////////////////////////////////////////// … … 2418 2438 out << QString(fmt) 2419 2439 .arg(_SISMAI, 19, 'e', 12) 2420 .arg( _health,19, 'e', 12)2440 .arg(double(_health), 19, 'e', 12) 2421 2441 .arg(_INTEGRITYF_B2b, 19, 'e', 12) 2422 2442 .arg(_TGD_B2bI, 19, 'e', 12); … … 2443 2463 out << QString(fmt) 2444 2464 .arg(_SISMAI, 19, 'e', 12) 2445 .arg( _health,19, 'e', 12)2465 .arg(double(_health), 19, 'e', 12) 2446 2466 .arg(_INTEGRITYF_B1C, 19, 'e', 12) 2447 2467 .arg(_IODC, 19, 'e', 12); … … 2450 2470 out << QString(fmt) 2451 2471 .arg(_SISMAI, 19, 'e', 12) 2452 .arg( _health,19, 'e', 12)2472 .arg(double(_health), 19, 'e', 12) 2453 2473 .arg(_INTEGRITYF_B2aB1C, 19, 'e', 12) 2454 2474 .arg(_IODC, 19, 'e', 12);
Note:
See TracChangeset
for help on using the changeset viewer.