Class Attitude
- All Implemented Interfaces:
TimeShiftable<Attitude>,TimeStamped
This class represents the rotation between a reference frame and the satellite frame, as well as the spin of the satellite (axis and rotation rate).
The state can be slightly shifted to close dates. This shift is based on a linear extrapolation for attitude taking the spin rate into account. It is not intended as a replacement for proper attitude propagation but should be sufficient for either small time shifts or coarse accuracy.
The instance Attitude is guaranteed to be immutable.
- Author:
- Véronique Pommier-Maurussane
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionAttitude(Frame referenceFrame, TimeStampedAngularCoordinates orientation) Creates a new instance.Attitude(AbsoluteDate date, Frame referenceFrame, Rotation attitude, Vector3D spin, Vector3D acceleration) Creates a new instance.Attitude(AbsoluteDate date, Frame referenceFrame, AngularCoordinates orientation) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptiongetDate()Get the date of attitude parameters.Get the complete orientation including spin.Get the reference frame.Get the attitude rotation.Get the satellite rotation acceleration.getSpin()Get the satellite spin.shiftedBy(double dt) Get a time-shifted attitude.shiftedBy(TimeOffset dt) Get a time-shifted attitude.withReferenceFrame(Frame newReferenceFrame) Get a similar attitude with a specific reference frame.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.orekit.time.TimeStamped
durationFrom
-
Constructor Details
-
Attitude
Creates a new instance.- Parameters:
referenceFrame- reference frame from which attitude is definedorientation- complete orientation between reference frame and satellite frame, including rotation rate
-
Attitude
Creates a new instance.- Parameters:
date- date at which attitude is definedreferenceFrame- reference frame from which attitude is definedorientation- complete orientation between reference frame and satellite frame, including rotation rate
-
Attitude
public Attitude(AbsoluteDate date, Frame referenceFrame, Rotation attitude, Vector3D spin, Vector3D acceleration) Creates a new instance.- Parameters:
date- date at which attitude is definedreferenceFrame- reference frame from which attitude is definedattitude- rotation between reference frame and satellite framespin- satellite spin (axis and velocity, in satellite frame)acceleration- satellite rotation acceleration (in satellite frame)
-
-
Method Details
-
shiftedBy
Get a time-shifted attitude.The state can be slightly shifted to close dates. This shift is based on a linear extrapolation for attitude taking the spin rate into account. It is not intended as a replacement for proper attitude propagation but should be sufficient for either small time shifts or coarse accuracy.
- Specified by:
shiftedByin interfaceTimeShiftable<Attitude>- Parameters:
dt- time shift in seconds- Returns:
- a new attitude, shifted with respect to the instance (which is immutable)
-
shiftedBy
Get a time-shifted attitude.The state can be slightly shifted to close dates. This shift is based on a linear extrapolation for attitude taking the spin rate into account. It is not intended as a replacement for proper attitude propagation but should be sufficient for either small time shifts or coarse accuracy.
- Specified by:
shiftedByin interfaceTimeShiftable<Attitude>- Parameters:
dt- time shift- Returns:
- a new attitude, shifted with respect to the instance (which is immutable)
- Since:
- 13.0
-
withReferenceFrame
Get a similar attitude with a specific reference frame.If the instance reference frame is already the specified one, the instance itself is returned without any object creation. Otherwise, a new instance will be created with the specified reference frame. In this case, the required intermediate rotation and spin between the specified and the original reference frame will be inserted.
- Parameters:
newReferenceFrame- desired reference frame for attitude- Returns:
- an attitude that has the same orientation and motion as the instance, but guaranteed to have the specified reference frame
-
getDate
Get the date of attitude parameters.- Specified by:
getDatein interfaceTimeStamped- Returns:
- date of the attitude parameters
-
getReferenceFrame
Get the reference frame.- Returns:
- referenceFrame reference frame from which attitude is defined.
-
getOrientation
Get the complete orientation including spin.- Returns:
- complete orientation including spin
- See Also:
-
getRotation
Get the attitude rotation.- Returns:
- attitude satellite rotation from reference frame.
- See Also:
-
getSpin
Get the satellite spin.The spin vector is defined in satellite frame.
- Returns:
- spin satellite spin (axis and velocity).
- See Also:
-
getRotationAcceleration
Get the satellite rotation acceleration.The rotation acceleration. vector is defined in satellite frame.
- Returns:
- rotation acceleration
- See Also:
-