public final class TabulatedAttitude extends Object implements AttitudeLeg
This class implements the tabulated attitude leg.
AttitudeLeg
,
Serialized FormModifier and Type | Field and Description |
---|---|
static int |
DEFAULT_INTERP_ORDER
Default number of points used for interpolation.
|
Constructor and Description |
---|
TabulatedAttitude(List<Attitude> inAttitudes)
Constructor with default number N of points used for interpolation.
|
TabulatedAttitude(List<Attitude> inAttitudes,
int nbInterpolationPoints)
Constructor with number of points used for interpolation
|
Modifier and Type | Method and Description |
---|---|
Attitude |
getAttitude(Orbit orbit)
Compute the attitude corresponding to an orbital state.
|
Attitude |
getAttitude(PVCoordinatesProvider pvProvider,
AbsoluteDate date,
Frame inFrame)
Compute the attitude corresponding to an orbital state.
|
List<Attitude> |
getAttitudes()
Get the non-interpolated and rightly ordered attitudes.
|
double[] |
getDurations()
Getter for durations.
|
AbsoluteDateInterval |
getTimeInterval()
Return the time interval of validity
|
void |
setSpinDerivativesComputation(boolean computeSpinDerivatives)
Method to activate spin derivative computation.
|
TabulatedAttitude |
setTimeInterval(AbsoluteDateInterval interval)
Return a new law with the specified interval.
|
public static final int DEFAULT_INTERP_ORDER
public TabulatedAttitude(List<Attitude> inAttitudes) throws PatriusException
inAttitudes
- the list of attitudes. WARNING : these attitudes must be ordered.PatriusException
- if the number of point is too small for interpolatingpublic TabulatedAttitude(List<Attitude> inAttitudes, int nbInterpolationPoints) throws PatriusException
inAttitudes
- the list of attitudes. WARNING : these attitudes must be ordered.nbInterpolationPoints
- number of points used for interpolationPatriusException
- if the number of point is too small for interpolatingpublic AbsoluteDateInterval getTimeInterval()
getTimeInterval
in interface AttitudeLeg
public Attitude getAttitude(PVCoordinatesProvider pvProvider, AbsoluteDate date, Frame inFrame) throws PatriusException
getAttitude
in interface AttitudeProvider
pvProvider
- local position-velocity provider around current datedate
- current dateinFrame
- reference frame from which attitude is computedPatriusException
- if attitude cannot be computedpublic TabulatedAttitude setTimeInterval(AbsoluteDateInterval interval) throws PatriusException
interval
- new interval of validityPatriusException
- if a problem occurs during frames transformation in new first and last attitudes computationspublic List<Attitude> getAttitudes()
public double[] getDurations()
public Attitude getAttitude(Orbit orbit) throws PatriusException
getAttitude
in interface AttitudeProvider
orbit
- current orbitPatriusException
- if attitude cannot be computedpublic void setSpinDerivativesComputation(boolean computeSpinDerivatives)
setSpinDerivativesComputation
in interface AttitudeProvider
computeSpinDerivatives
- true if spin derivatives should be computedCopyright © 2018 CNES. All Rights Reserved.