Skip to content
Snippets Groups Projects
Commit a98fb174 authored by Randy Mackay's avatar Randy Mackay
Browse files

Copter: batt failsafe triggers RTL from AUTO

parent fd602851
No related branches found
Tags ArduCopter-3.1.0-rc6
No related merge requests found
......@@ -110,6 +110,16 @@ static void failsafe_battery_event(void)
}
}
break;
case AUTO:
// set mode to RTL or LAND
if (home_distance > wp_nav.get_waypoint_radius()) {
if (!set_mode(RTL)) {
set_mode(LAND);
}
}else{
set_mode(LAND);
}
break;
default:
// set mode to RTL or LAND
if (g.failsafe_battery_enabled == FS_BATT_RTL && home_distance > wp_nav.get_waypoint_radius()) {
......
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