Package org.orekit.attitudes
Class TabulatedProvider
- java.lang.Object
-
- org.orekit.attitudes.TabulatedProvider
-
- All Implemented Interfaces:
Serializable
,AttitudeProvider
public class TabulatedProvider extends Object implements AttitudeProvider
This class handles an attitude provider interpolating from a predefined table.Instances of this class are guaranteed to be immutable.
- Since:
- 6.1
- Author:
- Luc Maisonobe
- See Also:
TabulatedLofOffset
, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TabulatedProvider(Frame referenceFrame, List<TimeStampedAngularCoordinates> table, int n, AngularDerivativesFilter filter)
Creates new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends org.hipparchus.RealFieldElement<T>>
FieldAttitude<T>getAttitude(FieldPVCoordinatesProvider<T> pvProv, FieldAbsoluteDate<T> date, Frame frame)
Compute the attitude corresponding to an orbital state.Attitude
getAttitude(PVCoordinatesProvider pvProv, AbsoluteDate date, Frame frame)
Compute the attitude corresponding to an orbital state.
-
-
-
Constructor Detail
-
TabulatedProvider
public TabulatedProvider(Frame referenceFrame, List<TimeStampedAngularCoordinates> table, int n, AngularDerivativesFilter filter)
Creates new instance.- Parameters:
referenceFrame
- reference frame for tabulated attitudestable
- tabulated attitudesn
- number of attitude to use for interpolationfilter
- filter for derivatives from the sample to use in interpolation
-
-
Method Detail
-
getAttitude
public Attitude getAttitude(PVCoordinatesProvider pvProv, AbsoluteDate date, Frame frame)
Compute the attitude corresponding to an orbital state.- Specified by:
getAttitude
in interfaceAttitudeProvider
- Parameters:
pvProv
- local position-velocity provider around current datedate
- current dateframe
- reference frame from which attitude is computed- Returns:
- attitude attitude on the specified date and position-velocity state
-
getAttitude
public <T extends org.hipparchus.RealFieldElement<T>> FieldAttitude<T> getAttitude(FieldPVCoordinatesProvider<T> pvProv, FieldAbsoluteDate<T> date, Frame frame)
Compute the attitude corresponding to an orbital state.- Specified by:
getAttitude
in interfaceAttitudeProvider
- Type Parameters:
T
- type of the field elements- Parameters:
pvProv
- local position-velocity provider around current datedate
- current dateframe
- reference frame from which attitude is computed- Returns:
- attitude attitude on the specified date and position-velocity state
-
-