-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathDCS.A-4E-C.hif.lua
More file actions
21 lines (15 loc) · 1.07 KB
/
DCS.A-4E-C.hif.lua
File metadata and controls
21 lines (15 loc) · 1.07 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
function driver.processHighImportance(mainPanelDevice)
-- called at configured update rate
helios.send(2001, string.format("%0.1f", mainPanelDevice:get_argument_value(105))) -- MANUAL_FUEL_CONTROL_WARN
helios.send(2002, string.format("%0.4f", mainPanelDevice:get_argument_value(870))) -- PITCH_TRIM_GAUGE
helios.send(2003, string.format("%0.4f", mainPanelDevice:get_argument_value(871))) -- YAW_TRIM_GAUGE
helios.send(2004, string.format("%0.4f", mainPanelDevice:get_argument_value(80))) -- Throttle Position Lock
helios.send(2005, string.format("%0.4f", mainPanelDevice:get_argument_value(508))) -- Compass SYNC
helios.send(2006, string.format("%0.2f", mainPanelDevice:get_argument_value(901))) -- TACAN Channel MAJOR Disp
helios.send(2007, string.format("%0.1f", mainPanelDevice:get_argument_value(902))) -- TACAN Channel Minor Disp
end
--[[
function driver.processLowImportance(mainPanelDevice) --luacheck: no unused args
-- same things as processHighImportance can be done here, called a few times per second at most
end
]]