From 9e0cd7a5cf5bda386d00a80052f36d6069d24a6d Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Mon, 4 Jan 2016 14:55:00 +0900 Subject: [PATCH] Copter: allow arming in Drift and Sport modes --- ArduCopter/flight_mode.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/flight_mode.cpp b/ArduCopter/flight_mode.cpp index 7a8637fa43f..ad91d1c0533 100644 --- a/ArduCopter/flight_mode.cpp +++ b/ArduCopter/flight_mode.cpp @@ -295,7 +295,7 @@ bool Copter::mode_has_manual_throttle(uint8_t mode) { // mode_allows_arming - returns true if vehicle can be armed in the specified mode // arming_from_gcs should be set to true if the arming request comes from the ground station bool Copter::mode_allows_arming(uint8_t mode, bool arming_from_gcs) { - if (mode_has_manual_throttle(mode) || mode == LOITER || mode == ALT_HOLD || mode == POSHOLD || (arming_from_gcs && mode == GUIDED)) { + if (mode_has_manual_throttle(mode) || mode == LOITER || mode == ALT_HOLD || mode == POSHOLD || mode == DRIFT || mode == SPORT || (arming_from_gcs && mode == GUIDED)) { return true; } return false;