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);
int getObserverCode() const
Returns observer code.
static double getDistanceLightTime(const Distance &distance)
Returns the time it takes for light to travel a given distance.
virtual QString GetAberrationCorrection() const
Returns the stellr aberration correction applied.
virtual void SetAberrationCorrection(const QString &correction)
Set the aberration correction (light time)
void setAberrationCorrection(const QString &correction)
Sets the aberration correction directly.
Provides interface to user configurable Light Time correction feature.
Namespace for the standard library.
int getTargetCode() const
Returns target code.
QString getAberrationCorrection() const
Returns the value of the current stellar aberration state.
Unless noted otherwise, the portions of Isis written by the USGS are public domain.
double kilometers() const
Get the distance in kilometers.
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.
Distance measurement, usually in meters.
bool isLightTimeToSurfaceCorrected() const
Returns state of light time from surface to center body correction.
Distance m_radius
Radius of target.
double getAdjustedEphemerisTime() const
Returns adjusted ephemeris time.
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.
virtual void SetEphemerisTimeSpice()
Determine accurate position of target w.r.t.
const LightTimeCorrectionState & getLightTimeState() const
Return the state of light time correction parameters.
Obtain SPICE position information for a body.
virtual void SetAberrationCorrection(const QString &correction)
Set aberration correction value for determining positions.
Namespace for ISIS/Bullet specific routines.
void setLightTime(const double &lightTime)
Inheritors can set the light time if indicated.
bool isLightTimeCorrected() const
Is light time to target corrected?
double getRadiusLightTime() const
Returns the time it takes for light to travel the radius of the target.
virtual void SetEphemerisTimeSpice()
This is a protected method that is called by SetEphemerisTime() when Source type is Spice...