-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDCS.F-5E-3.hif.lua
More file actions
16 lines (16 loc) · 1.24 KB
/
DCS.F-5E-3.hif.lua
File metadata and controls
16 lines (16 loc) · 1.24 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--[[
Exports.Lua from Helios DCS F-5E-3 Tiger II
"Version": "1.6.6160.0000",
"Commit": "772298f0e4db5996d7d06a70cd22cfe3042b894a",
]]
function driver.processHighImportance(mainPanelDevice)
-- Send Altimeter Values
helios.send(2051, string.format("%0.4f;%0.4f;%0.4f", mainPanelDevice:get_argument_value(11), mainPanelDevice:get_argument_value(520), mainPanelDevice:get_argument_value(521))) -- Altitude
helios.send(2059, string.format("%0.2f;%0.2f;%0.2f;%0.3f", mainPanelDevice:get_argument_value(56), mainPanelDevice:get_argument_value(57), mainPanelDevice:get_argument_value(58), mainPanelDevice:get_argument_value(59))) -- QNH pressure
helios.send(2029, string.format("%0.4f;%0.4f;%0.4f", mainPanelDevice:get_argument_value(268), mainPanelDevice:get_argument_value(269), mainPanelDevice:get_argument_value(270))) -- HSI Miles
helios.send(2030, string.format("%0.4f;%0.4f", mainPanelDevice:get_argument_value(276), mainPanelDevice:get_argument_value(277))) -- HSI Course
-- Send ADI Ball Values
helios.send(2060, string.format("%0.4f;0.0;%0.4f", mainPanelDevice:get_argument_value(81), mainPanelDevice:get_argument_value(30)))
end
function driver.processLowImportance(mainPanelDevice)
end