Constructor and Description |
---|
ApmData(CommentsContainer commentsBlock,
AbsoluteDate epoch,
ApmQuaternion quaternionBlock,
Euler eulerBlock,
AngularVelocity angularVelocityBlock,
SpinStabilized spinStabilizedBlock,
Inertia inertia)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addManeuver(Maneuver maneuver)
Add a maneuver.
|
AngularVelocity |
getAngularVelocityBlock()
Get the angular velocity logical block.
|
Attitude |
getAttitude(Frame frame,
PVCoordinatesProvider pvProvider)
Get the attitude.
|
List<String> |
getComments()
Get the comments.
|
AbsoluteDate |
getEpoch()
Get the epoch of the data.
|
Euler |
getEulerBlock()
Get the Euler angles logical block.
|
Inertia |
getInertiaBlock()
Get the inertia logical block.
|
Maneuver |
getManeuver(int index)
Get a maneuver.
|
List<Maneuver> |
getManeuvers()
Get a list of all maneuvers.
|
int |
getNbManeuvers()
Get the number of maneuvers present in the APM.
|
ApmQuaternion |
getQuaternionBlock()
Get the quaternion logical block.
|
SpinStabilized |
getSpinStabilizedBlock()
Get the spin-stabilized logical block.
|
boolean |
hasManeuvers()
Get boolean testing whether the APM contains at least one maneuver.
|
void |
validate(double version)
Check is all mandatory entries have been initialized.
|
public ApmData(CommentsContainer commentsBlock, AbsoluteDate epoch, ApmQuaternion quaternionBlock, Euler eulerBlock, AngularVelocity angularVelocityBlock, SpinStabilized spinStabilizedBlock, Inertia inertia)
commentsBlock
- general comments blockepoch
- epoch of the dataquaternionBlock
- quaternion logical block (may be null in ADM V2 or later)eulerBlock
- Euler angles logicial block (may be null)angularVelocityBlock
- angular velocity block (may be null)spinStabilizedBlock
- spin-stabilized logical block (may be null)inertia
- inertia logical block (may be null)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 ApmQuaternion getQuaternionBlock()
public Euler getEulerBlock()
public AngularVelocity getAngularVelocityBlock()
public SpinStabilized getSpinStabilizedBlock()
public Inertia getInertiaBlock()
public int getNbManeuvers()
public List<Maneuver> getManeuvers()
public Maneuver getManeuver(int index)
index
- maneuver index, counting from 0public void addManeuver(Maneuver maneuver)
maneuver
- maneuver to be setpublic boolean hasManeuvers()
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-2023 CS GROUP. All rights reserved.