public class Apm extends NdmConstituent<Header,Segment<AdmMetadata,ApmData>>
Modifier and Type | Field and Description |
---|---|
static String |
FORMAT_VERSION_KEY
Key for format version.
|
static String |
ROOT
Root element for XML files.
|
Constructor and Description |
---|
Apm(Header header,
List<Segment<AdmMetadata,ApmData>> segments,
IERSConventions conventions,
DataContext dataContext)
Simple constructor.
|
Modifier and Type | Method and Description |
---|---|
Attitude |
getAttitude(Frame frame,
PVCoordinatesProvider pvProvider)
Get the attitude.
|
ApmData |
getData()
Get the file data.
|
AdmMetadata |
getMetadata()
Get the file metadata.
|
getConventions, getDataContext, getHeader, getSegments, validate
public static final String ROOT
public static final String FORMAT_VERSION_KEY
public Apm(Header header, List<Segment<AdmMetadata,ApmData>> segments, IERSConventions conventions, DataContext dataContext)
header
- file headersegments
- file segmentsconventions
- IERS conventionsdataContext
- used for creating frames, time scales, etc.public AdmMetadata getMetadata()
public ApmData getData()
public Attitude getAttitude(Frame frame, PVCoordinatesProvider pvProvider)
The orientation part of the attitude is always extracted from the file mandatory
quaternion logical block
. The rotation rate part of
the attitude is extracted from the quaternion logical block
if rate is available there, or from the Euler logical block
if rate
is missing from quaternion logical block but available in Euler logical block.
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.