Copter: fix RTL alt when no using Rally points

This commit is contained in:
Randy Mackay 2015-04-28 17:11:37 +09:00
parent 0545185218
commit 64629914a4

View File

@ -118,7 +118,7 @@ static void rtl_return_start()
Vector3f destination = pv_location_to_vector(rally_point);
#else
Vector3f destination = pv_location_to_vector(ahrs.get_home());
destination.z = get_RTL_alt();
destination.z = pv_alt_above_origin(get_RTL_alt());
#endif
wp_nav.set_wp_destination(destination);