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
All Methods Instance Methods Abstract Methods Concrete Methods 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 initialized-
Methods 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
-
-
-
-
Constructor Detail
-
HermiteInterpolatedAttitudeDataServer
public HermiteInterpolatedAttitudeDataServer(long tStart, Duration tLength)
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 Detail
-
initialize
public abstract void initialize() throws java.lang.RuntimeException
Description 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
public Attitude getAttitudeNative(long t) throws java.lang.RuntimeException
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)
-
-