mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
Rover: add do_disarm_checks boolean to disarm call
this creates symmetry between arming and disarming, at least as far as the top-level arm() and disarm() calls are concerned.
This commit is contained in:
parent
f6f19eeeb2
commit
5001978704
@ -134,9 +134,9 @@ bool AP_Arming_Rover::arm(AP_Arming::Method method, const bool do_arming_checks)
|
|||||||
/*
|
/*
|
||||||
disarm motors
|
disarm motors
|
||||||
*/
|
*/
|
||||||
bool AP_Arming_Rover::disarm(const AP_Arming::Method method)
|
bool AP_Arming_Rover::disarm(const AP_Arming::Method method, bool do_disarm_checks)
|
||||||
{
|
{
|
||||||
if (!AP_Arming::disarm(method)) {
|
if (!AP_Arming::disarm(method, do_disarm_checks)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
if (rover.control_mode != &rover.mode_auto) {
|
if (rover.control_mode != &rover.mode_auto) {
|
||||||
|
@ -21,7 +21,7 @@ public:
|
|||||||
bool rc_calibration_checks(const bool display_failure) override;
|
bool rc_calibration_checks(const bool display_failure) override;
|
||||||
bool gps_checks(bool display_failure) override;
|
bool gps_checks(bool display_failure) override;
|
||||||
|
|
||||||
bool disarm(AP_Arming::Method method) override;
|
bool disarm(AP_Arming::Method method, bool do_disarm_checks=true) override;
|
||||||
bool arm(AP_Arming::Method method, bool do_arming_checks=true) override;
|
bool arm(AP_Arming::Method method, bool do_arming_checks=true) override;
|
||||||
|
|
||||||
void update_soft_armed();
|
void update_soft_armed();
|
||||||
|
Loading…
Reference in New Issue
Block a user