mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-03 06:28:27 -04:00
AP_Scripting: fixed example script
This commit is contained in:
parent
eb492bd0aa
commit
77877584f8
@ -48,11 +48,9 @@ if value then
|
|||||||
else
|
else
|
||||||
error('LUA: get MIN_GNDSPD_CM failed')
|
error('LUA: get MIN_GNDSPD_CM failed')
|
||||||
end
|
end
|
||||||
value = param:get('LIM_ROLL_CD')
|
max_bank_angle = param:get('LIM_ROLL_DEG')
|
||||||
if value then
|
if not max_bank_angle then
|
||||||
max_bank_angle = value / 100
|
error('LUA: get LIM_ROLL_DEG failed')
|
||||||
else
|
|
||||||
error('LUA: get LIM_ROLL_CD failed')
|
|
||||||
end
|
end
|
||||||
|
|
||||||
-- https://en.wikipedia.org/wiki/Standard_rate_turn#Radius_of_turn_formula
|
-- https://en.wikipedia.org/wiki/Standard_rate_turn#Radius_of_turn_formula
|
||||||
|
Loading…
Reference in New Issue
Block a user