Skip to content
Snippets Groups Projects
Commit 7ea5e69f authored by Jonathan Challinger's avatar Jonathan Challinger Committed by Randy Mackay
Browse files

Copter: auto-disarm if land complete regardless of mode

parent 9fc62b5d
No related branches found
No related tags found
No related merge requests found
......@@ -109,9 +109,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 == ALT_HOLD || control_mode == LOITER || control_mode == OF_LOITER ||
control_mode == DRIFT || control_mode == SPORT || control_mode == AUTOTUNE ||
control_mode == POSHOLD))) {
if (manual_flight_mode(control_mode) || ap.land_complete) {
auto_disarming_counter++;
if(auto_disarming_counter >= AUTO_DISARMING_DELAY) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment