Earth Observation Mission CFI Software Pointing Software User Manual |
Atitude definition. More...
Public Member Functions | |
AttitudeDef () | |
Empty constructor. | |
AttitudeDef (long type, const SatNomTransId &satNomIn, const SatTransId &satIn, const InstrTransId &instrIn) | |
Constructor with paramters. | |
~AttitudeDef () NOEXCEPT | |
Destructor. | |
void | attitudeTransform (const TransformCfg &transformCfg) |
The reference frame in the attitude id can be changed using attitudeTransform. | |
AttFile | genAttitudeData (const OrbitId &orbId, const OrbTimeInterval &timeInterval, double timeStep, long dataType, long sourceRefType, long sourceRef) const |
Compute a list of quaternions/angles equivalent to the transformation from sourceRef to the attitude target frame. | |
void | genAttitudeFile (OrbitId &orbId, const OrbTimeInterval &timeInterval, double timeStep, long dataType, long sourceRefType, long sourceRef, const std::string &outputDir, const std::string &fileClass, long versionNumber, const std::string &fhSystem, std::string &outputFileName) const |
Create an attitude file with quaternions/angles equivalent to the transformation from sourceRef to the attitude target frame. | |
Public Attributes | |
long | type |
XPCFI_SAT_NOMINAL_ATT/XPCFI_SAT_ATT/XPCFI_INSTR_ATT. | |
SatNomTransId | satNomTransId |
Satellite nominal attitude. | |
SatTransId | satTransId |
Satellite attitude. | |
InstrTransId | instrTransId |
Instrument attitude. |
Atitude definition.
EECFI::AttitudeDef::AttitudeDef | ( | ) |
Empty constructor.
References type.
EECFI::AttitudeDef::AttitudeDef | ( | long | type, | |
const SatNomTransId & | satNomIn, | |||
const SatTransId & | satIn, | |||
const InstrTransId & | instrIn | |||
) |
Constructor with paramters.
References instrTransId, satNomTransId, satTransId, and type.
EECFI::AttitudeDef::~AttitudeDef | ( | ) |
Destructor.
void EECFI::AttitudeDef::attitudeTransform | ( | const TransformCfg & | transformCfg | ) |
The reference frame in the attitude id can be changed using attitudeTransform.
Remark: all attitude related computations are performed in the True of Date Coordinate System. This means that, if one attitude id has been initialized with data expressed in another reference frame (e.g. attitude file with quaternions expressed in EF), at each call of a function using such attitude id (e.g. Attitude::compute) one or more conversions to True of Date will be performed. If the reference frame is changed to True of Date (using AttitudeDef::attitudeTransform), such conversions will not be executed and this will result in a run-time performance improvement.
Note: transformation of attitude ids that are initialized with Start Tracker files is not supported.
transformCfg | Transformation parameters. |
References EECFI::GenericId::ee_id, EECFI::SatNomTransId::getId(), EECFI::SatTransId::getId(), EECFI::InstrTransId::getId(), instrTransId, EECFI::TransformCfg::modelId, EECFI::TransformCfg::refFrame, satNomTransId, satTransId, EECFI::CfiClass::throwWarn, EECFI::TransformCfg::timeId, and type.
AttFile EECFI::AttitudeDef::genAttitudeData | ( | const OrbitId & | orbId, | |
const OrbTimeInterval & | timeInterval, | |||
double | timeStep, | |||
long | dataType, | |||
long | sourceRefType, | |||
long | sourceRef | |||
) | const |
Compute a list of quaternions/angles equivalent to the transformation from sourceRef to the attitude target frame.
A data set (quaternions/angles) is generated every "timeStep" seconds along the input "timeInterval"
timeInterval | Time interval to be generated | |
timeStep | interval between records in file (seconds) | |
dataType | Euler angles or quaternions | |
sourceRefType | source reference frame type (External or satellite) | |
sourceRef | source reference frame |
References EECFI::AttFile::attRec, EECFI::AttFile::dataType, instrTransId, EECFI::AttFile::maxGap, EECFI::OrbTime::msec, EECFI::OrbTime::orbitNum, satNomTransId, EECFI::AttFile::satRef, satTransId, EECFI::OrbTime::sec, EECFI::AttFile::sourceRef, EECFI::CfiClass::throwWarn, EECFI::OrbTime::time, EECFI::OrbTime::timeRef, EECFI::OrbTimeInterval::tstart, EECFI::OrbTimeInterval::tstop, type, and EECFI::OrbTime::type.
void EECFI::AttitudeDef::genAttitudeFile | ( | OrbitId & | orbId, | |
const OrbTimeInterval & | timeInterval, | |||
double | timeStep, | |||
long | dataType, | |||
long | sourceRefType, | |||
long | sourceRef, | |||
const std::string & | outputDir, | |||
const std::string & | fileClass, | |||
long | versionNumber, | |||
const std::string & | fhSystem, | |||
std::string & | outputFileName | |||
) | const |
Create an attitude file with quaternions/angles equivalent to the transformation from sourceRef to the attitude target frame.
The file records are generated every "timeStep" seconds along the input "timeInterval"
Instrument attitude.
Referenced by AttitudeDef(), attitudeTransform(), and genAttitudeData().
Satellite nominal attitude.
Referenced by AttitudeDef(), attitudeTransform(), and genAttitudeData().
Satellite attitude.
Referenced by AttitudeDef(), attitudeTransform(), and genAttitudeData().
XPCFI_SAT_NOMINAL_ATT/XPCFI_SAT_ATT/XPCFI_INSTR_ATT.
Referenced by AttitudeDef(), attitudeTransform(), and genAttitudeData().