From caf6bbc2e039cd24ef728a684c18aed783f95763 Mon Sep 17 00:00:00 2001 From: Randy Mackay Date: Thu, 28 Apr 2016 19:54:09 +0900 Subject: [PATCH] Copter: rename set_alt to set_alt_cm in control_rtl --- ArduCopter/control_rtl.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArduCopter/control_rtl.cpp b/ArduCopter/control_rtl.cpp index 6c8ed70c40..50a3880067 100644 --- a/ArduCopter/control_rtl.cpp +++ b/ArduCopter/control_rtl.cpp @@ -521,7 +521,7 @@ void Copter::rtl_compute_return_alt(const Location_Class &rtl_origin_point, Loca if (!rtl_path.terrain_used || !rtl_return_target.change_alt_frame(Location_Class::ALT_FRAME_ABOVE_TERRAIN)) { if (!rtl_return_target.change_alt_frame(Location_Class::ALT_FRAME_ABOVE_HOME)) { // this should never happen but just in case - rtl_return_target.set_alt(0, Location_Class::ALT_FRAME_ABOVE_HOME); + rtl_return_target.set_alt_cm(0, Location_Class::ALT_FRAME_ABOVE_HOME); } }