feat(F-5E): add human readable pitch trim export

This commit is contained in:
ExoLight 2024-01-23 16:40:33 +01:00
parent 6285e8d35e
commit 47a6142e10

View File

@ -528,6 +528,7 @@ function ExportScript.ProcessIkarusDCSConfigLowImportance(mainPanelDevice)
ExportScript.UhfRadioKnobs(mainPanelDevice) -- AN/ARC-164 UHF
ExportScript.RWRControlPanel(mainPanelDevice)
ExportScript.flapPositionIndicator(mainPanelDevice)
ExportScript.pitchTrimPosition(mainPanelDevice)
if LoIsObjectExportAllowed() then -- returns true if world objects data is available
if LoIsOwnshipExportAllowed() then -- returns true if ownship data is available
@ -1405,6 +1406,12 @@ function ExportScript.flapPositionIndicator(mainPanelDevice)
ExportScript.Tools.SendData(4011, string.len(indicatorText)) -- If != 0, flaps in transition
end
function ExportScript.pitchTrimPosition(mainPanelDevice)
local trimValue = mainPanelDevice:get_argument_value(52)
trimValue = math.floor(trimValue * 100) / 10
ExportScript.Tools.SendData(4012, string.format("%+.1f", trimValue))
end
----------------------
-- Helper Functions --
----------------------