added event in case of safe mode controller failure
All checks were successful
EIVE/eive-obsw/pipeline/head This commit looks good

This commit is contained in:
2023-03-13 16:33:48 +01:00
parent 4d74c8ec43
commit f358719778
3 changed files with 13 additions and 1 deletions

View File

@ -173,7 +173,14 @@ void AcsController::performSafe() {
sunTargetDir, satRateSafe, &errAng, magMomMtq);
}
if (result == returnvalue::FAILED) {
// ToDo: this should never ever happen or we are dead. prob add an event at least
if (not doomFlag) {
triggerEvent(acs::SAFE_MODE_CONTROLLER_FAILURE);
doomFlag = true;
}
doomCounter++;
if (doomCounter > 5) {
doomFlag = false;
}
}
actuatorCmd.cmdDipolMtq(magMomMtq, cmdDipolMtqs,