From 7dc9f418a5401692f8614cf616027e649e0a24c5 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Thu, 11 May 2023 11:04:15 +1000 Subject: [PATCH] AP_Arming: added BLACKBOX arming method --- libraries/AP_Arming/AP_Arming.cpp | 1 + libraries/AP_Arming/AP_Arming.h | 1 + 2 files changed, 2 insertions(+) diff --git a/libraries/AP_Arming/AP_Arming.cpp b/libraries/AP_Arming/AP_Arming.cpp index d1c42eeb34..307085fb7b 100644 --- a/libraries/AP_Arming/AP_Arming.cpp +++ b/libraries/AP_Arming/AP_Arming.cpp @@ -1796,6 +1796,7 @@ void AP_Arming::check_forced_logging(const AP_Arming::Method method) case Method::GCS_FAILSAFE_HOLDFAILED: case Method::PILOT_INPUT_FAILSAFE: case Method::DEADRECKON_FAILSAFE: + case Method::BLACKBOX: // keep logging for longer if disarmed for a bad reason AP::logger().set_long_log_persist(true); return; diff --git a/libraries/AP_Arming/AP_Arming.h b/libraries/AP_Arming/AP_Arming.h index 8eba06bd2d..b5d3c76521 100644 --- a/libraries/AP_Arming/AP_Arming.h +++ b/libraries/AP_Arming/AP_Arming.h @@ -75,6 +75,7 @@ public: TOYMODELANDFORCE = 31, // only disarm uses this... LANDING = 32, // only disarm uses this... DEADRECKON_FAILSAFE = 33, // only disarm uses this... + BLACKBOX = 34, UNKNOWN = 100, };