Earth Observation Mission CFI Software Pointing Software User Manual |
Class for storing the Satellite Nominal Attitude configuration parameters. More...
Public Member Functions | |
SatNomTransId () | |
Default constructor. | |
SatNomTransId (const SatNomTransId &other) | |
virtual | ~SatNomTransId () EXCEPT |
Class destructor. | |
void | init (long aocsModel) |
Initialise using AOCS model. | |
void | init (long model, const std::vector< double > &modelParams) |
Initialise satellite nominal attitude model for a given satellite. | |
void | init (long angleType, const std::vector< long > &harmTypePitch, const std::vector< long > &harmTypeRoll, const std::vector< long > &harmTypeYaw, const std::vector< double > &harmCoeffPitch, const std::vector< double > &harmCoeffRoll, const std::vector< double > &harmCoeffYaw) |
Initialise satellite orbital to satellite nominal attitude mispointing angles for a given satellite with harmonics. | |
void | init (const TimeCorrelation &timeId, const std::vector< std::string > &files, long timeInitMode, long timeRef, double time0, double time1) |
Initialise satellite nominal attitude angles for a given satellite reading values from the attitude files. | |
long | getAOCS () const |
Get AOCS parameters. | |
void | setAOCS (long aocsModel) |
Change initialisation AOCS parameters from the object. | |
ParamModel | getParam () const |
Get initialisation parameters of object. | |
void | setParam (const ParamModel ¶mModel) |
Change initialisation parameters of the object. | |
HarmonicModel | getHarmonic () const |
Get harmonic parameters of object. | |
void | setHarmonic (const HarmonicModel &harmModel) |
Change harmonic parameters of the object. | |
AttFileModel | getFile () const |
Get file data of object. | |
void | setFile (const AttFileModel &fileModel) |
Change initialisation file data of the object. | |
void | setAzElDefinition (const AzElDefinition &azElDef) |
Set azimuth/elevation definition. | |
SatId | satId () const |
Return satellite id. | |
SatNomTransId & | operator= (const SatNomTransId &other) |
Protected Member Functions | |
void | eraseObject () |
Erase object and free memory. |
Class for storing the Satellite Nominal Attitude configuration parameters.
EECFI::SatNomTransId::SatNomTransId | ( | ) |
Default constructor.
EECFI::SatNomTransId::SatNomTransId | ( | const SatNomTransId & | other | ) |
Copy constructor
other | The SatNomTransId to copy from |
EECFI::SatNomTransId::~SatNomTransId | ( | ) | [virtual] |
Class destructor.
References eraseObject().
void EECFI::SatNomTransId::eraseObject | ( | ) | [protected] |
Erase object and free memory.
References EECFI::CfiId::status(), EECFI::CfiId::subtractInstance(), and EECFI::CfiClass::throwWarn.
Referenced by operator=(), and ~SatNomTransId().
long EECFI::SatNomTransId::getAOCS | ( | ) | const |
Get AOCS parameters.
References EECFI::CfiError::addMsg(), and EECFI::CfiClass::throwWarn.
AttFileModel EECFI::SatNomTransId::getFile | ( | ) | const |
Get file data of object.
References EECFI::CfiError::addMsg(), EECFI::AttFileModel::attData, EECFI::AttFileModel::dataType, EECFI::AttFileModel::fileModel, EECFI::AttFileModel::inertialFrame, EECFI::AttFileModel::maxGap, EECFI::CfiClass::throwWarn, EECFI::AttFileModel::valTime0, and EECFI::AttFileModel::valTime1.
HarmonicModel EECFI::SatNomTransId::getHarmonic | ( | ) | const |
Get harmonic parameters of object.
References EECFI::CfiError::addMsg(), EECFI::HarmonicModel::angleType, EECFI::HarmonicData::harmonicCoeffPitch, EECFI::HarmonicData::harmonicCoeffRoll, EECFI::HarmonicData::harmonicCoeffYaw, EECFI::HarmonicModel::harmonicData, EECFI::HarmonicData::harmonicTypePitch, EECFI::HarmonicData::harmonicTypeRoll, EECFI::HarmonicData::harmonicTypeYaw, and EECFI::CfiClass::throwWarn.
ParamModel EECFI::SatNomTransId::getParam | ( | ) | const |
Get initialisation parameters of object.
References EECFI::CfiError::addMsg(), EECFI::ParamModel::model, EECFI::ParamModel::modelParam, and EECFI::CfiClass::throwWarn.
void EECFI::SatNomTransId::init | ( | long | aocsModel | ) |
Initialise using AOCS model.
aocsModel | AOCS model (SatNominalAttAocsModeEnum). |
References EECFI::CfiId::addInstance(), and EECFI::CfiClass::throwWarn.
void EECFI::SatNomTransId::init | ( | const TimeCorrelation & | timeId, | |
const std::vector< std::string > & | files, | |||
long | timeInitMode, | |||
long | timeRef, | |||
double | time0, | |||
double | time1 | |||
) |
Initialise satellite nominal attitude angles for a given satellite reading values from the attitude files.
In order to read files, this method internally uses Data Handling functions. Please refer to [D_H_SUM] for further details.
timeId | Time correlations. | |
files | Vector of files. | |
timeInitMode | Flag for selecting the time range of the initialisation (XPCFI_SEL_TIME or XPCFI_SEL_FILE). | |
timeRef | Time reference (TimeRefPointingEnum). | |
time0 | Start of the time range.. | |
time1 | Stop of the time range. |
References EECFI::CfiId::addInstance(), and EECFI::CfiClass::throwWarn.
void EECFI::SatNomTransId::init | ( | long | model, | |
const std::vector< double > & | modelParams | |||
) |
Initialise satellite nominal attitude model for a given satellite.
model | Model (SatNominalAttModelEnum). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
modelParams | Vector with parameters of the corresponding model.
Generic Model descriptionThe generic model builds the reference frames from the specified direction vectors.The model parameters are:
** Sun-Fixed Reference Frame
Sentinel-1 Model parameters descriptionThe parameters for the Sentinel-1 attitude model corresponds to the roll steering law:where the actual altitude of the satellite is approximated by the harmonic function: The first fourth terms of the series are considered. Consult [MSC] for more information. Sentinel-2 Model descriptionSentinel 2 model is implemented as generic model with the following definitions:
Yaw flip attitude Model descriptionYaw Flip model is implemented as generic model with the following definitions:
MetOp-SG Model descriptionMetOp-SG model is implemented as a generic model with the ideal YSM law and the following definitions:
|
References EECFI::CfiId::addInstance(), EECFI::CfiError::addMsg(), and EECFI::CfiClass::throwWarn.
void EECFI::SatNomTransId::init | ( | long | angleType, | |
const std::vector< long > & | harmTypePitch, | |||
const std::vector< long > & | harmTypeRoll, | |||
const std::vector< long > & | harmTypeYaw, | |||
const std::vector< double > & | harmCoeffPitch, | |||
const std::vector< double > & | harmCoeffRoll, | |||
const std::vector< double > & | harmCoeffYaw | |||
) |
Initialise satellite orbital to satellite nominal attitude mispointing angles for a given satellite with harmonics.
The Attitude::compute and Attitude::changeFrame functions will then compute the values as follows:
angleType | Type of angle (given by PointingAngleTypeEnum). | |
harmTypePitch | Type of coefficients:
. | |
harmTypeRoll | Type of coefficients (bias, sinus, cosinus). | |
harmTypeYaw | Type of coefficients (bias, sinus, cosinus). | |
harmCoefPitch | Bias, sinus and cosinus coefficients for the pitch angle. | |
harmCoefRoll | Bias, sinus and cosinus coefficients for the roll angle. | |
harmCoefYaw | Bias, sinus and cosinus coefficients for the yaw angle. |
References EECFI::CfiId::addInstance(), EECFI::CfiError::addMsg(), and EECFI::CfiClass::throwWarn.
SatNomTransId & EECFI::SatNomTransId::operator= | ( | const SatNomTransId & | other | ) |
Copy assignment operator.
other | The SatNomTransId to copy/assign from |
References EECFI::CfiId::addInstance(), and eraseObject().
SatId EECFI::SatNomTransId::satId | ( | ) | const |
Return satellite id.
void EECFI::SatNomTransId::setAOCS | ( | long | aocsModel | ) |
Change initialisation AOCS parameters from the object.
aocsModel | AOCS model. |
References EECFI::CfiError::addMsg(), and EECFI::CfiClass::throwWarn.
void EECFI::SatNomTransId::setAzElDefinition | ( | const AzElDefinition & | azElDef | ) |
Set azimuth/elevation definition.
azElDef | Definition of azimuth and elevation. |
References EECFI::AzElDefinition::az0Axis, EECFI::AzElDefinition::az90Axis, EECFI::AzElDefinition::el90Axis, and EECFI::CfiClass::throwWarn.
void EECFI::SatNomTransId::setFile | ( | const AttFileModel & | fileModel | ) |
Change initialisation file data of the object.
fileModel | File model data. |
References EECFI::CfiError::addMsg(), EECFI::AttFileModel::attData, EECFI::AttFileModel::dataType, EECFI::AttFileModel::fileModel, EECFI::AttFileModel::inertialFrame, EECFI::AttFileModel::maxGap, EECFI::CfiClass::throwWarn, EECFI::AttFileModel::valTime0, and EECFI::AttFileModel::valTime1.
void EECFI::SatNomTransId::setHarmonic | ( | const HarmonicModel & | harmonicModel | ) |
Change harmonic parameters of the object.
harmonicModel | Harmonic model data. |
References EECFI::CfiError::addMsg(), EECFI::HarmonicModel::angleType, EECFI::HarmonicData::harmonicCoeffPitch, EECFI::HarmonicData::harmonicCoeffRoll, EECFI::HarmonicData::harmonicCoeffYaw, EECFI::HarmonicModel::harmonicData, EECFI::HarmonicData::harmonicTypePitch, EECFI::HarmonicData::harmonicTypeRoll, EECFI::HarmonicData::harmonicTypeYaw, and EECFI::CfiClass::throwWarn.
void EECFI::SatNomTransId::setParam | ( | const ParamModel & | paramModel | ) |
Change initialisation parameters of the object.
paramModel | Parameters of model. |
References EECFI::CfiError::addMsg(), EECFI::ParamModel::model, EECFI::ParamModel::modelParam, and EECFI::CfiClass::throwWarn.