improved readability?
All checks were successful
EIVE/eive-obsw/pipeline/pr-main This commit looks good
All checks were successful
EIVE/eive-obsw/pipeline/pr-main This commit looks good
This commit is contained in:
parent
e2926e25f6
commit
c6294cadbd
@ -17,17 +17,24 @@ acs::SafeModeStrategy SafeCtrl::safeCtrlStrategy(
|
|||||||
return acs::SafeModeStrategy::SAFECTRL_NO_MAG_FIELD_FOR_CONTROL;
|
return acs::SafeModeStrategy::SAFECTRL_NO_MAG_FIELD_FOR_CONTROL;
|
||||||
} else if (mekfEnabled and mekfValid) {
|
} else if (mekfEnabled and mekfValid) {
|
||||||
return acs::SafeModeStrategy::SAFECTRL_MEKF;
|
return acs::SafeModeStrategy::SAFECTRL_MEKF;
|
||||||
} else if (gyrEnabled and satRotRateValid and sunDirValid) {
|
} else if (sunDirValid) {
|
||||||
return acs::SafeModeStrategy::SAFECTRL_GYR;
|
if (gyrEnabled and satRotRateValid) {
|
||||||
} else if (not gyrEnabled and sunDirValid and fusedRateSplitValid) {
|
return acs::SafeModeStrategy::SAFECTRL_GYR;
|
||||||
return acs::SafeModeStrategy::SAFECTRL_SUSMGM;
|
} else if (not gyrEnabled and fusedRateSplitValid) {
|
||||||
} else if (gyrEnabled and dampingEnabled and satRotRateValid and not sunDirValid) {
|
return acs::SafeModeStrategy::SAFECTRL_SUSMGM;
|
||||||
return acs::SafeModeStrategy::SAFECTRL_ECLIPSE_DAMPING_GYR;
|
} else {
|
||||||
} else if (not gyrEnabled and dampingEnabled and satRotRateValid and fusedRateTotalValid and
|
return acs::SafeModeStrategy::SAFECTRL_NO_SENSORS_FOR_CONTROL;
|
||||||
not sunDirValid) {
|
}
|
||||||
return acs::SafeModeStrategy::SAFECTRL_ECLIPSE_DAMPING_SUSMGM;
|
} else if (not sunDirValid) {
|
||||||
} else if (not dampingEnabled and satRotRateValid and not sunDirValid) {
|
if (gyrEnabled and dampingEnabled and satRotRateValid) {
|
||||||
return acs::SafeModeStrategy::SAFECTRL_ECLIPSE_IDELING;
|
return acs::SafeModeStrategy::SAFECTRL_ECLIPSE_DAMPING_GYR;
|
||||||
|
} else if (not gyrEnabled and dampingEnabled and satRotRateValid and fusedRateTotalValid) {
|
||||||
|
return acs::SafeModeStrategy::SAFECTRL_ECLIPSE_DAMPING_SUSMGM;
|
||||||
|
} else if (not dampingEnabled and satRotRateValid) {
|
||||||
|
return acs::SafeModeStrategy::SAFECTRL_ECLIPSE_IDELING;
|
||||||
|
} else {
|
||||||
|
return acs::SafeModeStrategy::SAFECTRL_NO_SENSORS_FOR_CONTROL;
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
return acs::SafeModeStrategy::SAFECTRL_NO_SENSORS_FOR_CONTROL;
|
return acs::SafeModeStrategy::SAFECTRL_NO_SENSORS_FOR_CONTROL;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user