From 6a1d09959b17e193d2c8451916cc6d588fdec96c Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sat, 30 Mar 2024 08:57:26 +1100 Subject: [PATCH] AP_Arming: added arm_force() for scripting --- libraries/AP_Arming/AP_Arming.h | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/AP_Arming/AP_Arming.h b/libraries/AP_Arming/AP_Arming.h index be59921be1..69e693835b 100644 --- a/libraries/AP_Arming/AP_Arming.h +++ b/libraries/AP_Arming/AP_Arming.h @@ -96,6 +96,7 @@ public: // these functions should not be used by Copter which holds the armed state in the motors library Required arming_required() const; virtual bool arm(AP_Arming::Method method, bool do_arming_checks=true); + virtual bool arm_force(AP_Arming::Method method) { return arm(method, false); } virtual bool disarm(AP_Arming::Method method, bool do_disarm_checks=true); bool is_armed() const; bool is_armed_and_safety_off() const;