Go to the documentation of this file.
71 double clockBias = 7, clockDrift = 8, relativityCorrection = 9;
78 compare.
relcorr = relativityCorrection;
84 TUCSM(
"getClockBias");
86 TUCSM(
"getClockDrift");
88 TUCSM(
"getRelativityCorr");
100 TUDEF(
"Xvt",
"computeRelativityCorrection");
103 Triple vel(4321, 1234, 1342);
105 double relcorr = -0.00011873444357376972;
111 pos[0] = -1234567000;
117 relcorr =8.242829448184317e-05;
141 TUDEF(
"Xvt",
"preciseRho");
142 std::string failMesg;
144 Triple rxPos(-7.0e5, -5.0e6, 3.0e6);
146 xvt.
x =
Triple(-9e5, -2e7, 9e6);
165 TUDEF(
"Xvt",
"operator<<");
169 double clockBias = 7, clockDrift = 8, relativityCorrection = 9;
175 output.
relcorr = relativityCorrection;
177 std::stringstream streamOutput;
178 std::stringstream streamCompare;
179 std::string stringOutput;
180 std::string stringCompare;
186 streamOutput << output;
187 stringOutput = streamOutput.str();
190 streamCompare <<
"x:" << output.
x
191 <<
", v:" << output.v
192 <<
", clk bias:" << output.clkbias
193 <<
", clk drift:" << output.clkdrift
194 <<
", relcorr:" << output.relcorr
195 <<
", health:" << output.health
198 stringCompare = streamCompare.str();
199 TUASSERTE(std::string, stringCompare, stringOutput);
203 TUFAIL(
"Unexpected exception");
210 TUDEF(
"Xvt::HealthStatus",
"operator<<");
211 for (
unsigned i =
static_cast<unsigned>(Xvt::HealthStatus::MinValue);
212 i <= static_cast<unsigned>(Xvt::HealthStatus::MaxValue);
216 s << static_cast<Xvt::HealthStatus>(i);
221 unsigned i =
static_cast<unsigned>(Xvt::HealthStatus::MaxValue) + 1;
223 s << static_cast<Xvt::HealthStatus>(i);
237 unsigned errorTotal = 0;
240 errorTotal += testClass.
getTest();
246 cout <<
"Total Failures for " << __FILE__ <<
": " << errorTotal << endl;
unsigned healthStatusStreamTest()
#define TUASSERTE(TYPE, EXP, GOT)
double getRelativityCorr() noexcept
access the relativity correction, in seconds
std::string asString(IonexStoreStrategy e)
Convert a IonexStoreStrategy to a whitespace-free string name.
double getClockBias() noexcept
access the clock bias, in second
Triple v
satellite velocity in ECEF Cartesian, meters/second
Triple getVel() noexcept
access the velocity in m/s
double relcorr
relativity correction (standard 2R.V/c^2 term), seconds
Xvt_T()
Default Constructor, set the precision value.
@ Uninitialized
Health status has not been set.
Triple x
Sat position ECEF Cartesian (X,Y,Z) meters.
double preciseRho(const Triple &rxPos, const EllipsoidModel &ellipsoid, double correction=0) const noexcept
unsigned computeRelativityCorrectionTest()
double getClockDrift() noexcept
access the clock drift, in second/second
#define TUASSERTFESMRT(EXP, GOT)
double clkdrift
satellite clock drift in seconds/second
#define TUASSERTFEPS(EXP, GOT, EPS)
#define TUDEF(CLASS, METHOD)
Triple getPos() noexcept
access the position, ECEF Cartesian in meters
HealthStatus health
Health status of satellite at ref time.
#define TUASSERTFE(EXP, GOT)
~Xvt_T()
Do-nothing Destructor.
double clkbias
Sat clock correction in seconds.
virtual double computeRelativityCorrection(void)
unsigned preciseRhoTest()
gnsstk
Author(s):
autogenerated on Wed Oct 25 2023 02:40:42