From 9648323d0aef0a969d5ada361eda9496f0d8d7a5 Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Wed, 16 Mar 2022 20:08:08 +1100 Subject: [PATCH] AP_Arming: display a warning if arming checks disabled when arming --- libraries/AP_Arming/AP_Arming.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/libraries/AP_Arming/AP_Arming.cpp b/libraries/AP_Arming/AP_Arming.cpp index f330d8af9c..b8941334d9 100644 --- a/libraries/AP_Arming/AP_Arming.cpp +++ b/libraries/AP_Arming/AP_Arming.cpp @@ -1364,6 +1364,10 @@ bool AP_Arming::arm(AP_Arming::Method method, const bool do_arming_checks) armed = false; } + if (armed && do_arming_checks && checks_to_perform == 0) { + gcs().send_text(MAV_SEVERITY_WARNING, "Warning: Arming Checks Disabled"); + } + return armed; }