BDSD1NavHealth.hpp
Go to the documentation of this file.
1 //==============================================================================
2 //
3 // This file is part of GNSSTk, the ARL:UT GNSS Toolkit.
4 //
5 // The GNSSTk is free software; you can redistribute it and/or modify
6 // it under the terms of the GNU Lesser General Public License as published
7 // by the Free Software Foundation; either version 3.0 of the License, or
8 // any later version.
9 //
10 // The GNSSTk is distributed in the hope that it will be useful,
11 // but WITHOUT ANY WARRANTY; without even the implied warranty of
12 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 // GNU Lesser General Public License for more details.
14 //
15 // You should have received a copy of the GNU Lesser General Public
16 // License along with GNSSTk; if not, write to the Free Software Foundation,
17 // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA
18 //
19 // This software was developed by Applied Research Laboratories at the
20 // University of Texas at Austin.
21 // Copyright 2004-2022, The Board of Regents of The University of Texas System
22 //
23 //==============================================================================
24 
25 
26 //==============================================================================
27 //
28 // This software was developed by Applied Research Laboratories at the
29 // University of Texas at Austin, under contract to an agency or agencies
30 // within the U.S. Department of Defense. The U.S. Government retains all
31 // rights to use, duplicate, distribute, disclose, or release this software.
32 //
33 // Pursuant to DoD Directive 523024
34 //
35 // DISTRIBUTION STATEMENT A: This software has been approved for public
36 // release, distribution is unlimited.
37 //
38 //==============================================================================
39 #ifndef GNSSTK_BDSD1NAVHEALTH_HPP
40 #define GNSSTK_BDSD1NAVHEALTH_HPP
41 
42 #include "NavHealthData.hpp"
43 
44 namespace gnsstk
45 {
47 
48 
52  {
53  public:
60  {
66  SatClock = 0x100,
67  B1ISignalWeak = 0x80,
68  B2ISignalWeak = 0x40,
69  B3ISignalWeak = 0x20,
70  NavMsgBad = 0x02,
71  // remaining bits are currently marked reserved
72  };
73 
77  NavDataPtr clone() const override
78  { return std::make_shared<BDSD1NavHealth>(*this); }
79 
84  bool validate() const override
85  { return true; }
86 
91  void dump(std::ostream& s, DumpDetail dl) const override;
92 
96  SVHealth getHealth() const override;
97 
101  bool satH1;
103  uint16_t svHealth;
104  };
105 
107 
108 }
109 
110 #endif // GNSSTK_BDSD1NAVHEALTH_HPP
gnsstk::NavDataPtr
std::shared_ptr< NavData > NavDataPtr
Factories instantiate these in response to find() requests.
Definition: NavData.hpp:62
gnsstk::BDSD1NavHealth::B3ISignalWeak
@ B3ISignalWeak
B3I signal power 10dB+ lower than nominal.
Definition: BDSD1NavHealth.hpp:69
NavHealthData.hpp
gnsstk::BDSD1NavHealth::B2ISignalWeak
@ B2ISignalWeak
B2I signal power 10dB+ lower than nominal.
Definition: BDSD1NavHealth.hpp:68
gnsstk::BDSD1NavHealth::BDSD1HealthBits
BDSD1HealthBits
Definition: BDSD1NavHealth.hpp:59
gnsstk::BDSD1NavHealth::isAlmHealth
bool isAlmHealth
If true, svHealth is representative, otherwise satH1 is.
Definition: BDSD1NavHealth.hpp:99
gnsstk::SVHealth
SVHealth
Identify different types of SV health states.
Definition: SVHealth.hpp:52
gnsstk::BDSD1NavHealth::validate
bool validate() const override
Definition: BDSD1NavHealth.hpp:84
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::BDSD1NavHealth::B1ISignalWeak
@ B1ISignalWeak
B1I signal power 10dB+ lower than nominal.
Definition: BDSD1NavHealth.hpp:67
gnsstk::BDSD1NavHealth::SatClock
@ SatClock
Definition: BDSD1NavHealth.hpp:66
gnsstk::BDSD1NavHealth::NavMsgBad
@ NavMsgBad
IOD over limit.
Definition: BDSD1NavHealth.hpp:70
gnsstk::NavHealthData
Definition: NavHealthData.hpp:52
gnsstk::BDSD1NavHealth::satH1
bool satH1
Ephemeris health (autonomous satellite health flag).
Definition: BDSD1NavHealth.hpp:101
gnsstk::BDSD1NavHealth::dump
void dump(std::ostream &s, DumpDetail dl) const override
Definition: BDSD1NavHealth.cpp:83
gnsstk::BDSD1NavHealth::clone
NavDataPtr clone() const override
Create a deep copy of this object.
Definition: BDSD1NavHealth.hpp:77
gnsstk::DumpDetail
DumpDetail
Specify level of detail for dump output.
Definition: DumpDetail.hpp:51
gnsstk::BDSD1NavHealth::svHealth
uint16_t svHealth
9-bit health from subframes 4.
Definition: BDSD1NavHealth.hpp:103
gnsstk::BDSD1NavHealth::BDSD1NavHealth
BDSD1NavHealth()
Initialize to unhealthy using a value typically not seen in health.
Definition: BDSD1NavHealth.cpp:47
gnsstk::BDSD1NavHealth::getHealth
SVHealth getHealth() const override
Definition: BDSD1NavHealth.cpp:58
gnsstk::BDSD1NavHealth
Definition: BDSD1NavHealth.hpp:51


gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:38