use enum instead of rtval to enable easier tm generation
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit
Some checks failed
EIVE/eive-obsw/pipeline/pr-develop There was a failure building this commit
This commit is contained in:
@ -13,18 +13,18 @@ SafeCtrl::SafeCtrl(AcsParameters *acsParameters_) { acsParameters = acsParameter
|
||||
|
||||
SafeCtrl::~SafeCtrl() {}
|
||||
|
||||
ReturnValue_t SafeCtrl::safeCtrlStrategy(const bool magFieldValid, const ReturnValue_t mekfValid,
|
||||
const bool satRotRateValid, const bool sunDirValid) {
|
||||
uint8_t SafeCtrl::safeCtrlStrategy(const bool magFieldValid, const ReturnValue_t mekfValid,
|
||||
const bool satRotRateValid, const bool sunDirValid) {
|
||||
if (not magFieldValid) {
|
||||
return SAFECTRL_NO_MAG_FIELD_FOR_CONTROL;
|
||||
return SafeModeStrategy::SAFECTRL_NO_MAG_FIELD_FOR_CONTROL;
|
||||
} else if (mekfValid) {
|
||||
return SAFECTRL_USE_MEKF;
|
||||
return SafeModeStrategy::SAFECTRL_USE_MEKF;
|
||||
} else if (satRotRateValid and sunDirValid) {
|
||||
return SAFECTRL_USE_NONMEKF;
|
||||
return SafeModeStrategy::SAFECTRL_USE_NONMEKF;
|
||||
} else if (satRotRateValid and not sunDirValid) {
|
||||
return SAFECTRL_USE_DAMPING;
|
||||
return SafeModeStrategy::SAFECTRL_USE_DAMPING;
|
||||
} else {
|
||||
return SAFECTRL_NO_SENSORS_FOR_CONTROL;
|
||||
return SafeModeStrategy::SAFECTRL_NO_SENSORS_FOR_CONTROL;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user