mirror of
https://github.com/weyne85/DCS-ExportScripts.git
synced 2025-10-29 16:58:18 +00:00
feat(F-5E): improve flaps indicator code
This commit is contained in:
parent
9c62d73acc
commit
6285e8d35e
@ -1400,8 +1400,9 @@ function ExportScript.flapPositionIndicator(mainPanelDevice)
|
||||
}
|
||||
local currentPos = mainPanelDevice:get_argument_value(51)
|
||||
currentPos = math.floor(currentPos * 10) / 10 -- Cut off excess decimal digits
|
||||
local indicatorText = flapIndicatorPositions[currentPos] or "▄▀▄▀\n▄▀▄▀"
|
||||
local indicatorText = flapIndicatorPositions[currentPos] or ""
|
||||
ExportScript.Tools.SendData(4010, indicatorText)
|
||||
ExportScript.Tools.SendData(4011, string.len(indicatorText)) -- If != 0, flaps in transition
|
||||
end
|
||||
|
||||
----------------------
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user