GPSLNavEph.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_GPSLNAVEPH_HPP
40 #define GNSSTK_GPSLNAVEPH_HPP
41 
42 #include "GPSLNavData.hpp"
43 #include "GPSLNavL2Codes.hpp"
44 
45 namespace gnsstk
46 {
48 
49 
51  class GPSLNavEph : public GPSLNavData
52  {
53  public:
55  GPSLNavEph();
57  NavDataPtr clone() const override
58  { return std::make_shared<GPSLNavEph>(*this); }
59 
65  bool validate() const override;
66 
74  CommonTime getUserTime() const override;
75 
78  void fixFit();
79 
84  void dump(std::ostream& s, DumpDetail dl) const override;
85 
88  void dumpSVStatus(std::ostream& s) const override;
89 
92  uint32_t pre2;
93  uint32_t pre3;
94  uint32_t tlm2;
95  uint32_t tlm3;
96  bool isf2;
97  bool isf3;
98  uint16_t iodc;
99  uint16_t iode;
100  uint8_t fitIntFlag;
101  uint8_t healthBits;
102  uint8_t uraIndex;
103  double tgd;
104  bool alert2;
105  bool alert3;
106  bool asFlag2;
107  bool asFlag3;
109 
114  bool L2Pdata;
115  long aodo;
116  };
117 
122  {
123  public:
127  bool operator()(const std::shared_ptr<GPSLNavEph> lhs,
128  const std::shared_ptr<GPSLNavEph> rhs) const;
129  };
130 
132  typedef std::set<std::shared_ptr<GPSLNavEph>, GPSLNavEphIODCComp> GPSLNavIODCUniq;
133 
137  {
138  public:
142  bool operator()(const std::shared_ptr<GPSLNavEph> lhs,
143  const std::shared_ptr<GPSLNavEph> rhs) const;
144  };
145 
147  typedef std::set<std::shared_ptr<GPSLNavEph>,GPSLNavEphCEIComp> GPSLNavCEIUniq;
148 
149 
151 
152 }
153 
154 #endif // GNSSTK_GPSLNAVEPH_HPP
gnsstk::GPSLNavEph::GPSLNavEph
GPSLNavEph()
Sets the nav message type and all other data members to 0.
Definition: GPSLNavEph.cpp:49
gnsstk::NavDataPtr
std::shared_ptr< NavData > NavDataPtr
Factories instantiate these in response to find() requests.
Definition: NavData.hpp:62
gnsstk::GPSLNavEph::codesL2
GPSLNavL2Codes codesL2
Code on L2 in-phase component.
Definition: GPSLNavEph.hpp:108
gnsstk::GPSLNavEph::alert2
bool alert2
Alert flag from SF2 HOW.
Definition: GPSLNavEph.hpp:104
gnsstk::GPSLNavEph::isf2
bool isf2
Integrity status flag from subframe 2.
Definition: GPSLNavEph.hpp:96
gnsstk::GPSLNavEph::xmit3
CommonTime xmit3
Transmit time for subframe 3.
Definition: GPSLNavEph.hpp:91
gnsstk::GPSLNavIODCUniq
std::set< std::shared_ptr< GPSLNavEph >, GPSLNavEphIODCComp > GPSLNavIODCUniq
Store GPSLNavEph shared_ptrs using GPSLNavEphIODCComp to sort.
Definition: GPSLNavEph.hpp:132
gnsstk::GPSLNavEphCEIComp::operator()
bool operator()(const std::shared_ptr< GPSLNavEph > lhs, const std::shared_ptr< GPSLNavEph > rhs) const
Definition: GPSLNavEph.cpp:255
gnsstk::GPSLNavEph::fitIntFlag
uint8_t fitIntFlag
Fit interval flag from subframe 2.
Definition: GPSLNavEph.hpp:100
gnsstk::GPSLNavEph::dump
void dump(std::ostream &s, DumpDetail dl) const override
Definition: GPSLNavEph.cpp:137
gnsstk::GPSLNavEph::L2Pdata
bool L2Pdata
Definition: GPSLNavEph.hpp:114
gnsstk::GPSLNavEph::tlm2
uint32_t tlm2
The TLM message from word 1 of subframe 2.
Definition: GPSLNavEph.hpp:94
gnsstk::GPSLNavEphCEIComp
Definition: GPSLNavEph.hpp:136
gnsstk::GPSLNavEph::asFlag2
bool asFlag2
Anti-spoof flag from SF2 HOW.
Definition: GPSLNavEph.hpp:106
gnsstk::GPSLNavEph::tlm3
uint32_t tlm3
The TLM message from word 1 of subframe 3.
Definition: GPSLNavEph.hpp:95
gnsstk::GPSLNavEph::aodo
long aodo
Age of Data Offset in seconds (-1=uninitialized).
Definition: GPSLNavEph.hpp:115
gnsstk::GPSLNavEph::uraIndex
uint8_t uraIndex
4-bit URA index from subframe 1, word 3.
Definition: GPSLNavEph.hpp:102
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::GPSLNavEph::validate
bool validate() const override
Definition: GPSLNavEph.cpp:76
gnsstk::GPSLNavL2Codes
GPSLNavL2Codes
Codes on L2 channel, per IS-GPS-200 20.3.3.3.1.2.
Definition: GPSLNavL2Codes.hpp:51
gnsstk::GPSLNavEph::isf3
bool isf3
Integrity status flag from subframe 3.
Definition: GPSLNavEph.hpp:97
gnsstk::GPSLNavCEIUniq
std::set< std::shared_ptr< GPSLNavEph >, GPSLNavEphCEIComp > GPSLNavCEIUniq
Store GPSLNavEph shared_ptrs using GPSLNavEphCEIComp to sort.
Definition: GPSLNavEph.hpp:147
GPSLNavL2Codes.hpp
gnsstk::GPSLNavEph::healthBits
uint8_t healthBits
6 SV health bits from subframe 1, word 3.
Definition: GPSLNavEph.hpp:101
gnsstk::GPSLNavEph::pre3
uint32_t pre3
The TLM preamble from word 1 of subframe 3.
Definition: GPSLNavEph.hpp:93
gnsstk::GPSLNavEphIODCComp
Definition: GPSLNavEph.hpp:121
gnsstk::GPSLNavEph::xmit2
CommonTime xmit2
Transmit time for subframe 2.
Definition: GPSLNavEph.hpp:90
gnsstk::CommonTime
Definition: CommonTime.hpp:84
gnsstk::GPSLNavEph::iode
uint16_t iode
Issue Of Data-Ephemeris.
Definition: GPSLNavEph.hpp:99
gnsstk::GPSLNavEph::fixFit
void fixFit()
Definition: GPSLNavEph.cpp:92
gnsstk::GPSLNavEph::dumpSVStatus
void dumpSVStatus(std::ostream &s) const override
Definition: GPSLNavEph.cpp:190
GPSLNavData.hpp
gnsstk::DumpDetail
DumpDetail
Specify level of detail for dump output.
Definition: DumpDetail.hpp:51
gnsstk::GPSLNavEph::asFlag3
bool asFlag3
Anti-spoof flag from SF3 HOW.
Definition: GPSLNavEph.hpp:107
gnsstk::GPSLNavData
Definition: GPSLNavData.hpp:56
gnsstk::GPSLNavEph::iodc
uint16_t iodc
Issue Of Data-Clock for the ephemeris.
Definition: GPSLNavEph.hpp:98
gnsstk::GPSLNavEph
Class containing data elements unique to GPS LNav ephemerides.
Definition: GPSLNavEph.hpp:51
gnsstk::GPSLNavEph::pre2
uint32_t pre2
The TLM preamble from word 1 of subframe 2.
Definition: GPSLNavEph.hpp:92
gnsstk::GPSLNavEph::clone
NavDataPtr clone() const override
Create a deep copy of this object.
Definition: GPSLNavEph.hpp:57
gnsstk::GPSLNavEphIODCComp::operator()
bool operator()(const std::shared_ptr< GPSLNavEph > lhs, const std::shared_ptr< GPSLNavEph > rhs) const
Definition: GPSLNavEph.cpp:241
gnsstk::GPSLNavEph::tgd
double tgd
Ionospheric group delay in seconds.
Definition: GPSLNavEph.hpp:103
gnsstk::GPSLNavEph::getUserTime
CommonTime getUserTime() const override
Definition: GPSLNavEph.cpp:84
gnsstk::GPSLNavEph::alert3
bool alert3
Alert flag from SF3 HOW.
Definition: GPSLNavEph.hpp:105


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