|
Isis 3 Programmer Reference
|
7 #include "SpacecraftPosition.h"
14 #include "Constants.h"
16 #include "EndianSwapper.h"
18 #include "IException.h"
21 #include "Longitude.h"
22 #include "NaifStatus.h"
48 SpacecraftPosition::SpacecraftPosition(
int targetCode,
int observerCode,
52 ltState.isObserverTargetSwapped()) {
160 SpiceDouble state[6], lt;
162 const SpiceInt ssbCode(0);
169 SpiceDouble ssbObs[6], ssbObs_lt;
172 "J2000",
"NONE", ssbObs, dummy, ssbObs_lt);
176 SpiceDouble ssbTarg[6], ssbTarg_lt;
178 "J2000",
"NONE", ssbTarg, dummy, ssbTarg_lt);
181 (void) vsubg_c(ssbTarg, ssbObs, 6, state);
static double getDistanceLightTime(const Distance &distance)
Returns the time it takes for light to travel a given distance.
double kilometers() const
Get the distance in kilometers.
virtual QString GetAberrationCorrection() const
Returns the stellr aberration correction applied.
Obtain SPICE position information for a body.
virtual void SetEphemerisTimeSpice()
This is a protected method that is called by SetEphemerisTime() when Source type is Spice.
bool isLightTimeCorrected() const
Is light time to target corrected?
void computeStateVector(double et, int target, int observer, const QString &refFrame, const QString &abcorr, double state[6], bool &hasVelocity, double &lightTime) const
Computes the state vector of the target w.r.t observer.
virtual void SetAberrationCorrection(const QString &correction)
Set the aberration correction (light time)
double getAdjustedEphemerisTime() const
Returns adjusted ephemeris time.
int getTargetCode() const
Returns target code.
void setStateVector(const double state[6], const bool &hasVelocity)
Sets the state of target relative to observer.
Distance measurement, usually in meters.
int getObserverCode() const
Returns observer code.
Distance m_radius
Radius of target.
void setLightTime(const double &lightTime)
Inheritors can set the light time if indicated.
LightTimeCorrectionState m_abcorr
Light time correction state.
void setAberrationCorrection(const QString &correction)
Sets the aberration correction directly.
Namespace for the standard library.
virtual void SetEphemerisTimeSpice()
Determine accurate position of target w.r.t.
const LightTimeCorrectionState & getLightTimeState() const
Return the state of light time correction parameters.
double getRadiusLightTime() const
Returns the time it takes for light to travel the radius of the target.
bool isLightTimeToSurfaceCorrected() const
Returns state of light time from surface to center body correction.
virtual void SetAberrationCorrection(const QString &correction)
Set aberration correction value for determining positions.
Provides interface to user configurable Light Time correction feature.
This is free and unencumbered software released into the public domain.
QString getAberrationCorrection() const
Returns the value of the current stellar aberration state.