From 073cc2bcb18cc12469611a8a7a2df4f66fade439 Mon Sep 17 00:00:00 2001 From: Bailey Date: Fri, 8 Oct 2021 12:42:49 +0900 Subject: [PATCH] added speedbrakes detection --- Scripts/DCS-ExportScript/ExportsModules/A-10A.lua | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Scripts/DCS-ExportScript/ExportsModules/A-10A.lua b/Scripts/DCS-ExportScript/ExportsModules/A-10A.lua index bdb06cb..270d7e8 100644 --- a/Scripts/DCS-ExportScript/ExportsModules/A-10A.lua +++ b/Scripts/DCS-ExportScript/ExportsModules/A-10A.lua @@ -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