Wrapper for the 9-bit health status in BeiDou D2NAV subframe 5, page 7-8.
Definition at line 51 of file BDSD2NavHealth.hpp.
#include <BDSD2NavHealth.hpp>
Public Types | |
enum | BDSD2HealthBits { SatClock = 0x100, B1ISignalWeak = 0x80, B2ISignalWeak = 0x40, B3ISignalWeak = 0x20, NavMsgBad = 0x02 } |
Public Member Functions | |
BDSD2NavHealth () | |
Initialize to unhealthy using a value typically not seen in health. More... | |
NavDataPtr | clone () const override |
Create a deep copy of this object. More... | |
void | dump (std::ostream &s, DumpDetail dl) const override |
SVHealth | getHealth () const override |
bool | validate () const override |
![]() | |
std::list< std::string > | compare (const NavDataPtr &right) const override |
CommonTime | getNearTime () const override |
bool | isSameData (const NavDataPtr &right) const override |
NavHealthData () | |
Set our message type to health so we don't have to in every leaf. More... | |
![]() | |
virtual std::string | getClassName () const |
std::string | getDumpTime (DumpDetail dl, const CommonTime &t) const |
std::string | getDumpTimeHdr (DumpDetail dl) const |
std::string | getSignalString () const |
bool | getSVN (const SatID &sat, const gnsstk::CommonTime &when, std::string &svn) const |
virtual CommonTime | getUserTime () const |
NavData () | |
Initialize internal data fields. More... | |
Public Attributes | |
bool | isAlmHealth |
If true, svHealth is representative, otherwise satH1 is. More... | |
bool | satH1 |
Ephemeris health (autonomous satellite health flag). More... | |
uint16_t | svHealth |
9-bit health from subframes 4. More... | |
![]() | |
NavMessageID | signal |
Source signal identification for this navigation message data. More... | |
CommonTime | timeStamp |
std::string | weekFmt |
Additional Inherited Members | |
![]() | |
static gnsstk::SatMetaDataStore * | getSatMetaDataStore () |
Accessor for python. More... | |
static void | setSatMetaDataStore (gnsstk::SatMetaDataStore *smds) |
Accessor for python. More... | |
![]() | |
static const GNSSTK_EXPORT std::string | dumpTimeFmt |
Time format used for the dump method (Full). More... | |
static const GNSSTK_EXPORT std::string | dumpTimeFmtBrief |
Time format used for the dump method (Brief). More... | |
static GNSSTK_EXPORT gnsstk::SatMetaDataStore * | satMetaDataStore = nullptr |
Set this to a valid store to get PRN->SVN translations in dump(). More... | |
![]() | |
double | msgLenSec |
Enumeration for defining the D2 health bits meaning. Intentionally not an enum class, which would require having to cast the values to an integer before doing bit math e.g. "svHealth & SatClock" vs. "svHealth & static_cast<uint16_t>(BDSD2HealthBits::SatClock)"
Definition at line 59 of file BDSD2NavHealth.hpp.
gnsstk::BDSD2NavHealth::BDSD2NavHealth | ( | ) |
Initialize to unhealthy using a value typically not seen in health.
Definition at line 47 of file BDSD2NavHealth.cpp.
|
inlineoverridevirtual |
Create a deep copy of this object.
Implements gnsstk::NavData.
Definition at line 77 of file BDSD2NavHealth.hpp.
|
overridevirtual |
Print the contents of this object in a human-readable format.
[in,out] | s | The stream to write the data to. |
[in] | dl | The level of detail the output should contain. |
Reimplemented from gnsstk::NavData.
Definition at line 83 of file BDSD2NavHealth.cpp.
|
overridevirtual |
Defines the status of NavData::signal, specifically sat (not xmitSat).
Implements gnsstk::NavHealthData.
Definition at line 58 of file BDSD2NavHealth.cpp.
|
inlineoverridevirtual |
Checks the contents of this message against known validity rules as defined in the appropriate ICD.
Implements gnsstk::NavData.
Definition at line 84 of file BDSD2NavHealth.hpp.
bool gnsstk::BDSD2NavHealth::isAlmHealth |
If true, svHealth is representative, otherwise satH1 is.
Definition at line 99 of file BDSD2NavHealth.hpp.
bool gnsstk::BDSD2NavHealth::satH1 |
Ephemeris health (autonomous satellite health flag).
Definition at line 101 of file BDSD2NavHealth.hpp.
uint16_t gnsstk::BDSD2NavHealth::svHealth |
9-bit health from subframes 4.
Definition at line 103 of file BDSD2NavHealth.hpp.