GPSLNavHealth.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_GPSLNAVHEALTH_HPP
40 #define GNSSTK_GPSLNAVHEALTH_HPP
41 
42 #include "NavHealthData.hpp"
43 
44 namespace gnsstk
45 {
47 
48 
52  {
53  public:
55  GPSLNavHealth();
57  NavDataPtr clone() const override
58  { return std::make_shared<GPSLNavHealth>(*this); }
59 
64  bool validate() const override
65  { return true; }
66 
71  void dump(std::ostream& s, DumpDetail dl) const override;
72 
76  SVHealth getHealth() const override
77  { return (svHealth == 0) ? SVHealth::Healthy : SVHealth::Unhealthy; }
78 
80  uint8_t svHealth;
81  };
82 
84 
85 }
86 
87 #endif // GNSSTK_GPSLNAVHEALTH_HPP
gnsstk::NavDataPtr
std::shared_ptr< NavData > NavDataPtr
Factories instantiate these in response to find() requests.
Definition: NavData.hpp:62
gnsstk::GPSLNavHealth::svHealth
uint8_t svHealth
6-bit or 8-bit health.
Definition: GPSLNavHealth.hpp:80
NavHealthData.hpp
gnsstk::SVHealth
SVHealth
Identify different types of SV health states.
Definition: SVHealth.hpp:52
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::SVHealth::Healthy
@ Healthy
Satellite is in a healthy and useable state.
gnsstk::GPSLNavHealth::clone
NavDataPtr clone() const override
Create a deep copy of this object.
Definition: GPSLNavHealth.hpp:57
gnsstk::GPSLNavHealth::validate
bool validate() const override
Definition: GPSLNavHealth.hpp:64
gnsstk::NavHealthData
Definition: NavHealthData.hpp:52
gnsstk::GPSLNavHealth::dump
void dump(std::ostream &s, DumpDetail dl) const override
Definition: GPSLNavHealth.cpp:54
gnsstk::GPSLNavHealth::getHealth
SVHealth getHealth() const override
Definition: GPSLNavHealth.hpp:76
gnsstk::DumpDetail
DumpDetail
Specify level of detail for dump output.
Definition: DumpDetail.hpp:51
gnsstk::GPSLNavHealth::GPSLNavHealth
GPSLNavHealth()
Initialize to unhealthy using a value typically not seen in health.
Definition: GPSLNavHealth.cpp:46
gnsstk::SVHealth::Unhealthy
@ Unhealthy
Satellite is unhealthy and should not be used.
gnsstk::GPSLNavHealth
Definition: GPSLNavHealth.hpp:51


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