added speedbrakes detection

This commit is contained in:
Bailey 2021-10-08 12:42:49 +09:00
parent 5e16686238
commit 073cc2bcb1

View File

@ -781,6 +781,8 @@ function ExportScript.AF.MechanicalDevicesIndicator(FunctionTyp)
ExportScript.Tools.SendData(502, (lMechInfo.gear.value > 0.95 and 1 or 0) ) -- left gear
ExportScript.Tools.SendData(503, (lMechInfo.gear.value == 1 and 1 or 0) ) -- right gear
ExportScript.Tools.SendData(510, (lMechInfo.speedbrakes.value > 0.1 and 1 or 0) ) -- speedbreakes on > 0.1 (0 - 1)
local lFlapsValue = lMechInfo.flaps.value
lFlapsValue = lFlapsValue / 1.6
lFlapsValue = (lFlapsValue > 1.0 and 1.0 or lFlapsValue) -- the result is limited to 1.0