Copter: get_RTL_alt returns alt above home

This commit is contained in:
Jonathan Challinger 2015-04-30 00:30:08 -07:00 committed by Randy Mackay
parent fb7e75594f
commit fb96335b46

View File

@ -394,7 +394,7 @@ static float get_RTL_alt()
#if AC_FENCE == ENABLED
// ensure not above fence altitude if alt fence is enabled
if ((fence.get_enabled_fences() & AC_FENCE_TYPE_ALT_MAX) != 0) {
rtl_alt = min(rtl_alt, pv_alt_above_origin(fence.get_safe_alt()*100.0f));
rtl_alt = min(rtl_alt, fence.get_safe_alt()*100.0f);
}
#endif