mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 18:38:28 -04:00
Copter: allow auto-disarm in autotune mode
This commit is contained in:
parent
ff1f54b390
commit
cd08ec5a5f
@ -103,7 +103,7 @@ static void auto_disarm_check()
|
|||||||
}
|
}
|
||||||
|
|
||||||
// allow auto disarm in manual flight modes or Loiter/AltHold if we're landed
|
// allow auto disarm in manual flight modes or Loiter/AltHold if we're landed
|
||||||
if(manual_flight_mode(control_mode) || (ap.land_complete && (control_mode == LOITER || control_mode == ALT_HOLD || control_mode == HYBRID))) {
|
if(manual_flight_mode(control_mode) || (ap.land_complete && (control_mode == LOITER || control_mode == ALT_HOLD || control_mode == HYBRID || control_mode == AUTOTUNE))) {
|
||||||
auto_disarming_counter++;
|
auto_disarming_counter++;
|
||||||
|
|
||||||
if(auto_disarming_counter >= AUTO_DISARMING_DELAY) {
|
if(auto_disarming_counter >= AUTO_DISARMING_DELAY) {
|
||||||
|
Loading…
Reference in New Issue
Block a user