Always trigger Detumble #846

Merged
meggert merged 10 commits from detumble-fix into main 2024-01-29 17:02:30 +01:00
Showing only changes of commit 3441365c65 - Show all commits

View File

@ -195,6 +195,8 @@ void AcsController::performAttitudeControl() {
mekfInvalidFlag = false;
}
handleDetumbling();
switch (mode) {
case acs::SAFE:
switch (submode) {
@ -582,6 +584,7 @@ void AcsController::handleDetumbling() {
// Triggers detumble mode transition in subsystem
triggerEvent(acs::SAFE_RATE_VIOLATION);
startTransition(mode, acs::SafeSubmode::DETUMBLE);
detumbleState = DetumbleState::IN_DETUMBLE;
break;
case DetumbleState::IN_DETUMBLE:
if (fusedRotRateData.rotRateTotal.isValid() and
Review

GYR and MEKF are not relevant anymore? (I just compared to the deleted code above..)

GYR and MEKF are not relevant anymore? (I just compared to the deleted code above..)
Review

for now they are irrelevant. the MEKF might come back someday

for now they are irrelevant. the MEKF might come back someday
@ -601,7 +604,7 @@ void AcsController::handleDetumbling() {
}
break;
default:
sif::error << "AcsController: Invalid DetumbleState: " << detumbleState << std::endl;
sif::error << "AcsController: Invalid DetumbleState" << std::endl;
}
}