mirror of
https://github.com/weyne85/DCS-ExportScripts.git
synced 2025-10-29 16:58:18 +00:00
feat(F-5E): add human readable pitch trim export
This commit is contained in:
parent
6285e8d35e
commit
47a6142e10
@ -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 --
|
||||
----------------------
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user