mirror of
https://github.com/weyne85/DCS-ExportScripts.git
synced 2025-10-29 16:58:18 +00:00
added speedbrakes detection
This commit is contained in:
parent
5e16686238
commit
073cc2bcb1
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user