Skip to content

Commit

Permalink
Copter: don't RTL due to battery failsafe if currently LANDing
Browse files Browse the repository at this point in the history
  • Loading branch information
jschall committed Oct 12, 2015
1 parent ab83727 commit 12f9ff5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ArduCopter/events.pde
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ static void failsafe_battery_event(void)
if (should_disarm_on_failsafe()) {
init_disarm_motors();
} else {
if (control_mode == AUTO || g.failsafe_battery_enabled == FS_BATT_RTL) {
if (control_mode != LAND && (control_mode == AUTO || g.failsafe_battery_enabled == FS_BATT_RTL)) {
set_mode_RTL_or_land_with_pause();
}
}
Expand Down

0 comments on commit 12f9ff5

Please sign in to comment.