Sub: update status to include all failsafes

This commit is contained in:
ES-Alexander 2024-06-28 09:55:03 +10:00 committed by Willian Galvani
parent 84adf69ac9
commit b0d89c6862
1 changed files with 12 additions and 1 deletions

View File

@ -232,7 +232,18 @@ private:
} failsafe;
bool any_failsafe_triggered() const {
return (failsafe.pilot_input || battery.has_failsafed() || failsafe.gcs || failsafe.ekf || failsafe.terrain);
return (
failsafe.pilot_input
|| battery.has_failsafed()
|| failsafe.gcs
|| failsafe.ekf
|| failsafe.terrain
|| failsafe.leak
|| failsafe.internal_pressure
|| failsafe.internal_temperature
|| failsafe.crash
|| failsafe.sensor_health
);
}
// sensor health for logging