From 6698660fd6696f8eff9223a78519c4de48e573a1 Mon Sep 17 00:00:00 2001 From: Tatsuya Yamaguchi Date: Sun, 4 Feb 2018 15:53:50 -0800 Subject: [PATCH] Copter: fix Battery FailSafe action with auto mode --- ArduCopter/events.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/events.cpp b/ArduCopter/events.cpp index d743312d04..aaadb2811d 100644 --- a/ArduCopter/events.cpp +++ b/ArduCopter/events.cpp @@ -62,7 +62,7 @@ void Copter::failsafe_battery_event(void) set_mode_SmartRTL_or_RTL(MODE_REASON_BATTERY_FAILSAFE); } else if (g.failsafe_battery_enabled == FS_BATT_SMARTRTL_OR_LAND) { set_mode_SmartRTL_or_land_with_pause(MODE_REASON_BATTERY_FAILSAFE); - } else if (g.failsafe_battery_enabled == FS_BATT_RTL || control_mode == AUTO) { + } else if (g.failsafe_battery_enabled == FS_BATT_RTL) { set_mode_RTL_or_land_with_pause(MODE_REASON_BATTERY_FAILSAFE); } else { // g.failsafe_battery_enabled == FS_BATT_LAND set_mode_land_with_pause(MODE_REASON_BATTERY_FAILSAFE);