Class TabulatedLofOffset

java.lang.Object
org.orekit.attitudes.TabulatedLofOffset
All Implemented Interfaces:
AttitudeProvider, AttitudeRotationModel, BoundedAttitudeProvider, EventDetectorsProvider, ParameterDriversProvider

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:
  • Constructor Details

    • 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 computed
      lof - local orbital frame
      table - tabulated attitudes
      n - number of attitude to use for interpolation
      filter - 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 computed
      lof - local orbital frame
      table - tabulated attitudes
      n - number of attitude to use for interpolation
      filter - filter for derivatives from the sample to use in interpolation
      minDate - min date to use
      maxDate - max date to use
      Since:
      11.0
  • Method Details

    • 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 interface AttitudeProvider
      Parameters:
      pvProv - local position-velocity provider around current date
      date - current date
      frame - 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 interface AttitudeProvider
      Type Parameters:
      T - type of the field elements
      Parameters:
      pvProv - local position-velocity provider around current date
      date - current date
      frame - 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 interface BoundedAttitudeProvider
      Returns:
      the first date of the range
    • getMaxDate

      public AbsoluteDate getMaxDate()
      Get the last date of the range.
      Specified by:
      getMaxDate in interface BoundedAttitudeProvider
      Returns:
      the last date of the range