AP_Arming: added BLACKBOX arming method

This commit is contained in:
Andrew Tridgell 2023-05-11 11:04:15 +10:00
parent fd2d976472
commit 7dc9f418a5
2 changed files with 2 additions and 0 deletions

View File

@ -1796,6 +1796,7 @@ void AP_Arming::check_forced_logging(const AP_Arming::Method method)
case Method::GCS_FAILSAFE_HOLDFAILED: case Method::GCS_FAILSAFE_HOLDFAILED:
case Method::PILOT_INPUT_FAILSAFE: case Method::PILOT_INPUT_FAILSAFE:
case Method::DEADRECKON_FAILSAFE: case Method::DEADRECKON_FAILSAFE:
case Method::BLACKBOX:
// keep logging for longer if disarmed for a bad reason // keep logging for longer if disarmed for a bad reason
AP::logger().set_long_log_persist(true); AP::logger().set_long_log_persist(true);
return; return;

View File

@ -75,6 +75,7 @@ public:
TOYMODELANDFORCE = 31, // only disarm uses this... TOYMODELANDFORCE = 31, // only disarm uses this...
LANDING = 32, // only disarm uses this... LANDING = 32, // only disarm uses this...
DEADRECKON_FAILSAFE = 33, // only disarm uses this... DEADRECKON_FAILSAFE = 33, // only disarm uses this...
BLACKBOX = 34,
UNKNOWN = 100, UNKNOWN = 100,
}; };