Xvt.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_XVT_INCLUDE
45 #define GNSSTK_XVT_INCLUDE
46 
47 #include <iostream>
48 #include "Triple.hpp"
49 #include "EllipsoidModel.hpp"
50 #include "RefFrame.hpp"
51 #include "GNSSconstants.hpp"
52 
53 namespace gnsstk
54 {
57 
60  class Xvt
61  {
62  public:
88  {
98  };
99 
101  Xvt() : x(0.,0.,0.), v(0.,0.,0.),
102  clkbias(0.), clkdrift(0.),
103  relcorr(0.),
105  {};
106 
108  virtual ~Xvt()
109  {}
110 
112  Triple getPos() noexcept
113  { return x; }
114 
116  Triple getVel() noexcept
117  { return v; }
118 
120  double getClockBias() noexcept
121  { return clkbias; }
122 
124  double getClockDrift() noexcept
125  { return clkdrift; }
126 
128  double getRelativityCorr() noexcept
129  { return relcorr; }
130 
136  virtual double computeRelativityCorrection(void);
137 
145  double preciseRho(const Triple& rxPos,
146  const EllipsoidModel& ellipsoid,
147  double correction = 0) const noexcept;
148 
149  // member data
150 
153  double clkbias;
154  double clkdrift;
155  double relcorr;
158 
159  }; // end class Xvt
160 
162 
163 
169  std::ostream& operator<<(std::ostream& os, const Xvt& xvt) noexcept;
170 
176  std::ostream& operator<<(std::ostream& os, const Xvt::HealthStatus& health)
177  noexcept;
178 
179 } // end namespace gnsstk
180 
181 #endif // GNSSTK_XVT_INCLUDE
gnsstk::Xvt::Xvt
Xvt()
Default constructor.
Definition: Xvt.hpp:101
gnsstk::Xvt::MinValue
@ MinValue
Definition: Xvt.hpp:89
gnsstk::Xvt::Unknown
@ Unknown
Health state is unknown.
Definition: Xvt.hpp:93
gnsstk::Xvt::MaxValue
@ MaxValue
Definition: Xvt.hpp:97
const
#define const
Definition: getopt.c:43
gnsstk::Xvt::Healthy
@ Healthy
Satellite is healthy, PVT valid.
Definition: Xvt.hpp:96
gnsstk::Xvt::getRelativityCorr
double getRelativityCorr() noexcept
access the relativity correction, in seconds
Definition: Xvt.hpp:128
gnsstk::Xvt::frame
RefFrame frame
reference frame of this data
Definition: Xvt.hpp:156
gnsstk::Xvt::Unavailable
@ Unavailable
Orbit information was not available, PVT invalid.
Definition: Xvt.hpp:91
gnsstk::Xvt::getClockBias
double getClockBias() noexcept
access the clock bias, in second
Definition: Xvt.hpp:120
gnsstk::Xvt::v
Triple v
satellite velocity in ECEF Cartesian, meters/second
Definition: Xvt.hpp:152
gnsstk::Xvt::~Xvt
virtual ~Xvt()
Destructor.
Definition: Xvt.hpp:108
GNSSconstants.hpp
gnsstk::RefFrame
Definition: RefFrame.hpp:53
gnsstk::Triple
Definition: Triple.hpp:68
gnsstk::Xvt::getVel
Triple getVel() noexcept
access the velocity in m/s
Definition: Xvt.hpp:116
gnsstk
For Sinex::InputHistory.
Definition: BasicFramework.cpp:50
gnsstk::Xvt::relcorr
double relcorr
relativity correction (standard 2R.V/c^2 term), seconds
Definition: Xvt.hpp:155
gnsstk::Xvt::Uninitialized
@ Uninitialized
Health status has not been set.
Definition: Xvt.hpp:90
gnsstk::Xvt::x
Triple x
Sat position ECEF Cartesian (X,Y,Z) meters.
Definition: Xvt.hpp:151
gnsstk::Xvt::preciseRho
double preciseRho(const Triple &rxPos, const EllipsoidModel &ellipsoid, double correction=0) const noexcept
Definition: Xvt.cpp:113
RefFrame.hpp
gnsstk::Xvt::getClockDrift
double getClockDrift() noexcept
access the clock drift, in second/second
Definition: Xvt.hpp:124
gnsstk::Xvt::clkdrift
double clkdrift
satellite clock drift in seconds/second
Definition: Xvt.hpp:154
gnsstk::Xvt
Definition: Xvt.hpp:60
gnsstk::Xvt::getPos
Triple getPos() noexcept
access the position, ECEF Cartesian in meters
Definition: Xvt.hpp:112
gnsstk::Xvt::HealthStatus
HealthStatus
Definition: Xvt.hpp:87
gnsstk::Xvt::health
HealthStatus health
Health status of satellite at ref time.
Definition: Xvt.hpp:157
std
Definition: Angle.hpp:142
Triple.hpp
gnsstk::Xvt::Degraded
@ Degraded
Sat is in a degraded state, recommend do not use.
Definition: Xvt.hpp:95
gnsstk::Xvt::clkbias
double clkbias
Sat clock correction in seconds.
Definition: Xvt.hpp:153
gnsstk::EllipsoidModel
Definition: EllipsoidModel.hpp:56
gnsstk::Xvt::computeRelativityCorrection
virtual double computeRelativityCorrection(void)
Definition: Xvt.cpp:98
gnsstk::Xvt::Unhealthy
@ Unhealthy
Sat is marked unhealthy, do not use PVT.
Definition: Xvt.hpp:94
gnsstk::Xvt::Unused
@ Unused
Sat health is not used in computing this PVT.
Definition: Xvt.hpp:92
EllipsoidModel.hpp


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