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 int
nT
protected double[]
qW
protected double[]
qX
protected double[]
qY
protected double[]
qZ
protected double[]
rateX
protected double[]
rateY
protected double[]
rateZ
protected long[]
tNs
Fields inherited from class gaiasky.util.gaia.NumericalAttitudeDataServer
gtis
Fields 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 Attitude
getAttitudeNative(long t)
Evaluate the attitude in the native time system of the serverabstract void
initialize()
Any numerical attitude needs to be initializedMethods inherited from class gaiasky.util.gaia.NumericalAttitudeDataServer
getGtis, getStartTime, getStopTime, isValid
Methods inherited from class gaiasky.util.gaia.BaseAttitudeDataServer
getAttitude, getAttitude, getRefTime, isInitialized, setInitialized, setRefTime
Methods 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:NumericalAttitudeDataServer
Any numerical attitude needs to be initialized- Specified by:
initialize
in 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:BaseAttitudeDataServer
Evaluate the attitude in the native time system of the server- Specified by:
getAttitudeNative
in 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)
-