Constructor and Description |
---|
ApmQuaternion()
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
Attitude |
getAttitude(Frame frame,
PVCoordinatesProvider pvProvider)
Get the attitude.
|
AttitudeEndoints |
getEndpoints()
Get the endpoints (i.e.
|
AbsoluteDate |
getEpoch()
Get the epoch of the data.
|
Quaternion |
getQuaternion()
Get the quaternion.
|
Quaternion |
getQuaternionDot()
Get the quaternion derivative.
|
boolean |
hasRates()
Check if the logical block includes rates.
|
void |
setEpoch(AbsoluteDate epoch)
Set the epoch of the data.
|
void |
setQ(int index,
double value)
Set quaternion component.
|
void |
setQDot(int index,
double derivative)
Set quaternion derivative component.
|
void |
validate(double version)
Check is all mandatory entries have been initialized.
|
public void validate(double version)
This method should throw an exception if some mandatory entries are missing or not compatible with version number.
public AbsoluteDate getEpoch()
public void setEpoch(AbsoluteDate epoch)
epoch
- the epoch to be setpublic AttitudeEndoints getEndpoints()
public Quaternion getQuaternion()
public void setQ(int index, double value)
index
- component index (0 is scalar part)value
- quaternion componentpublic Quaternion getQuaternionDot()
public void setQDot(int index, double derivative)
index
- component index (0 is scalar part)derivative
- quaternion derivative componentpublic boolean hasRates()
public Attitude getAttitude(Frame frame, PVCoordinatesProvider pvProvider)
frame
- reference frame with respect to which attitude must be defined
(may be null if attitude is not orbit-relative and one wants
attitude in the same frame as used in the attitude message)pvProvider
- provider for spacecraft position and velocity
(may be null if attitude is not orbit-relative)Copyright © 2002-2021 CS GROUP. All rights reserved.