Package org.orekit.attitudes
Class TabulatedLofOffset
- java.lang.Object
-
- org.orekit.attitudes.TabulatedLofOffset
-
- All Implemented Interfaces:
AttitudeProvider
,BoundedAttitudeProvider
,EventDetectorsProvider
public class TabulatedLofOffset extends Object implements BoundedAttitudeProvider
This class handles an attitude provider interpolating from a predefined table containing offsets from a Local Orbital Frame.Instances of this class are guaranteed to be immutable.
- Since:
- 7.1
- Author:
- Luc Maisonobe
- See Also:
LofOffset
,TabulatedProvider
-
-
Field Summary
-
Fields inherited from interface org.orekit.propagation.events.EventDetectorsProvider
DATATION_ACCURACY
-
-
Constructor Summary
Constructors Constructor Description TabulatedLofOffset(Frame inertialFrame, LOF lof, List<? extends TimeStampedAngularCoordinates> table, int n, AngularDerivativesFilter filter)
Creates new instance.TabulatedLofOffset(Frame inertialFrame, LOF lof, List<? extends TimeStampedAngularCoordinates> table, int n, AngularDerivativesFilter filter, AbsoluteDate minDate, AbsoluteDate maxDate)
Creates new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends CalculusFieldElement<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.AbsoluteDate
getMaxDate()
Get the last date of the range.AbsoluteDate
getMinDate()
Get the first date of the range.List<? extends TimeStampedAngularCoordinates>
getTable()
Get an unmodifiable view of the tabulated attitudes.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.orekit.attitudes.AttitudeProvider
getAttitudeRotation, getAttitudeRotation, getEventDetectors, getFieldEventDetectors
-
Methods inherited from interface org.orekit.propagation.events.EventDetectorsProvider
getEventDetectors, getFieldEventDetectors
-
-
-
-
Constructor Detail
-
TabulatedLofOffset
public TabulatedLofOffset(Frame inertialFrame, LOF lof, List<? extends TimeStampedAngularCoordinates> table, int n, AngularDerivativesFilter filter)
Creates new instance.This constructor uses the first and last point samples as the min and max dates.
- Parameters:
inertialFrame
- inertial frame with respect to which orbit should be computedlof
- local orbital frametable
- tabulated attitudesn
- number of attitude to use for interpolationfilter
- filter for derivatives from the sample to use in interpolation
-
TabulatedLofOffset
public TabulatedLofOffset(Frame inertialFrame, LOF lof, List<? extends TimeStampedAngularCoordinates> table, int n, AngularDerivativesFilter filter, AbsoluteDate minDate, AbsoluteDate maxDate)
Creates new instance.- Parameters:
inertialFrame
- inertial frame with respect to which orbit should be computedlof
- local orbital frametable
- tabulated attitudesn
- number of attitude to use for interpolationminDate
- min date to usemaxDate
- max date to usefilter
- filter for derivatives from the sample to use in interpolation- Since:
- 11.0
-
-
Method Detail
-
getTable
public List<? extends TimeStampedAngularCoordinates> getTable()
Get an unmodifiable view of the tabulated attitudes.- Returns:
- unmodifiable view of the tabulated attitudes
-
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 on the specified date and position-velocity state
-
getAttitude
public <T extends CalculusFieldElement<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 on the specified date and position-velocity state
-
getMinDate
public AbsoluteDate getMinDate()
Get the first date of the range.- Specified by:
getMinDate
in interfaceBoundedAttitudeProvider
- Returns:
- the first date of the range
-
getMaxDate
public AbsoluteDate getMaxDate()
Get the last date of the range.- Specified by:
getMaxDate
in interfaceBoundedAttitudeProvider
- Returns:
- the last date of the range
-
-