From 0029457dc6df1f134f18edd8a47cd59db1465637 Mon Sep 17 00:00:00 2001 From: Pierre Kancir Date: Thu, 21 Sep 2023 16:23:01 +0200 Subject: [PATCH] Rover: add missing Terminate action for Failsafe --- Rover/failsafe.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Rover/failsafe.cpp b/Rover/failsafe.cpp index 17af819b5d..da877c2bb7 100644 --- a/Rover/failsafe.cpp +++ b/Rover/failsafe.cpp @@ -101,6 +101,9 @@ void Rover::failsafe_trigger(uint8_t failsafe_type, const char* type_str, bool o set_mode(mode_hold, ModeReason::FAILSAFE); } break; + case FailsafeAction::Terminate: + arming.disarm(AP_Arming::Method::FAILSAFE_ACTION_TERMINATE); + break; } } }