mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-08 17:08:28 -04:00
AP_Scripting: convert ARSPD_FBW_MIN/MAX to AIRSPEED_MIN and AIRSPEED_MAX
This commit is contained in:
parent
fdf286f0b0
commit
8fd0bc6f6a
@ -276,7 +276,7 @@ end
|
|||||||
|
|
||||||
ACRO_ROLL_RATE = Parameter("ACRO_ROLL_RATE")
|
ACRO_ROLL_RATE = Parameter("ACRO_ROLL_RATE")
|
||||||
ACRO_YAW_RATE = Parameter('ACRO_YAW_RATE')
|
ACRO_YAW_RATE = Parameter('ACRO_YAW_RATE')
|
||||||
ARSPD_FBW_MIN = Parameter("ARSPD_FBW_MIN")
|
AIRSPEED_MIN = Parameter("AIRSPEED_MIN")
|
||||||
SCALING_SPEED = Parameter("SCALING_SPEED")
|
SCALING_SPEED = Parameter("SCALING_SPEED")
|
||||||
SYSID_THISMAV = Parameter("SYSID_THISMAV")
|
SYSID_THISMAV = Parameter("SYSID_THISMAV")
|
||||||
|
|
||||||
@ -2465,7 +2465,7 @@ function do_path()
|
|||||||
end
|
end
|
||||||
|
|
||||||
-- airspeed, assume we don't go below min
|
-- airspeed, assume we don't go below min
|
||||||
local airspeed_constrained = math.max(ARSPD_FBW_MIN:get(), ahrs_airspeed)
|
local airspeed_constrained = math.max(AIRSPEED_MIN:get(), ahrs_airspeed)
|
||||||
|
|
||||||
--[[
|
--[[
|
||||||
calculate positions and angles at previous, current and next time steps
|
calculate positions and angles at previous, current and next time steps
|
||||||
|
@ -36,11 +36,11 @@ if value then
|
|||||||
else
|
else
|
||||||
error('LUA: get AIRSPEED_CRUISE failed')
|
error('LUA: get AIRSPEED_CRUISE failed')
|
||||||
end
|
end
|
||||||
value = param:get('ARSPD_FBW_MIN')
|
value = param:get('AIRSPEED_MIN')
|
||||||
if value then
|
if value then
|
||||||
min_air_speed = value
|
min_air_speed = value
|
||||||
else
|
else
|
||||||
error('LUA: get ARSPD_FBW_MIN failed')
|
error('LUA: get AIRSPEED_MIN failed')
|
||||||
end
|
end
|
||||||
value = param:get('MIN_GNDSPD_CM')
|
value = param:get('MIN_GNDSPD_CM')
|
||||||
if value then
|
if value then
|
||||||
|
Loading…
Reference in New Issue
Block a user