public final class TabulatedAttitude extends Object implements AttitudeLeg
This class implements the tabulated attitude leg.
AttitudeLeg,
Serialized Form| Modifier 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 AttitudeLegpublic Attitude getAttitude(PVCoordinatesProvider pvProvider, AbsoluteDate date, Frame inFrame) throws PatriusException
getAttitude in interface AttitudeProviderpvProvider - 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 AttitudeProviderorbit - current orbitPatriusException - if attitude cannot be computedpublic void setSpinDerivativesComputation(boolean computeSpinDerivatives)
setSpinDerivativesComputation in interface AttitudeProvidercomputeSpinDerivatives - true if spin derivatives should be computedCopyright © 2017 CNES. All rights reserved.