diff --git a/libraries/AP_Scripting/applets/plane_ship_landing.lua b/libraries/AP_Scripting/applets/plane_ship_landing.lua index 0940b17d66..07975cb4c9 100644 --- a/libraries/AP_Scripting/applets/plane_ship_landing.lua +++ b/libraries/AP_Scripting/applets/plane_ship_landing.lua @@ -65,7 +65,7 @@ SHIP_AUTO_OFS = bind_add_param('AUTO_OFS', 3, 0) -- other parameters RCMAP_THROTTLE = bind_param("RCMAP_THROTTLE") -ALT_HOLD_RTL = bind_param("ALT_HOLD_RTL") +RTL_ALTITUDE = bind_param("RTL_ALTITUDE") Q_RTL_ALT = bind_param("Q_RTL_ALT") AIRSPEED_CRUISE = bind_param("AIRSPEED_CRUISE") TECS_LAND_ARSPD = bind_param("TECS_LAND_ARSPD") @@ -347,7 +347,7 @@ end function get_target_alt() local base_alt = target_pos:alt() * 0.01 if landing_stage == STAGE_HOLDOFF then - return base_alt + ALT_HOLD_RTL:get() * 0.01 + return base_alt + RTL_ALTITUDE:get() end return base_alt + Q_RTL_ALT:get() end