GLOFNavEph.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_GLOFNAVEPH_HPP
40 #define GNSSTK_GLOFNAVEPH_HPP
41 
42 #include "GLOFNavData.hpp"
43 
44 namespace gnsstk
45 {
47 
48 
51  class GLOFNavEph : public GLOFNavData
52  {
53  public:
55  GLOFNavEph();
57  NavDataPtr clone() const override
58  { return std::make_shared<GLOFNavEph>(*this); }
59 
64  bool validate() const override;
65 
76  bool getXvt(const CommonTime& when, Xvt& xvt,
77  const ObsID& = ObsID()) override;
78 
86  CommonTime getUserTime() const override;
87 
90  void fixFit();
91 
96  void dump(std::ostream& s, DumpDetail dl) const override;
97 
100  void dumpTerse(std::ostream& s) const;
101 
103  double getAccuracy() const;
104 
110  static double getSiderealTime(const CommonTime& time);
111 
118  double clkBias;
119  double freqBias;
120  uint8_t healthBits;
121  unsigned tb;
122  unsigned P1;
123  unsigned P2;
124  unsigned P3;
125  unsigned P4;
126  unsigned interval;
128  double tauDelta;
129  unsigned aod;
130  unsigned accIndex;
131  unsigned dayCount;
133  double step;
135 
136  private:
139  const Vector<double>& accel) const;
140  };
141 
143 
144 }
145 
146 #endif // GNSSTK_GLOFNAVEPH_HPP
gnsstk::NavDataPtr
std::shared_ptr< NavData > NavDataPtr
Factories instantiate these in response to find() requests.
Definition: NavData.hpp:62
gnsstk::GLOFNavEph::getSiderealTime
static double getSiderealTime(const CommonTime &time)
Definition: GLOFNavEph.cpp:397
gnsstk::GLOFNavEph::xmit3
CommonTime xmit3
Transmit time for string 3.
Definition: GLOFNavEph.hpp:113
gnsstk::GLOFNavEph::dump
void dump(std::ostream &s, DumpDetail dl) const override
Definition: GLOFNavEph.cpp:196
gnsstk::GLOFNavEph
Definition: GLOFNavEph.hpp:51
gnsstk::GLOFNavEph::getUserTime
CommonTime getUserTime() const override
Definition: GLOFNavEph.cpp:177
gnsstk::GLOFNavEph::Toe
CommonTime Toe
Definition: GLOFNavEph.hpp:132
gnsstk::GLOFNavEph::dayCount
unsigned dayCount
Days since Jan 1 of most recent leap year (N_T).
Definition: GLOFNavEph.hpp:131
gnsstk::GLOFNavEph::pos
Triple pos
Satellite position at tb in km.
Definition: GLOFNavEph.hpp:115
gnsstk::GLOFNavEph::dumpTerse
void dumpTerse(std::ostream &s) const
Definition: GLOFNavEph.cpp:353
gnsstk::GLOFNavEph::opStatus
GLOFNavPCode opStatus
Operational status flag.
Definition: GLOFNavEph.hpp:127
gnsstk::Triple
Definition: Triple.hpp:68
gnsstk::GLOFNavEph::xmit4
CommonTime xmit4
Transmit time for string 4.
Definition: GLOFNavEph.hpp:114
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::GLOFNavEph::vel
Triple vel
Satellite velocity at tb in km/s.
Definition: GLOFNavEph.hpp:116
gnsstk::GLOFNavEph::GLOFNavEph
GLOFNavEph()
Sets the nav message type and all other data members to 0.
Definition: GLOFNavEph.cpp:50
gnsstk::GLOFNavEph::tauDelta
double tauDelta
Inter-frequency bias.
Definition: GLOFNavEph.hpp:128
gnsstk::GLOFNavEph::P4
unsigned P4
Flag 1=ephemeris present/uploaded. 0=nope.
Definition: GLOFNavEph.hpp:125
gnsstk::GLOFNavEph::aod
unsigned aod
Age of data in days (E_n).
Definition: GLOFNavEph.hpp:129
example4.time
time
Definition: example4.py:103
gnsstk::ObsID
Definition: ObsID.hpp:82
gnsstk::GLOFNavEph::getAccuracy
double getAccuracy() const
Returns the accuracy in meters as defined in Table 4.4 of the ICD.
Definition: GLOFNavEph.cpp:368
gnsstk::GLOFNavEph::P1
unsigned P1
Flag for interval between adjacent t_b.
Definition: GLOFNavEph.hpp:122
gnsstk::CommonTime
Definition: CommonTime.hpp:84
GLOFNavData.hpp
gnsstk::Xvt
Definition: Xvt.hpp:60
gnsstk::GLOFNavEph::accIndex
unsigned accIndex
User accuracy index (F_T).
Definition: GLOFNavEph.hpp:130
gnsstk::GLOFNavEph::P2
unsigned P2
Flag of oddness (=1) or evenness (=0) of t_b.
Definition: GLOFNavEph.hpp:123
gnsstk::Vector< double >
gnsstk::GLOFNavEph::ref
CommonTime ref
Reference time (t_k) for this ephemeris.
Definition: GLOFNavEph.hpp:112
gnsstk::DumpDetail
DumpDetail
Specify level of detail for dump output.
Definition: DumpDetail.hpp:51
gnsstk::GLOFNavEph::clkBias
double clkBias
Satellite clock bias in sec (tau_n).
Definition: GLOFNavEph.hpp:118
gnsstk::GLOFNavEph::fixFit
void fixFit()
Definition: GLOFNavEph.cpp:185
gnsstk::GLOFNavEph::interval
unsigned interval
P1 interval (minutes, see PNBGLOFNavDataFactory).
Definition: GLOFNavEph.hpp:126
gnsstk::GLOFNavEph::derivative
Vector< double > derivative(const Vector< double > &inState, const Vector< double > &accel) const
Function implementing the derivative of GLONASS orbital model.
Definition: GLOFNavEph.cpp:425
gnsstk::GLOFNavData
Definition: GLOFNavData.hpp:55
gnsstk::GLOFNavEph::step
double step
Integration step for Runge-Kutta algorithm (1 second by default)
Definition: GLOFNavEph.hpp:134
gnsstk::GLOFNavEph::P3
unsigned P3
Flag 1=5 almanac sats in frame, 0=4 almanac sats.
Definition: GLOFNavEph.hpp:124
gnsstk::GLOFNavEph::clone
NavDataPtr clone() const override
Create a deep copy of this object.
Definition: GLOFNavEph.hpp:57
gnsstk::GLOFNavEph::acc
Triple acc
Satellite acceleration at tb in km/s**2.
Definition: GLOFNavEph.hpp:117
gnsstk::GLOFNavEph::tb
unsigned tb
Epoch index with Moscow day.
Definition: GLOFNavEph.hpp:121
gnsstk::GLOFNavEph::healthBits
uint8_t healthBits
The 3-bit B_n value (look at bit 2 not 0 or 1).
Definition: GLOFNavEph.hpp:120
gnsstk::GLOFNavEph::freqBias
double freqBias
Satellite relative frequency bias (gamma_n).
Definition: GLOFNavEph.hpp:119
gnsstk::GLOFNavEph::getXvt
bool getXvt(const CommonTime &when, Xvt &xvt, const ObsID &=ObsID()) override
Definition: GLOFNavEph.cpp:79
gnsstk::GLOFNavEph::validate
bool validate() const override
Definition: GLOFNavEph.cpp:71
gnsstk::GLOFNavPCode
GLOFNavPCode
Definition: GLOFNavPCode.hpp:56


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