Changeset 8188 in ntrip for branches/BNC_2.12/src/ephemeris.cpp


Ignore:
Timestamp:
Nov 27, 2017, 11:50:29 AM (6 years ago)
Author:
stuerze
Message:

health status check is added

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/BNC_2.12/src/ephemeris.cpp

    r8167 r8188  
    725725}
    726726
     727// Health status of Glonass Ephemeris (virtual)
     728////////////////////////////////////////////////////////////////////////////
     729unsigned 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;
     741}
     742
    727743// Constructor
    728744//////////////////////////////////////////////////////////////////////////////
     
    961977
    962978  return success;
     979}
     980
     981// Health status of Galileo Ephemeris (virtual)
     982////////////////////////////////////////////////////////////////////////////
     983unsigned int t_ephGal::isUnhealthy() const {
     984  if (_E5aHS && _E5bHS && _E1_bHS) {
     985    return 1;
     986  }
     987  return 0;
    963988}
    964989
Note: See TracChangeset for help on using the changeset viewer.