From b0d89c68626432d7843e561341550b517c34ca28 Mon Sep 17 00:00:00 2001 From: ES-Alexander Date: Fri, 28 Jun 2024 09:55:03 +1000 Subject: [PATCH] Sub: update status to include all failsafes --- ArduSub/Sub.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/ArduSub/Sub.h b/ArduSub/Sub.h index 6aba8c71861ef..1877d4ee55870 100644 --- a/ArduSub/Sub.h +++ b/ArduSub/Sub.h @@ -232,7 +232,18 @@ class Sub : public AP_Vehicle { } 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