Changeset 8216 in ntrip
- Timestamp:
- Dec 13, 2017, 1:24:38 PM (7 years ago)
- Location:
- branches/BNC_2.12/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/BNC_2.12/src/PPP/pppEphPool.cpp
r7278 r8216 26 26 ///////////////////////////////////////////////////////////////////////////// 27 27 void t_pppEphPool::putEphemeris(t_eph* eph) { 28 if (eph && eph->checkState() != t_eph::bad) { 28 if (eph && (eph->checkState() != t_eph::bad || 29 eph->checkState() != t_eph::unhealthy)) { 29 30 _satEphPool[eph->prn().toInt()].putEphemeris(_maxQueueSize, eph); 30 31 } -
branches/BNC_2.12/src/bnccore.cpp
r8000 r8216 209 209 return failure; 210 210 } 211 else if (eph->checkState() == t_eph::unhealthy) { 212 messagePrivate("UNHEALTHY EPHEMERIS\n" + eph->toString(3.0).toLatin1()); 213 } 211 214 printEphHeader(); 212 215 printEph(*eph, (ircPut == success)); -
branches/BNC_2.12/src/bncephuser.cpp
r8188 r8216 185 185 return; 186 186 } 187 187 188 188 // Check health status 189 189 // ------------------- 190 190 if (eph->isUnhealthy()) { 191 eph->setCheckState(t_eph::bad); 192 return; 191 eph->setCheckState(t_eph::unhealthy); 193 192 } 194 193 … … 290 289 ephL->setCheckState(t_eph::outdated); 291 290 return; 292 } 291 } 293 292 294 293 if (diff < MAXDIFF && diffC < MAXDIFF) { -
branches/BNC_2.12/src/ephemeris.cpp
r8213 r8216 728 728 //////////////////////////////////////////////////////////////////////////// 729 729 unsigned int t_ephGlo::isUnhealthy() const { 730 if (_health == 0 && _almanac_health == 0) { 731 return 1; 732 } 733 else if (_health == 1 && _almanac_health == 0) { 734 return 1; 735 } 736 else if (_health == 1 && _almanac_health == 1) { 737 return 1; 738 } 739 740 return 0; 730 731 switch (_almanac_health_availablility_indicator) { 732 case 1: 733 if ((_health == 0 && _almanac_health == 0) || 734 (_health == 1 && _almanac_health == 0) || 735 (_health == 1 && _almanac_health == 1)) { 736 return 1; 737 } 738 break; 739 case 0: 740 if (_health) { 741 return 1; 742 } 743 break; 744 } 745 return 0; /* (_health == 0 && _almanac_health == 1) or (_health == 0) */ 741 746 } 742 747 -
branches/BNC_2.12/src/ephemeris.h
r8188 r8216 18 18 public: 19 19 enum e_type {unknown, GPS, QZSS, GLONASS, Galileo, SBAS, BDS, IRNSS}; 20 enum e_checkState {unchecked, ok, bad, outdated };20 enum e_checkState {unchecked, ok, bad, outdated, unhealthy}; 21 21 22 22 t_eph(); … … 185 185 _M_N4 = 0.0; 186 186 _M_tau_GPS = 0.0; 187 _M_l5 = 0.0; 187 _M_l5 = 0.0; 188 188 } 189 189 t_ephGlo(float rnxVersion, const QStringList& lines); … … 364 364 virtual e_type type() const {return t_eph::SBAS;} 365 365 virtual unsigned int IOD() const; 366 virtual unsigned int isUnhealthy() const { return static_cast<unsigned int>(_health); } 366 virtual unsigned int isUnhealthy() const { return static_cast<unsigned int>(_health); } 367 367 virtual QString toString(double version) const; 368 368
Note:
See TracChangeset
for help on using the changeset viewer.