Package gaiasky.util.gaia
Class HermiteInterpolatedAttitudeDataServer
java.lang.Object
gaiasky.util.gaia.BaseAttitudeDataServer<A>
gaiasky.util.gaia.NumericalAttitudeDataServer<Attitude>
gaiasky.util.gaia.HermiteInterpolatedAttitudeDataServer
- Direct Known Subclasses:
MslAttitudeDataServer
public abstract class HermiteInterpolatedAttitudeDataServer extends NumericalAttitudeDataServer<Attitude>
This abstract class contains the fields needed to store numerical attitude in
the form of arrays (q and SRS rates), and a method to calculate the attitude
for any given time using cubic Hermite interpolation
-
Field Summary
Fields Modifier and Type Field Description protected intnTprotected double[]qWprotected double[]qXprotected double[]qYprotected double[]qZprotected double[]rateXprotected double[]rateYprotected double[]rateZprotected long[]tNsFields inherited from class gaiasky.util.gaia.NumericalAttitudeDataServer
gtisFields inherited from class gaiasky.util.gaia.BaseAttitudeDataServer
initialized, initialRequestedTimeContext, nativeTimeContext, withUncertaintiesCorrelations -
Constructor Summary
Constructors Constructor Description HermiteInterpolatedAttitudeDataServer(long tStart, Duration tLength)Constructor for a given start time and mission length -
Method Summary
Modifier and Type Method Description AttitudegetAttitudeNative(long t)Evaluate the attitude in the native time system of the serverabstract voidinitialize()Any numerical attitude needs to be initializedMethods inherited from class gaiasky.util.gaia.NumericalAttitudeDataServer
getGtis, getStartTime, getStopTime, isValidMethods inherited from class gaiasky.util.gaia.BaseAttitudeDataServer
getAttitude, getAttitude, getRefTime, isInitialized, setInitialized, setRefTimeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Field Details
-
nT
protected int nT -
tNs
protected long[] tNs -
qX
protected double[] qX -
qY
protected double[] qY -
qZ
protected double[] qZ -
qW
protected double[] qW -
rateX
protected double[] rateX -
rateY
protected double[] rateY -
rateZ
protected double[] rateZ
-
-
Constructor Details
-
HermiteInterpolatedAttitudeDataServer
Constructor for a given start time and mission length- Parameters:
tStart- start time of the valid attitude intervaltLength- length of the valid attitude interval
-
-
Method Details
-
initialize
public abstract void initialize() throws java.lang.RuntimeExceptionDescription copied from class:NumericalAttitudeDataServerAny numerical attitude needs to be initialized- Specified by:
initializein classNumericalAttitudeDataServer<Attitude>- Throws:
java.lang.RuntimeException- initialization fails- See Also:
This method will compute the attitude and attitude rate at discrete points and store in the arrays tNs, qX, rateX, etc
-
getAttitudeNative
Description copied from class:BaseAttitudeDataServerEvaluate the attitude in the native time system of the server- Specified by:
getAttitudeNativein classBaseAttitudeDataServer<Attitude>- Parameters:
t- - the time elapsed since the epoch of J2010 in ns (TCB)- Returns:
- attitude for the given time
- Throws:
java.lang.RuntimeException- See Also:
BaseAttitudeDataServer.getAttitude(long)
-