Changeset 8215 in ntrip for trunk/BNC/src
- Timestamp:
- Dec 13, 2017, 9:43:20 AM (7 years ago)
- Location:
- trunk/BNC/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/BNC/src/PPP/pppEphPool.cpp
r7278 r8215 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 } -
trunk/BNC/src/bnccore.cpp
r8203 r8215 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)); -
trunk/BNC/src/bncephuser.cpp
r8187 r8215 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 -
trunk/BNC/src/ephemeris.cpp
r8212 r8215 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 -
trunk/BNC/src/ephemeris.h
r8187 r8215 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();
Note:
See TracChangeset
for help on using the changeset viewer.