AlmOrbit.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 // This software was developed by Applied Research Laboratories at the
28 // University of Texas at Austin, under contract to an agency or agencies
29 // within the U.S. Department of Defense. The U.S. Government retains all
30 // rights to use, duplicate, distribute, disclose, or release this software.
31 //
32 // Pursuant to DoD Directive 523024
33 //
34 // DISTRIBUTION STATEMENT A: This software has been approved for public
35 // release, distribution is unlimited.
36 //
37 //==============================================================================
38 
44 #ifndef GNSSTK_ALMORBIT_HPP
45 #define GNSSTK_ALMORBIT_HPP
46 
47 #include <map>
48 #include "CommonTime.hpp"
49 #include "SatID.hpp"
50 #include "Xvt.hpp"
51 
52 namespace gnsstk
53 {
55 
56 
59  class AlmOrbit
60  {
61  public:
63  AlmOrbit() noexcept;
64 
66  AlmOrbit(short prn, double aEcc, double ai_offset, double aOMEGAdot,
67  double aAhalf, double aOMEGA0, double aw, double aM0,
68  double aAF0, double aAF1, long aToa, long axmit_time,
69  short aweek, short aSV_health);
70 
74  Xvt svXvt(const CommonTime& t) const;
75 
76  short getPRNID() const noexcept
77  { return PRN; }
78 
80  short getFullWeek() const noexcept;
81  CommonTime getTransmitTime() const noexcept;
82  CommonTime getToaTime() const noexcept;
83  CommonTime getTimestamp() const noexcept { return getToaTime(); }
84  short getSVHealth() const noexcept { return SV_health; }
85 
86  void dump(std::ostream& s = std::cout, int verbosity=1) const;
87 
88  short getPRN() const;
89  double getecc() const;
90  double geti_offset() const;
91  double getOMEGAdot() const;
92  double getAhalf() const;
93  double getOMEGA0() const;
94  double getw() const;
95  double getM0() const;
96  double getAF0() const;
97  double getAF1() const;
98  long getToaSOW() const;
99  long getxmit_time() const;
100  short getToaWeek() const;
101 
102  protected:
103  short PRN;
104  double ecc;
105  double i_offset;
106  double OMEGAdot;
107  double Ahalf;
108  double OMEGA0;
109  double w;
110  double M0;
111  double AF0;
112  double AF1;
113  long Toa;
114  long xmit_time;
115  short week;
116  short SV_health;
118  private:
119  friend class EngAlmanac;
120  }; // class AlmOrbit
121 
123  typedef std::map<SatID, AlmOrbit> AlmOrbits;
124 
125  std::ostream& operator<<(std::ostream& s, const AlmOrbit& ao);
126 
127  inline short AlmOrbit::getPRN() const {return(PRN);}
128  inline double AlmOrbit::getecc() const {return(ecc);}
129  inline double AlmOrbit::geti_offset() const {return(i_offset);}
130  inline double AlmOrbit::getOMEGAdot() const {return(OMEGAdot);}
131  inline double AlmOrbit::getAhalf() const {return(Ahalf);}
132  inline double AlmOrbit::getOMEGA0() const {return(OMEGA0);}
133  inline double AlmOrbit::getw() const {return(w);}
134  inline double AlmOrbit::getM0() const {return(M0);}
135  inline double AlmOrbit::getAF0() const {return(AF0);}
136  inline double AlmOrbit::getAF1() const {return(AF1);}
137  inline long AlmOrbit::getToaSOW() const {return(Toa);}
138  inline long AlmOrbit::getxmit_time() const {return(xmit_time);}
139  inline short AlmOrbit::getToaWeek() const {return(week);}
140 
142 
143 } // namespace
144 
145 #endif
gnsstk::AlmOrbit::OMEGAdot
double OMEGAdot
Definition: AlmOrbit.hpp:106
gnsstk::AlmOrbit::svXvt
Xvt svXvt(const CommonTime &t) const
Definition: AlmOrbit.cpp:73
Xvt.hpp
const
#define const
Definition: getopt.c:43
gnsstk::AlmOrbit::getAhalf
double getAhalf() const
Definition: AlmOrbit.hpp:131
gnsstk::AlmOrbit::ecc
double ecc
Definition: AlmOrbit.hpp:104
gnsstk::AlmOrbit::getecc
double getecc() const
Definition: AlmOrbit.hpp:128
gnsstk::AlmOrbit::Toa
long Toa
Definition: AlmOrbit.hpp:113
gnsstk::AlmOrbit::getM0
double getM0() const
Definition: AlmOrbit.hpp:134
gnsstk::AlmOrbit::SV_health
short SV_health
Definition: AlmOrbit.hpp:116
gnsstk::AlmOrbit::OMEGA0
double OMEGA0
Definition: AlmOrbit.hpp:108
gnsstk::AlmOrbit::week
short week
Definition: AlmOrbit.hpp:115
SatID.hpp
gnsstk::AlmOrbit::getPRN
short getPRN() const
Definition: AlmOrbit.hpp:127
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::AlmOrbit::getFullWeek
short getFullWeek() const noexcept
returns full week of TRANSMIT TIME
Definition: AlmOrbit.cpp:197
gnsstk::AlmOrbit::getw
double getw() const
Definition: AlmOrbit.hpp:133
gnsstk::AlmOrbit::getTransmitTime
CommonTime getTransmitTime() const noexcept
Definition: AlmOrbit.cpp:192
gnsstk::AlmOrbit::geti_offset
double geti_offset() const
Definition: AlmOrbit.hpp:129
gnsstk::EngAlmanac
Definition: EngAlmanac.hpp:71
gnsstk::AlmOrbit::getOMEGA0
double getOMEGA0() const
Definition: AlmOrbit.hpp:132
gnsstk::AlmOrbit::AlmOrbit
AlmOrbit() noexcept
Default constructor, initialize to 0.
Definition: AlmOrbit.cpp:52
gnsstk::AlmOrbit::getAF0
double getAF0() const
Definition: AlmOrbit.hpp:135
gnsstk::AlmOrbit::M0
double M0
Definition: AlmOrbit.hpp:110
gnsstk::operator<<
std::ostream & operator<<(std::ostream &s, const ObsEpoch &oe) noexcept
Definition: ObsEpochMap.cpp:54
gnsstk::CommonTime
Definition: CommonTime.hpp:84
gnsstk::AlmOrbit::getxmit_time
long getxmit_time() const
Definition: AlmOrbit.hpp:138
gnsstk::AlmOrbit::getTimestamp
CommonTime getTimestamp() const noexcept
Definition: AlmOrbit.hpp:83
gnsstk::AlmOrbit::AF0
double AF0
Definition: AlmOrbit.hpp:111
gnsstk::AlmOrbit::PRN
short PRN
Definition: AlmOrbit.hpp:103
gnsstk::AlmOrbit::getToaTime
CommonTime getToaTime() const noexcept
Definition: AlmOrbit.cpp:210
gnsstk::Xvt
Definition: Xvt.hpp:60
gnsstk::AlmOrbit::getToaSOW
long getToaSOW() const
Definition: AlmOrbit.hpp:137
CommonTime.hpp
gnsstk::AlmOrbit::dump
void dump(std::ostream &s=std::cout, int verbosity=1) const
Definition: AlmOrbit.cpp:215
gnsstk::AlmOrbit::Ahalf
double Ahalf
Definition: AlmOrbit.hpp:107
gnsstk::AlmOrbit::AF1
double AF1
Definition: AlmOrbit.hpp:112
gnsstk::AlmOrbit::w
double w
Definition: AlmOrbit.hpp:109
gnsstk::AlmOrbit::i_offset
double i_offset
Definition: AlmOrbit.hpp:105
gnsstk::AlmOrbit::getOMEGAdot
double getOMEGAdot() const
Definition: AlmOrbit.hpp:130
gnsstk::AlmOrbits
std::map< SatID, AlmOrbit > AlmOrbits
Map from SatID to AlmOrbit.
Definition: AlmOrbit.hpp:123
gnsstk::AlmOrbit::getPRNID
short getPRNID() const noexcept
Definition: AlmOrbit.hpp:76
gnsstk::AlmOrbit::getSVHealth
short getSVHealth() const noexcept
Definition: AlmOrbit.hpp:84
gnsstk::AlmOrbit::xmit_time
long xmit_time
Definition: AlmOrbit.hpp:114
gnsstk::AlmOrbit::getAF1
double getAF1() const
Definition: AlmOrbit.hpp:136
gnsstk::AlmOrbit::getToaWeek
short getToaWeek() const
Definition: AlmOrbit.hpp:139
gnsstk::AlmOrbit
Definition: AlmOrbit.hpp:59


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