mirror of https://github.com/ArduPilot/ardupilot
AP_Arming: added arm_force() for scripting
This commit is contained in:
parent
6fd1f3881d
commit
6a1d09959b
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue