63 SpacecraftPosition::SpacecraftPosition(
int targetCode,
int observerCode,
67 ltState.isObserverTargetSwapped()) {
175 SpiceDouble state[6], lt;
177 const SpiceInt ssbCode(0);
184 SpiceDouble ssbObs[6], ssbObs_lt;
187 "J2000",
"NONE", ssbObs, dummy, ssbObs_lt);
191 SpiceDouble ssbTarg[6], ssbTarg_lt;
193 "J2000",
"NONE", ssbTarg, dummy, ssbTarg_lt);
196 (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.
int getTargetCode() const
Returns target code.
virtual void SetAberrationCorrection(const QString &correction)
Set the aberration correction (light time)
QString getAberrationCorrection() const
Returns the value of the current stellar aberration state.
void setAberrationCorrection(const QString &correction)
Sets the aberration correction directly.
Provides interface to user configurable Light Time correction feature.
const LightTimeCorrectionState & getLightTimeState() const
Return the state of light time correction parameters.
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
Distance measurement, usually in meters.
virtual QString GetAberrationCorrection() const
Returns the stellr aberration correction applied.
Distance m_radius
Radius of target.
int getObserverCode() const
Returns observer code.
bool isLightTimeToSurfaceCorrected() const
Returns state of light time from surface to center body correction.
double getRadiusLightTime() const
Returns the time it takes for light to travel the radius of the target.
void setStateVector(const double state[6], const bool &hasVelocity)
Sets the state of target relative to observer.
LightTimeCorrectionState m_abcorr
Light time correction state.
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
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 SetEphemerisTimeSpice()
Determine accurate position of target w.r.t.
Obtain SPICE position information for a body.
virtual void SetAberrationCorrection(const QString &correction)
Set aberration correction value for determining positions.
void setLightTime(const double &lightTime)
Inheritors can set the light time if indicated.
double kilometers() const
Get the distance in kilometers.
bool isLightTimeCorrected() const
Is light time to target corrected?
virtual void SetEphemerisTimeSpice()
This is a protected method that is called by SetEphemerisTime() when Source type is Spice...
double getAdjustedEphemerisTime() const
Returns adjusted ephemeris time.