Package org.orekit.attitudes
Class FixedRate
- java.lang.Object
-
- org.orekit.attitudes.FixedRate
-
- All Implemented Interfaces:
AttitudeProvider
public class FixedRate extends Object implements AttitudeProvider
This class handles a simple attitude provider at constant rate around a fixed axis.This attitude provider is a simple linear extrapolation from an initial orientation, a rotation axis and a rotation rate. All this elements can be specified as a simple
reference attitude
.Instances of this class are guaranteed to be immutable.
- Author:
- Luc Maisonobe
-
-
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.Attitude
getReferenceAttitude()
Get the reference attitude.-
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
-
-
-
-
Constructor Detail
-
FixedRate
public FixedRate(Attitude referenceAttitude)
Creates a new instance.- Parameters:
referenceAttitude
- attitude at reference date
-
-
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 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
-
getReferenceAttitude
public Attitude getReferenceAttitude()
Get the reference attitude.- Returns:
- reference attitude
-
-