mirror of https://github.com/ArduPilot/ardupilot
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
|
||||
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++;
|
||||
|
||||
if(auto_disarming_counter >= AUTO_DISARMING_DELAY) {
|
||||
|
|
Loading…
Reference in New Issue