Skip to content

Commit

Permalink
Sub: update status to include all failsafes
Browse files Browse the repository at this point in the history
  • Loading branch information
ES-Alexander authored and Williangalvani committed Jun 28, 2024
1 parent 84adf69 commit b0d89c6
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion ArduSub/Sub.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b0d89c6

Please sign in to comment.