mirror of https://github.com/ArduPilot/ardupilot
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_YAW_RATE = Parameter('ACRO_YAW_RATE')
|
||||
ARSPD_FBW_MIN = Parameter("ARSPD_FBW_MIN")
|
||||
AIRSPEED_MIN = Parameter("AIRSPEED_MIN")
|
||||
SCALING_SPEED = Parameter("SCALING_SPEED")
|
||||
SYSID_THISMAV = Parameter("SYSID_THISMAV")
|
||||
|
||||
|
@ -2465,7 +2465,7 @@ function do_path()
|
|||
end
|
||||
|
||||
-- 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
|
||||
|
|
|
@ -36,11 +36,11 @@ if value then
|
|||
else
|
||||
error('LUA: get AIRSPEED_CRUISE failed')
|
||||
end
|
||||
value = param:get('ARSPD_FBW_MIN')
|
||||
value = param:get('AIRSPEED_MIN')
|
||||
if value then
|
||||
min_air_speed = value
|
||||
else
|
||||
error('LUA: get ARSPD_FBW_MIN failed')
|
||||
error('LUA: get AIRSPEED_MIN failed')
|
||||
end
|
||||
value = param:get('MIN_GNDSPD_CM')
|
||||
if value then
|
||||
|
|
Loading…
Reference in New Issue