From 64629914a43929dadf2353ffe7ebca9400cddf87 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Tue, 28 Apr 2015 17:11:37 +0900 Subject: [PATCH] Copter: fix RTL alt when no using Rally points --- ArduCopter/control_rtl.pde | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/control_rtl.pde b/ArduCopter/control_rtl.pde index 1b735b7a80..258f7e70e3 100644 --- a/ArduCopter/control_rtl.pde +++ b/ArduCopter/control_rtl.pde @@ -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);