Copter: revert prev changes to battery failsafe

The battery failsafe should remain independent of any throttle failsafe
behaviour settings
This commit is contained in:
Randy Mackay 2013-06-27 10:30:46 -10:00
parent 917edcab11
commit 917ae883a0
1 changed files with 1 additions and 4 deletions

View File

@ -86,10 +86,7 @@ static void low_battery_event(void)
}
break;
case AUTO:
if(g.failsafe_throttle == FS_THR_ENABLED_ALWAYS_LAND) {
// if failsafe_throttle is 3 (i.e. FS_THR_ENABLED_ALWAYS_LAND) land immediately
set_mode(LAND);
}else if(ap.home_is_set == true && g_gps->status() == GPS::GPS_OK_FIX_3D && home_distance > wp_nav.get_waypoint_radius()) {
if(ap.home_is_set == true && g_gps->status() == GPS::GPS_OK_FIX_3D && home_distance > wp_nav.get_waypoint_radius()) {
set_mode(RTL);
}else{
// We have no GPS or are very close to home so we will land