Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ArduPlane/quadplane.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ const AP_Param::GroupInfo QuadPlane::var_info[] = {

// @Param: LAND_FINAL_ALT
// @DisplayName: Land final altitude
// @Description: The altitude at which we should switch to Q_LAND_SPEED descent rate
// @Description: The altitude at which we should switch to Q_LAND_FINAL_SPD descent rate
// @Units: m
// @Range: 0.5 50
// @Increment: 0.1
Expand Down
4 changes: 2 additions & 2 deletions libraries/AP_Scripting/applets/plane_package_place.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ local PKG_RELEASE_FUNC = bind_add_param('RELEASE_FUNC', 2, 94)
local PKG_RELEASE_HGT = bind_add_param('RELEASE_HGT', 3, 10)
local PKG_RELEASE_HOLD = bind_add_param('RELEASE_HOLD', 4, 1)

local Q_LAND_SPEED = Parameter("Q_LAND_SPEED")
local Q_LAND_FINAL_SPD = Parameter("Q_LAND_FINAL_SPD")
local Q_LAND_FINAL_ALT = Parameter("Q_LAND_FINAL_ALT")

local MAV_SEVERITY_INFO = 6
Expand Down Expand Up @@ -116,7 +116,7 @@ function update()
-- slow down when within Q_LAND_FINAL_ALT of target
local remaining_m = dist_m - PKG_RELEASE_HGT:get()
if remaining_m > 0 and remaining_m < Q_LAND_FINAL_ALT:get() then
vehicle:set_land_descent_rate(Q_LAND_SPEED:get()*0.01)
vehicle:set_land_descent_rate(Q_LAND_FINAL_SPD:get())
end

if remaining_m <= 0 then
Expand Down
Loading