AP_Arming: added arm_force() for scripting

This commit is contained in:
Andrew Tridgell 2024-03-30 08:57:26 +11:00
parent 6fd1f3881d
commit 6a1d09959b
1 changed files with 1 additions and 0 deletions

View File

@ -96,6 +96,7 @@ public:
// these functions should not be used by Copter which holds the armed state in the motors library // these functions should not be used by Copter which holds the armed state in the motors library
Required arming_required() const; Required arming_required() const;
virtual bool arm(AP_Arming::Method method, bool do_arming_checks=true); 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); virtual bool disarm(AP_Arming::Method method, bool do_disarm_checks=true);
bool is_armed() const; bool is_armed() const;
bool is_armed_and_safety_off() const; bool is_armed_and_safety_off() const;