mirror of
https://github.com/s-d-a/DCS-ExportScripts.git
synced 2025-10-29 16:59:03 +00:00
Changes for the DCS Version 1.5.2
This is the last version for HT.
This commit is contained in:
parent
0924db9b57
commit
3e545e6c53
2
.gitignore
vendored
2
.gitignore
vendored
@ -39,3 +39,5 @@ luac.out
|
||||
*.x86_64
|
||||
*.hex
|
||||
|
||||
# swap file
|
||||
*.*~
|
||||
|
||||
@ -306,7 +306,7 @@ function ProcessGlassCockpitFCHighImportanceConfig()
|
||||
-- AOA
|
||||
--FC_US_AOA(16)
|
||||
--WriteToLog('lAoA 1: '..dump(lAoA))
|
||||
local lAoATmp = 0.7728 * math.deg(lAoA) + 12.22
|
||||
--local lAoATmp = 0.7728 * math.deg(lAoA) + 12.22
|
||||
--WriteToLog('lAoA 2: '..dump(lAoATmp))
|
||||
--[[
|
||||
y_min = 0.0 -- minimaler Ausgabewert
|
||||
@ -322,8 +322,44 @@ function ProcessGlassCockpitFCHighImportanceConfig()
|
||||
|
||||
y = 0.4200000000000000000000000000001 -- Ergebnis (m * x + n)
|
||||
]]
|
||||
lAoATmp = 0.03333333333333333333333333333333 * lAoATmp + 0.0000000000000000000000000000001
|
||||
SendData(16, string.format("%.4f;%d", lAoATmp, 0) )
|
||||
--lAoATmp = 0.03333333333333333333333333333333 * lAoATmp + 0.0000000000000000000000000000001
|
||||
--SendData(16, string.format("%.4f;%d", lAoATmp, 0) )
|
||||
|
||||
if lAoA > -2.7 then -- positive AOA
|
||||
--[[
|
||||
y_min = 0.333 -- minimaler Ausgabewert
|
||||
y_max = 1.0 -- maximaler Ausgabewert
|
||||
x_min = -2.7 -- minimaler Eingangswert
|
||||
x_max = 23.0 -- maximaler Eingangswert
|
||||
x = 10.6 -- aktueller Eingangswert
|
||||
|
||||
d_y = 0.667 -- Delta Ausgabewerte (y_max - y_min)
|
||||
d_x = 27.7 -- Delta Eingangswerte (x_max - x_min)
|
||||
m = 0.02407942238267148014440433212996 -- Steigung der linearen Funktion (d_y / d_x)
|
||||
n = 0,44617328519855595667870036101083 -- Schnittpunkt der Funktion mit y-Achse (y_max - m * x_max)
|
||||
|
||||
y = 0.615808 -- Ergebnis (m * x + n)
|
||||
]]
|
||||
lAoA = 0.02407942238267148014440433212996 * lAoA + 0.44617328519855595667870036101083
|
||||
SendData(16, string.format("%.4f;%d", lAoA, 0) )
|
||||
else
|
||||
--[[
|
||||
y_min = 0.0 -- minimaler Ausgabewert
|
||||
y_max = 0.333 -- maximaler Ausgabewert
|
||||
x_min = -2.7 -- minimaler Eingangswert
|
||||
x_max = -15.3 -- maximaler Eingangswert
|
||||
x = -3.6 -- aktueller Eingangswert
|
||||
|
||||
d_y = 0.333 -- Delta Ausgabewerte (y_max - y_min)
|
||||
d_x = -12.6 -- Delta Eingangswerte (x_max - x_min)
|
||||
m = -0.02642857142857142857142857142857 -- Steigung der linearen Funktion (d_y / d_x)
|
||||
n = -0.07135714285714285714285714285714 -- Schnittpunkt der Funktion mit y-Achse (y_max - m * x_max)
|
||||
|
||||
y = 0.0238 -- Ergebnis 0.333 - (m * x + n)
|
||||
]]
|
||||
lAoA = 0.333 - (-0.02642857142857142857142857142857 * lAoA + -0.07135714285714285714285714285714)
|
||||
SendData(16, string.format("%.4f;%d", lAoA, 0) )
|
||||
end
|
||||
|
||||
-- G-LOAD
|
||||
FC_US_GLOAD(17)
|
||||
|
||||
@ -1258,6 +1258,7 @@ function ProcessHARDWAREConfigLowImportance(mainPanelDevice)
|
||||
WriteToLog(ltmp2..' (metatable): '..dump(getmetatable(ltmp1)))
|
||||
end
|
||||
]]
|
||||
|
||||
end
|
||||
|
||||
-----------------------------
|
||||
@ -1884,4 +1885,4 @@ function genericRadio(key, value, hardware)
|
||||
WriteToLog("GetDevice("..lSetFrequency.DeviceID..") is no table or Radio is not on")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@ -17,10 +17,10 @@ gES_GlassCockpitConfigEveryFrameArguments =
|
||||
[8] = "%.4f", -- Altimeter_FinePtr {0.0, 1000.0} = {0.0, 1.0}
|
||||
[9] = "%.4f", -- Altimeter_CoarsePtr {0.0, 13000.0} = {0.0, 1.0}
|
||||
[10] = "%.4f", -- Altimeter_Pressure {712.56, 780.07} = {0.0, 1.0}
|
||||
--[11] = "%.4f", -- Pressure_Setter_Pinion {0.0, 1440.0} = {0.0, 1.0}
|
||||
[11] = "%.4f", -- Pressure_Setter_Pinion {0.0, 1440.0} = {0.0, 1.0}
|
||||
-- AN5730 remote compass
|
||||
[13] = "%.4f", -- CompassHeading {0.0, 1.0}
|
||||
--[12] = "%.4f", -- CommandedCourse {0.0, 1.0}
|
||||
[12] = "%.4f", -- CommandedCourse {0.0, 1.0}
|
||||
-- AFN2 blind landing system
|
||||
[14] = "%.4f", -- AFN2_Horizontal_Needle {-1.0, 1.0}
|
||||
[15] = "%.4f", -- AFN2_Vertical_Needle {0.0, 1.0}
|
||||
@ -50,14 +50,16 @@ gES_GlassCockpitConfigEveryFrameArguments =
|
||||
[43] = "%.4f", -- MG131_1_Klappanker {0.0, 60.0} = {0.0, 1.0}
|
||||
[44] = "%1d", -- LeftWing_MG151_Control_Lamp {0.0, 1.0}
|
||||
[45] = "%1d", -- RightWing_MG151_Control_Lamp {0.0, 1.0}
|
||||
--REVI_16B_Gunsight
|
||||
[46] = "%4.f", -- BodyState {0.0, 0.15,0.25, 1.0} = {0.0, 0.15,0.25, 1.0}
|
||||
[47] = "%4.f", -- SmokedScreen {0.0, 1.0}
|
||||
[48] = "%4.f", -- SightBrightness {0.0, 1.0}
|
||||
-- Landing Gear Light
|
||||
[56] = "%1d", -- LandingGearRedLight {0.0, 1.0}
|
||||
[57] = "%1d", -- LandingGearGreenLightLeft {0.0, 1.0}
|
||||
[58] = "%1d", -- LandingGearGreenLightRight {0.0, 1.0}
|
||||
-- Pitot_Heat_Lamp
|
||||
[135] = "%1d" -- Pitot_Heat_Lamp {0.0, 29.0} = {0.0, 1.0}
|
||||
-- Fuel_Reserve_Lamp
|
||||
--???[135] = "%1d" -- Fuel_Reserve_Lamp
|
||||
[135] = "%1d" -- Fuel_Reserve_Lamp {0.0, 29.0} = {0.0, 1.0}
|
||||
}
|
||||
gES_GlassCockpitConfigArguments =
|
||||
{
|
||||
@ -198,6 +200,8 @@ gES_GlassCockpitConfigArguments =
|
||||
[97] = "%.1d", -- Tail Wheel Lock {0, 1}
|
||||
-- Cockpit Open/Close Control
|
||||
[136] = "%.1d", -- Canopy (Open/Close) {0, 1}
|
||||
[137] = "%.1d", -- Canopy (Open/Close) H {0, 1}
|
||||
[138] = "%.1d", -- Canopy (Open/Close) S {0, 1}
|
||||
-- Cockpit Jettison Pull Handle
|
||||
[83] = "%.1d", -- Jettison Canopy {0, 1}
|
||||
-- Trim Wheel
|
||||
@ -208,14 +212,13 @@ gES_GlassCockpitConfigArguments =
|
||||
[144] = "%.1d", -- Retract Flaps {0, 1}
|
||||
-- Notwurf / Ordinance Dump
|
||||
[92] = "%.1d", -- Ordinance Emergency Release
|
||||
--[98] = "$.1d", -- Cockpit Left Vent {0, 1}
|
||||
-- Right Wall Controls
|
||||
-- RH Cockpit Vent
|
||||
--[99] = "%.1d", -- Cockpit Vent {0, 1}
|
||||
--[99] = "%.1d", -- Cockpit Right Vent {0, 1}
|
||||
-- Flare Gun Trigger
|
||||
[72] = "%.1d", -- Fire Flare Gun
|
||||
-- Engine Controls & Quadrant
|
||||
-- Ground Crew Signal -- TODO remove
|
||||
[145] = "%.1d", -- Signal Starter Crew {0, 1}
|
||||
-- Propellor Control Rocker
|
||||
[85] = "%.1f", -- Decrease RPM {1.0, -1.0}
|
||||
-- Radio Transmit Button
|
||||
|
||||
@ -307,7 +307,7 @@ function ProcessGlassCockpitFCHighImportanceConfig()
|
||||
-- AOA
|
||||
--FC_US_AOA(16)
|
||||
--WriteToLog('lAoA 1: '..dump(lAoA))
|
||||
local lAoATmp = math.deg(lAoA) + 10
|
||||
--local lAoATmp = math.deg(lAoA) + 10
|
||||
--WriteToLog('lAoA 2: '..dump(lAoATmp))
|
||||
--[[
|
||||
y_min = 0.0 -- minimaler Ausgabewert
|
||||
@ -323,9 +323,46 @@ function ProcessGlassCockpitFCHighImportanceConfig()
|
||||
|
||||
y = 0.2800000000000000000000000000001 -- Ergebnis (m * x + n)
|
||||
]]
|
||||
lAoATmp = 0.02222222222222222222222222222222 * lAoATmp + 0.0000000000000000000000000000001
|
||||
SendData(16, string.format("%.4f;%d", lAoATmp, 0) )
|
||||
--lAoATmp = 0.02222222222222222222222222222222 * lAoATmp + 0.0000000000000000000000000000001
|
||||
--SendData(16, string.format("%.4f;%d", lAoATmp, 0) )
|
||||
|
||||
WriteToLog('lAoA: '..dump(lAoA))
|
||||
if lAoA > 0.0 then -- positive AOA
|
||||
--[[
|
||||
y_min = 0.22 -- minimaler Ausgabewert
|
||||
y_max = 1.0 -- maximaler Ausgabewert
|
||||
x_min = 0.0 -- minimaler Eingangswert
|
||||
x_max = 35.0 -- maximaler Eingangswert
|
||||
x = 12.6 -- aktueller Eingangswert
|
||||
|
||||
d_y = 0.78 -- Delta Ausgabewerte (y_max - y_min)
|
||||
d_x = 35.0 -- Delta Eingangswerte (x_max - x_min)
|
||||
m = 0.02228571428571428571428571428571 -- Steigung der linearen Funktion (d_y / d_x)
|
||||
n = 0.22 -- Schnittpunkt der Funktion mit y-Achse (y_max - m * x_max)
|
||||
|
||||
y = 0.50079999999999999999999999999995 -- Ergebnis (m * x + n)
|
||||
]]
|
||||
lAoA = 0.02228571428571428571428571428571 * lAoA + 0.22
|
||||
SendData(16, string.format("%.4f;%d", lAoA, 0) )
|
||||
else
|
||||
--[[
|
||||
y_min = 0.0 -- minimaler Ausgabewert
|
||||
y_max = 0.22 -- maximaler Ausgabewert
|
||||
x_min = 0.0 -- minimaler Eingangswert
|
||||
x_max = -10.0 -- maximaler Eingangswert
|
||||
x = -2.6 -- aktueller Eingangswert
|
||||
|
||||
d_y = 0.22 -- Delta Ausgabewerte (y_max - y_min)
|
||||
d_x = -10.0 -- Delta Eingangswerte (x_max - x_min)
|
||||
m = -0.022 -- Steigung der linearen Funktion (d_y / d_x)
|
||||
n = 0.0 -- Schnittpunkt der Funktion mit y-Achse (y_max - m * x_max)
|
||||
|
||||
y = 0.1628 -- Ergebnis 0.22 - (m * x + n)
|
||||
]]
|
||||
lAoA = 0.22 - (-0.022 * lAoA)
|
||||
SendData(16, string.format("%.4f;%d", lAoA, 0) )
|
||||
end
|
||||
|
||||
-- G-LOAD
|
||||
FC_US_GLOAD(17)
|
||||
|
||||
@ -545,6 +582,8 @@ function ProcessGlassCockpitFCLowImportanceConfig()
|
||||
lEngineFuelTotal,
|
||||
lFuelNeedle))
|
||||
-- Fuel Indicator end
|
||||
|
||||
FC_US_RWR(28)
|
||||
end
|
||||
end
|
||||
|
||||
@ -752,9 +791,151 @@ function FlareChaff(hardware)
|
||||
|
||||
--[chaff] = number: "30"
|
||||
--[flare] = number: "30"
|
||||
|
||||
if gES_maxChaff == nil then
|
||||
gES_maxChaff = lSnares.chaff
|
||||
gES_tmpChaff = gES_maxChaff
|
||||
end
|
||||
if gES_maxFlare == nil then
|
||||
gES_maxFlare = lSnares.flare
|
||||
gES_tmpFlare = gES_maxFlare
|
||||
end
|
||||
if gES_timerChaff == nil then
|
||||
gES_timerChaff = 0
|
||||
gES_timerChaffCounter = 3
|
||||
end
|
||||
if gES_timerFlare == nil then
|
||||
gES_timerFlare = 0
|
||||
gES_timerFlareCounter = 3
|
||||
end
|
||||
local lblinkChaff = 0
|
||||
local lblinkFlare = 0
|
||||
local ltmp = 0
|
||||
|
||||
if gES_tmpChaff == 0 then
|
||||
lblinkChaff = 1
|
||||
end
|
||||
|
||||
if lSnares.chaff < gES_tmpChaff then
|
||||
WriteToLog('Chaff: '..dump(lSnares.chaff)..', gES_tmpChaff:'..dump(gES_tmpChaff))
|
||||
gES_tmpChaff = lSnares.chaff
|
||||
--gES_timerChaff = os.time()
|
||||
gES_timerChaff = os.clock()
|
||||
WriteToLog('Chaff ausgeworfen, Zeit: '..dump(gES_timerChaff))
|
||||
gES_timerChaffCounter = 3
|
||||
end
|
||||
|
||||
if lblinkChaff == 0 and gES_timerChaff > 0.0 and gES_timerChaffCounter > 0 then
|
||||
--local ldiffTimer = os.difftime (os.time(), gES_timerChaff)
|
||||
local ldiffTimer = os.clock() - gES_timerChaff
|
||||
ltmp, ldiffTimer = math.modf(ldiffTimer)
|
||||
WriteToLog('Zeit: '..gES_timerChaff..', Counter: '..gES_timerChaffCounter)
|
||||
WriteToLog('Zeit Diff: '..ldiffTimer)
|
||||
if gES_timerChaffCounter == 1 and ldiffTimer > 0.9 then
|
||||
WriteToLog('0')
|
||||
lblinkChaff = 0
|
||||
gES_timerChaffCounter = 3
|
||||
gES_timerChaff = 0.0
|
||||
elseif gES_timerChaffCounter == 1 and ldiffTimer > 0.8 then
|
||||
WriteToLog('1')
|
||||
lblinkChaff = 1
|
||||
--gES_timerChaffCounter = gES_timerChaffCounter - 1
|
||||
elseif gES_timerChaffCounter == 2 and ldiffTimer > 0.6 then
|
||||
WriteToLog('2')
|
||||
lblinkChaff = 0
|
||||
gES_timerChaffCounter = gES_timerChaffCounter - 1
|
||||
elseif gES_timerChaffCounter == 2 and ldiffTimer > 0.4 then
|
||||
WriteToLog('3')
|
||||
lblinkChaff = 1
|
||||
--gES_timerChaffCounter = gES_timerChaffCounter - 1
|
||||
elseif gES_timerChaffCounter == 3 and ldiffTimer > 0.2 then
|
||||
WriteToLog('4')
|
||||
lblinkChaff = 0
|
||||
gES_timerChaffCounter = gES_timerChaffCounter - 1
|
||||
elseif gES_timerChaffCounter == 3 and ldiffTimer > 0.0 then
|
||||
WriteToLog('5')
|
||||
lblinkChaff = 1
|
||||
--gES_timerChaffCounter = gES_timerChaffCounter - 1
|
||||
elseif ldiffTimer > 0.95 then
|
||||
WriteToLog('else')
|
||||
lblinkChaff = 0
|
||||
gES_timerChaffCounter = 3
|
||||
gES_timerChaff = 0.0
|
||||
end
|
||||
|
||||
--[[
|
||||
if gES_timerChaffCounter == 3 and ldiffTimer < 0.5 then
|
||||
WriteToLog('0')
|
||||
lblinkChaff = 1
|
||||
--gES_timerChaffCounter = gES_timerChaffCounter - 1
|
||||
elseif gES_timerChaffCounter == 3 and ldiffTimer < 1.0 then
|
||||
WriteToLog('1')
|
||||
lblinkChaff = 0
|
||||
gES_timerChaffCounter = gES_timerChaffCounter - 1
|
||||
elseif gES_timerChaffCounter == 2 and ldiffTimer < 1.5 then
|
||||
WriteToLog('2')
|
||||
lblinkChaff = 1
|
||||
--gES_timerChaffCounter = gES_timerChaffCounter - 1
|
||||
elseif gES_timerChaffCounter == 2 and ldiffTimer < 2.0 then
|
||||
WriteToLog('3')
|
||||
lblinkChaff = 0
|
||||
gES_timerChaffCounter = gES_timerChaffCounter - 1
|
||||
elseif gES_timerChaffCounter == 1 and ldiffTimer < 2.5 then
|
||||
WriteToLog('4')
|
||||
lblinkChaff = 1
|
||||
--gES_timerChaffCounter = gES_timerChaffCounter - 1
|
||||
elseif gES_timerChaffCounter == 1 and ldiffTimer < 3.0 then
|
||||
WriteToLog('5')
|
||||
lblinkChaff = 0
|
||||
gES_timerChaffCounter = gES_timerChaffCounter - 1
|
||||
elseif gES_timerChaffCounter == 0 or ldiffTimer > 3.0 then
|
||||
WriteToLog('else')
|
||||
lblinkChaff = 0
|
||||
gES_timerChaffCounter = 3
|
||||
gES_timerChaff = 0
|
||||
end]]
|
||||
--[[
|
||||
if gES_timerChaffCounter == 1 and ldiffTimer == 5 then
|
||||
WriteToLog('0')
|
||||
lblinkChaff = 0
|
||||
gES_timerChaffCounter = gES_timerChaffCounter - 1
|
||||
elseif gES_timerChaffCounter == 1 and ldiffTimer == 4 then
|
||||
WriteToLog('1')
|
||||
lblinkChaff = 1
|
||||
--gES_timerChaffCounter = gES_timerChaffCounter - 1
|
||||
elseif gES_timerChaffCounter == 2 and ldiffTimer == 3 then
|
||||
WriteToLog('2')
|
||||
lblinkChaff = 0
|
||||
gES_timerChaffCounter = gES_timerChaffCounter - 1
|
||||
elseif gES_timerChaffCounter == 2 and ldiffTimer == 2 then
|
||||
WriteToLog('3')
|
||||
lblinkChaff = 1
|
||||
--gES_timerChaffCounter = gES_timerChaffCounter - 1
|
||||
elseif gES_timerChaffCounter == 3 and ldiffTimer == 1 then
|
||||
WriteToLog('4')
|
||||
lblinkChaff = 0
|
||||
gES_timerChaffCounter = gES_timerChaffCounter - 1
|
||||
elseif gES_timerChaffCounter == 3 and ldiffTimer == 0 then
|
||||
WriteToLog('5')
|
||||
lblinkChaff = 1
|
||||
--gES_timerChaffCounter = gES_timerChaffCounter - 1
|
||||
elseif gES_timerChaffCounter == 0 or ldiffTimer > 5 then
|
||||
WriteToLog('else')
|
||||
lblinkChaff = 0
|
||||
gES_timerChaffCounter = 3
|
||||
gES_timerChaff = 0
|
||||
end]]
|
||||
end
|
||||
|
||||
--WriteToLog('lblinkChaff: '..lblinkChaff)
|
||||
|
||||
SendDataHW("800", lSnares.chaff, lHardware ) -- display chaff
|
||||
SendDataHW("801", lSnares.flare, lHardware ) -- display flare
|
||||
SendDataHW("802", lblinkChaff, lHardware ) -- blink chaff active/aktive empty chaff
|
||||
SendDataHW("803", lblinkFlare, lHardware ) -- blink flare active/aktive empty flare
|
||||
SendDataHW("804", gES_tmpChaff < 20 and 1 or 0, lHardware ) -- minimum chaff lamp
|
||||
SendDataHW("805", gES_tmpFlare < 10 and 1 or 0, lHardware ) -- minimum flare lamp
|
||||
|
||||
SendDataHW("800", lSnares.chaff, lHardware )
|
||||
SendDataHW("801", lSnares.flare, lHardware )
|
||||
end
|
||||
|
||||
function MechanicalDevicesIndicator(hardware)
|
||||
@ -762,7 +943,7 @@ function MechanicalDevicesIndicator(hardware)
|
||||
local lHardware = hardware or 1
|
||||
local lMechInfo = LoGetMechInfo() -- mechanical components, e.g. Flaps, Wheelbrakes,...
|
||||
if lMechInfo == nil then
|
||||
WriteToLog('lMechInfo nil')
|
||||
--WriteToLog('lMechInfo nil')
|
||||
return
|
||||
end
|
||||
--[[
|
||||
|
||||
@ -97,7 +97,9 @@ gES_GlassCockpitConfigEveryFrameArguments =
|
||||
[615] = "%.1f", -- lamp_FIRE_DETECTION_FwdFireWarning {-1.0, 1.0}
|
||||
[616] = "%.1f", -- lamp_FIRE_DETECTION_AftFireWarning {-1.0, 1.0}
|
||||
-- control system
|
||||
[613] = "%.1f" -- lamp_CONTROL_TakeOffPosInd {-1.0, 1.0}
|
||||
[613] = "%.1f", -- lamp_CONTROL_TakeOffPosInd {-1.0, 1.0}
|
||||
-- air system
|
||||
[614] = "%.1f" -- lamp_WindshieldAntiIceOverheatWarning {-1.0, 1.0}
|
||||
}
|
||||
|
||||
gES_GlassCockpitConfigArguments =
|
||||
@ -173,7 +175,7 @@ gES_GlassCockpitConfigArguments =
|
||||
[703] = "%1d", -- Oxygen Regulator Diluter Lever, NORMAL OXYGEN/100% OXYGEN {1, -1}
|
||||
[704] = "%.4f", -- Oxygen Regulator Supply Lever (rotary) {0.0 to 1.0} in -0.5 steps
|
||||
-- Fire Detection Interface
|
||||
[635] = "%1d", -- Engine Fire Detector System Test Button {1,- 1}
|
||||
[635] = "%1d", -- Engine Fire Warning Light Test Button {1,- 1}
|
||||
[685] = "%1d", -- Forward Engine Compartment Fire-warning Light (Push to test) {1}
|
||||
[686] = "%1d", -- Aft Engine Compartment Fire-warning Light (Push to test) {1}
|
||||
-- Air Interface
|
||||
@ -185,6 +187,7 @@ gES_GlassCockpitConfigArguments =
|
||||
[737] = "%.1f", -- Cockpit Air Temperature Control Switch, AUTO/OFF/HOT/COLD {-1.0, 1.0}
|
||||
[645] = "%.1f", -- Engine Anti-Ice & Screen Switch, EXTEND/RET./ANTI-ICE {-1.0, 1.0}
|
||||
[741] = "%1d", -- Air Outlet Selector Lever, FLOOR/BOTH/DEFROST {-1, 1}
|
||||
[691] = "%1d", -- Windshield Anti-Ice Overheat Warning Light
|
||||
-- Light Interface
|
||||
[654] = "%1d", -- Compass Light Switch, ON/OFF {2, -2}
|
||||
[813] = "%.1f", -- Instrument Panel Primary Light Rheostat (rotary) {0.0, 1.0} in 0.5 steps
|
||||
@ -200,7 +203,7 @@ gES_GlassCockpitConfigArguments =
|
||||
[733] = "%.1f", -- Emergency (In-air) Ignition Switch, ON/OFF {1.0, 1.0}
|
||||
-- Control Interface
|
||||
[649] = "%.1f", -- Lateral Alternate Trim Switch, NORMAL/OFF/LEFT/RIGHT {-0.1, 0.1}
|
||||
[648] = "%.1f", -- Rudder Trim Switch, LEFT/OFF/RIGHT {-1.0, 1.0}
|
||||
[648] = "%.1f", -- Rudder Trim Switch, LEFT/OFF/RIGHT {1.0, -1.0}
|
||||
--[738] = "%1d", -- Longitudinal Alternate Trim Switch Cover {1, -1}
|
||||
[739] = "%.1f", -- Longitudinal Alternate Trim Switch, NORMAL GRIP CONT/OFF/NOSE UP/NOSE DOWN {-0.1, 0.0, 0.1}
|
||||
[683] = "%1d", -- Take-off (Trim) Position Indicator Light (Push to test) {1}
|
||||
@ -212,7 +215,7 @@ gES_GlassCockpitConfigArguments =
|
||||
-- radio compass ARN-6
|
||||
[802] = "%.4f", -- AN/ARN-6 Audio Volume Control (rotary) {0.1, 0.9} in 0.5 steps
|
||||
[803] = "%.1f", -- AN/ARN-6 Frequency Band Switch {0.0, 0.1, 0.2, 0.3}
|
||||
[667] = "%.1f", -- AN/ARN-6 Function Selector Switch, OFF/COMP/ANT./LOOP/CONT. {0.0, 0.1, 0.2, 0.3}
|
||||
[667] = "%.1f", -- AN/ARN-6 Function Selector Switch, OFF/COMP/ANT./LOOP/CONT. {0.0, 0.1, 0.2, 0.3, 0.4}
|
||||
[666] = "%.1f", -- AN/ARN-6 LOOP L-R Switch {-1.0, 0.0, 1.0}
|
||||
--[null] = "%.4f", -- AN/ARN-6 Tuning Crank {0.0, 1.0} in 0.01 steps
|
||||
[657] = "%.1f", -- AN/ARN-6 Scale Light Switch, HI/OFF/LO {-0.1, 0.0, 0.1}
|
||||
@ -227,11 +230,11 @@ gES_GlassCockpitConfigArguments =
|
||||
--[null] = "%.4f", -- Altimeter reference pressure adjusting knob (rotary) {0.0, 1.0} in 0.1 steps
|
||||
-- gyromag compass
|
||||
--[null] = "%.4f", -- Compass Correction (rotary) {0.0, 1.0} in 0.05 steps
|
||||
[598] = "%.1f", -- Directional Indicator Fast Slaving Switch {0.0, 1.0}
|
||||
[598] = "%.1f", -- Directional Indicator Fast Slaving Button {0.0, 1.0}
|
||||
-- attitude indicator
|
||||
[714] = "%.1f", -- Pull to Cage Knob {0.0, 1.0}
|
||||
-- accelerometer
|
||||
[1004] = "%.1f", -- Accelerometer Reset Knob {0.0, 1.0}
|
||||
[1004] = "%.1f", -- Accelerometer Reset Button {0.0, 1.0}
|
||||
-- CLOCK
|
||||
--[null] = "%1d", -- Set Clock Knob
|
||||
[831] = "%1d", -- Elapsed Time Mechanism Button {0, 1}
|
||||
@ -244,7 +247,7 @@ gES_GlassCockpitConfigArguments =
|
||||
[642] = "%1d", -- A-4 Sight Filament Selector Switch, SECONDARY/PRIMARY {2, -2}
|
||||
[721] = "%.1f", -- Variable Sight Selector Unit - Sight Function Selector Lever, ROCKET/GUN/BOMB {0.0, 0.1, 0.2}
|
||||
[720] = "%1d", -- Variable Sight Selector Unit - Target Speed Switch, HI/LO {1, -1}
|
||||
[722] = "%.4f", -- Variable Sight Selector Unit - Rocket Depression Angle Selector (rotary) {0.0, 1.0} in 0.6 steps
|
||||
[722] = "%.4f", -- Variable Sight Selector Unit - Rocket Depression Angle Selector (rotary) {0.0, 1.0} in 0.1 steps
|
||||
[727] = "%.4f", -- Bomb-Target Wind Control Knob (rotary) {0.0, 1.0} in 0.6 steps
|
||||
-- weapon system
|
||||
[639] = "", -- Demolition Bomb Release Selector Switch, AUTO RELEASE/MANUAL RELEASE {2,-2}
|
||||
|
||||
@ -1276,12 +1276,14 @@ function FC_Russian_VVI_New(exportid)
|
||||
else
|
||||
lVVI = 0.016875 * lVVI + -0.0125
|
||||
end
|
||||
lVVI = (lVVI > 1.0 and 1.0 or lVVI)
|
||||
else
|
||||
if lVVI <= 0.0 and lVVI < -20.0 then
|
||||
lVVI = 0.01625 * lVVI
|
||||
else
|
||||
lVVI = 0.016875 * lVVI + -0.0125
|
||||
end
|
||||
lVVI = (lVVI < -1.0 and -1.0 or lVVI)
|
||||
end
|
||||
|
||||
SendData(lExportID, string.format("%.4f", lVVI))
|
||||
@ -1306,36 +1308,36 @@ function FC_Russian_AOA_Su25(exportid)
|
||||
-- AOA Indicator and Accelerometer (AOA, GLoad)
|
||||
if lAoA > 0.0 then -- positive AOA
|
||||
--[[
|
||||
y_min = 0.0 -- minimaler Ausgabewert
|
||||
y_max = 1.0 -- maximaler Ausgabewert
|
||||
x_min = 0.0 -- minimaler Eingangswert
|
||||
x_max = 0.67224794626236 -- maximaler Eingangswert
|
||||
x = 0.336 -- aktueller Eingangswert
|
||||
y_min = 0.0 -- minimaler Ausgabewert
|
||||
y_max = 1.0 -- maximaler Ausgabewert
|
||||
x_min = 0.0 -- minimaler Eingangswert
|
||||
x_max = 40.0 -- maximaler Eingangswert
|
||||
x = 1.4 -- aktueller Eingangswert
|
||||
|
||||
d_y = 1.0 -- Delta Ausgabewerte (y_max - y_min)
|
||||
d_x = 0.67224794626236 -- Delta Eingangswerte (x_max - x_min)
|
||||
m = 1.4875463815991002393091135769939 -- Steigung der linearen Funktion (d_y / d_x)
|
||||
n = 0.0 -- Schnittpunkt der Funktion mit y-Achse (y_max - m * x_max)
|
||||
d_y = 1.0 -- Delta Ausgabewerte (y_max - y_min)
|
||||
d_x = 40.0 -- Delta Eingangswerte (x_max - x_min)
|
||||
m = 0.025 -- Steigung der linearen Funktion (d_y / d_x)
|
||||
n = 0.0 -- Schnittpunkt der Funktion mit y-Achse (y_max - m * x_max)
|
||||
|
||||
y = 0.727 -- Ergebnis (m * x + n)
|
||||
y = 0.035 -- Ergebnis (m * x + n)
|
||||
]]
|
||||
lAoA = 1.4875463815991002393091135769939 * lAoA
|
||||
lAoA = 0.025 * lAoA
|
||||
else
|
||||
--[[
|
||||
y_min = 0.0 -- minimaler Ausgabewert
|
||||
y_max = -0.28 -- maximaler Ausgabewert
|
||||
x_min = 0.0 -- minimaler Eingangswert
|
||||
x_max = -0.17499999701977 -- maximaler Eingangswert
|
||||
x = -0.1 -- aktueller Eingangswert
|
||||
y_min = 0.0 -- minimaler Ausgabewert
|
||||
y_max = -0.28 -- maximaler Ausgabewert
|
||||
x_min = 0.0 -- minimaler Eingangswert
|
||||
x_max = -10.0 -- maximaler Eingangswert
|
||||
x = -3.2 -- aktueller Eingangswert
|
||||
|
||||
d_y = -0.28 -- Delta Ausgabewerte (y_max - y_min)
|
||||
d_x = -0.17499999701977 -- Delta Eingangswerte (x_max - x_min)
|
||||
m = 1.6000000272478176068843626660856 -- Steigung der linearen Funktion (d_y / d_x)
|
||||
n = 0.0 -- Schnittpunkt der Funktion mit y-Achse (y_max - m * x_max)
|
||||
d_y = -0.28 -- Delta Ausgabewerte (y_max - y_min)
|
||||
d_x = -10.0 -- Delta Eingangswerte (x_max - x_min)
|
||||
m = 0.028 -- Steigung der linearen Funktion (d_y / d_x)
|
||||
n = 0.0 -- Schnittpunkt der Funktion mit y-Achse (y_max - m * x_max)
|
||||
|
||||
y = -0.16000000272478176068843626660856 -- Ergebnis (m * x + n)
|
||||
]]
|
||||
lAoA = 1.6000000272478176068843626660856 * lAoA
|
||||
y = -0.0896 -- Ergebnis (m * x + n)
|
||||
]] --0.14
|
||||
lAoA = 0.028 * lAoA
|
||||
end
|
||||
|
||||
if lAccelerationUnits > 0.0 then -- positive AOA
|
||||
@ -1389,33 +1391,33 @@ function FC_Russian_AOA_Su2733(exportid)
|
||||
y_min = 0.0 -- minimaler Ausgabewert
|
||||
y_max = 1.0 -- maximaler Ausgabewert
|
||||
x_min = 0.0 -- minimaler Eingangswert
|
||||
x_max = 0.68 -- maximaler Eingangswert
|
||||
x = 0.4 -- aktueller Eingangswert
|
||||
x_max = 40.0 -- maximaler Eingangswert
|
||||
x = 1.4 -- aktueller Eingangswert
|
||||
|
||||
d_y = 1.0 -- Delta Ausgabewerte (y_max - y_min)
|
||||
d_x = 0.68 -- Delta Eingangswerte (x_max - x_min)
|
||||
m = 1,4705882352941176470588235294118 -- Steigung der linearen Funktion (d_y / d_x)
|
||||
n = 0.0 -- Schnittpunkt der Funktion mit y-Achse (y_max - m * x_max)
|
||||
d_y = 1.0 -- Delta Ausgabewerte (y_max - y_min)
|
||||
d_x = 40.0 -- Delta Eingangswerte (x_max - x_min)
|
||||
m = 0.025 -- Steigung der linearen Funktion (d_y / d_x)
|
||||
n = 0.0 -- Schnittpunkt der Funktion mit y-Achse (y_max - m * x_max)
|
||||
|
||||
y = 0,58823529411764705882352941176471 -- Ergebnis (m * x + n)
|
||||
y = 0.035 -- Ergebnis (m * x + n)
|
||||
]]
|
||||
lAoA = 1.4705882352941176470588235294118 * lAoA
|
||||
lAoA = 0.025 * lAoA
|
||||
else
|
||||
--[[
|
||||
y_min = 0.0 -- minimaler Ausgabewert
|
||||
y_max = -0.28 -- maximaler Ausgabewert
|
||||
x_min = 0.0 -- minimaler Eingangswert
|
||||
x_max = -0.2 -- maximaler Eingangswert
|
||||
x = -0.1 -- aktueller Eingangswert
|
||||
x_max = -10.0 -- maximaler Eingangswert
|
||||
x = -3.2 -- aktueller Eingangswert
|
||||
|
||||
d_y = -0.28 -- Delta Ausgabewerte (y_max - y_min)
|
||||
d_x = -0.2 -- Delta Eingangswerte (x_max - x_min)
|
||||
m = 1.4 -- Steigung der linearen Funktion (d_y / d_x)
|
||||
d_x = -10.0 -- Delta Eingangswerte (x_max - x_min)
|
||||
m = 0.028 -- Steigung der linearen Funktion (d_y / d_x)
|
||||
n = 0.0 -- Schnittpunkt der Funktion mit y-Achse (y_max - m * x_max)
|
||||
|
||||
y = -0.14 -- Ergebnis (m * x + n)
|
||||
]]
|
||||
lAoA = 1.6000000272478176068843626660856 * lAoA
|
||||
y = -0.0896 -- Ergebnis (m * x + n)
|
||||
]] --0.14
|
||||
lAoA = 0.028 * lAoA
|
||||
end
|
||||
|
||||
if lAccelerationUnits > 0.0 then -- positive AOA
|
||||
@ -1467,35 +1469,35 @@ function FC_Russian_AOA_MiG29(exportid)
|
||||
if lAoA > 0.0 then -- positive AOA
|
||||
--[[
|
||||
y_min = 0.0 -- minimaler Ausgabewert
|
||||
y_max = 1.0 -- maximaler Ausgabewert
|
||||
y_max = 0.7812 -- maximaler Ausgabewert
|
||||
x_min = 0.0 -- minimaler Eingangswert
|
||||
x_max = 0.68 -- maximaler Eingangswert
|
||||
x = 0.4 -- aktueller Eingangswert
|
||||
x_max = 30.0 -- maximaler Eingangswert
|
||||
x = 5.4 -- aktueller Eingangswert
|
||||
|
||||
d_y = 1.0 -- Delta Ausgabewerte (y_max - y_min)
|
||||
d_x = 0.68 -- Delta Eingangswerte (x_max - x_min)
|
||||
m = 1,4705882352941176470588235294118 -- Steigung der linearen Funktion (d_y / d_x)
|
||||
n = 0.0 -- Schnittpunkt der Funktion mit y-Achse (y_max - m * x_max)
|
||||
d_y = 0.7812 -- Delta Ausgabewerte (y_max - y_min)
|
||||
d_x = 30.0 -- Delta Eingangswerte (x_max - x_min)
|
||||
m = 0.02604 -- Steigung der linearen Funktion (d_y / d_x)
|
||||
n = 0.0 -- Schnittpunkt der Funktion mit y-Achse (y_max - m * x_max)
|
||||
|
||||
y = 0,58823529411764705882352941176471 -- Ergebnis (m * x + n)
|
||||
y = 0.1406 -- Ergebnis (m * x + n)
|
||||
]]
|
||||
lAoA = 1.4705882352941176470588235294118 * lAoA
|
||||
lAoA = 0.03333333333333333333333333333333 * lAoA
|
||||
else
|
||||
--[[
|
||||
y_min = 0.0 -- minimaler Ausgabewert
|
||||
y_max = -0.28 -- maximaler Ausgabewert
|
||||
x_min = 0.0 -- minimaler Eingangswert
|
||||
x_max = -0.2 -- maximaler Eingangswert
|
||||
x = -0.1 -- aktueller Eingangswert
|
||||
x_max = -5.5 -- maximaler Eingangswert
|
||||
x = -2.1 -- aktueller Eingangswert
|
||||
|
||||
d_y = -0.28 -- Delta Ausgabewerte (y_max - y_min)
|
||||
d_x = -0.2 -- Delta Eingangswerte (x_max - x_min)
|
||||
m = 1.4 -- Steigung der linearen Funktion (d_y / d_x)
|
||||
n = 0.0 -- Schnittpunkt der Funktion mit y-Achse (y_max - m * x_max)
|
||||
d_x = -5.5 -- Delta Eingangswerte (x_max - x_min)
|
||||
m = 0,05090909090909090909090909090909 -- Steigung der linearen Funktion (d_y / d_x)
|
||||
n = 0 -- Schnittpunkt der Funktion mit y-Achse (y_max - m * x_max)
|
||||
|
||||
y = -0.14 -- Ergebnis (m * x + n)
|
||||
y = -0.10691 -- Ergebnis (m * x + n)
|
||||
]]
|
||||
lAoA = 1.6000000272478176068843626660856 * lAoA
|
||||
lAoA = 0.05090909090909090909090909090909 * lAoA
|
||||
end
|
||||
|
||||
if lAccelerationUnits > 0.0 then -- positive AOA
|
||||
|
||||
@ -88,7 +88,7 @@ gES_GlassCockpitConfigArguments =
|
||||
--Fuel system
|
||||
[90] = "%.1f", -- Fuel Tank Selector Valve (CLOSE/FORWARD/AFT/BOTH) {0.0, 0.1, 0.2, 0.3}
|
||||
[99] = "%.1f", -- Fuel Gauge Selector (FORWARD/NONE/AFT) {0.0, 0.5, 1.0}
|
||||
--[161] = "%1d", -- "MW-B4 Selector (Not Functional)
|
||||
[161] = "%1d", -- MW-B4 Selector (Not Functional)
|
||||
[162] = "%1d", -- Primer Pump {0, 1}
|
||||
--electric system
|
||||
[79] = "%1d", -- Electric Kill-switch
|
||||
|
||||
@ -35,10 +35,10 @@ gES_GlassCockpitConfigEveryFrameArguments =
|
||||
----[208] = "", -- rotor_brake_handle {0.0, 1.0}
|
||||
-- Left main panel
|
||||
---------------------------------------------------------------
|
||||
[16] = "%.2f", -- Variometer_L {-1.0, -0.71, -0.43, -0.23, -0.09, -0.05, 0, 0.05, 0.09, 0.23, 0.43, 0.71, 1.0}
|
||||
[95] = "%.2f", -- Variometer_R {-1.0, -0.71, -0.43, -0.23, -0.09, -0.05, 0, 0.05, 0.09, 0.23, 0.43, 0.71, 1.0}
|
||||
[24] = "%.3f", -- IAS_L {0.0, 0.001, 0.028, 0.165, 0.277, 0.393, 1.0}
|
||||
[790] = "%.3f", -- IAS_R {0.0, 0.001, 0.028, 0.165, 0.277, 0.393, 1.0}
|
||||
[16] = "%.2f", -- Variometer_L {-30, -20, -10, -5, -2, -1, 0, 1, 2, 5, 10, 20, 30} {-1.0, -0.71, -0.43, -0.23, -0.09, -0.05, 0, 0.05, 0.09, 0.23, 0.43, 0.71, 1.0}
|
||||
[95] = "%.2f", -- Variometer_R {-30, -20, -10, -5, -2, -1, 0, 1, 2, 5, 10, 20, 30} {-1.0, -0.71, -0.43, -0.23, -0.09, -0.05, 0, 0.05, 0.09, 0.23, 0.43, 0.71, 1.0}
|
||||
[24] = "%.3f", -- IAS_L {-10.0, 0.0, 13.889, 27.78, 41.67, 55.56, 69.44, 83.33, 111.1, 125.0, 129.2} {0.0, 0.001, 0.028, 0.165, 0.277, 0.393, 1.0}
|
||||
[790] = "%.3f", -- IAS_R {-10.0, 0.0, 13.889, 27.78, 41.67, 55.56, 69.44, 83.33, 111.1, 125.0, 129.2} {0.0, 0.001, 0.028, 0.165, 0.277, 0.393, 1.0}
|
||||
-- AGB-3k
|
||||
---------------------------------------------------------------
|
||||
[13] = "%.4f", -- AGB_3K_Left_roll {-1.0, 1.0}
|
||||
@ -71,11 +71,13 @@ gES_GlassCockpitConfigEveryFrameArguments =
|
||||
[20] = "%.4f", -- VD_10K_L_10 {0.0, 1.0}
|
||||
[833] = "%.4f", -- VD_10K_L_100_Ind {0.0, 1.0}
|
||||
[832] = "%.4f", -- VD_10K_L_10_Ind {0.0, 1.0}
|
||||
[916] = "%.4f", -- VD_10K_L_Shutter {0.822, 0.75}
|
||||
[21] = "%.4f", -- VD_10K_L_PRESS {0.0, 1.0}
|
||||
-----
|
||||
[98] = "%.4f", -- VD_10K_R_100 {0.0, 1.0}
|
||||
[99] = "%.4f", -- VD_10K_R_10 {0.0, 1.0}
|
||||
[835] = "%.4f", -- VD_10K_R_100_Ind {0.0, 1.0}
|
||||
[917] = "%.4f", -- VD_10K_R_Shutter {0.822, 0.75}
|
||||
[834] = "%.4f", -- VD_10K_R_10_Ind {0.0, 1.0}
|
||||
[100] = "%.4f", -- VD_10K_R_PRESS {0.0, 1.0}
|
||||
-- Rotor RPM
|
||||
@ -84,25 +86,25 @@ gES_GlassCockpitConfigEveryFrameArguments =
|
||||
[787] = "%.4f", -- RotorRPM_Oper {0.0, 1.0}
|
||||
-- Rotor Pitch
|
||||
---------------------------------------------------------------
|
||||
[36] = "%.2f", -- RotorPitch {0.0, 0.07, 0.14, 0.21, 0.29, 0.35, 0.43, 0.5, 0.57, 0.64, 0.71, 0.79, 0.86, 0.93, 1.0}
|
||||
[36] = "%.2f", -- RotorPitch {1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0, 10.0, 11.0, 12.0, 13.0, 14.0, 15.0} {0.0, 0.07, 0.14, 0.21, 0.29, 0.35, 0.43, 0.5, 0.57, 0.64, 0.71, 0.79, 0.86, 0.93, 1.0}
|
||||
-- Radar altimeter A-036
|
||||
---------------------------------------------------------------
|
||||
[34] = "%.3f", -- A_036_RALT {0.0, 0.475, 0.625, 1.0}
|
||||
[31] = "%.3f", -- A_036_DangerRALT_index {0.0, 0.475, 0.625, 1.0}
|
||||
[34] = "%.3f", -- A_036_RALT {0, 100, 300, 800} {0.0, 0.475, 0.625, 1.0}
|
||||
[31] = "%.3f", -- A_036_DangerRALT_index {0, 100, 300, 800} {0.0, 0.475, 0.625, 1.0}
|
||||
[30] = "%.1f", -- A_036_DangerRALT_lamp {0.0, 1.0}
|
||||
[33] = "%.1f", -- A_036_warning_flag {0.0, 1.0}
|
||||
-- Engines RPM
|
||||
---------------------------------------------------------------
|
||||
[40] = "%.4f", -- LeftEngineRPM {0.0, 1.0}
|
||||
[41] = "%.4f", -- RightEngineRPM {0.0, 1.0}
|
||||
[788] = "%.4f", -- LeftEngineRPM_Oper {0.0, 1.0}
|
||||
[789] = "%.4f", -- RightEngineRPM_Oper {0.0, 1.0}
|
||||
[40] = "%.4f", -- LeftEngineRPM {0.0, 110.0} {0.0, 1.0}
|
||||
[41] = "%.4f", -- RightEngineRPM {0.0, 110.0} {0.0, 1.0}
|
||||
[788] = "%.4f", -- LeftEngineRPM_Oper {0.0, 110.0} {0.0, 1.0}
|
||||
[789] = "%.4f", -- RightEngineRPM_Oper {0.0, 110.0} {0.0, 1.0}
|
||||
-- Engines temperature
|
||||
---------------------------------------------------------------
|
||||
[43] = "%.4f", -- LeftEngineTemperatureHund {0.0, 1.0}
|
||||
[44] = "%.4f", -- LeftEngineTemperatureTenth {0.0, 1.0}
|
||||
[45] = "%.4f", -- RightEngineTemperatureHund {0.0, 1.0}
|
||||
[46] = "%.4f", -- RightEngineTemperatureTenth {0.0, 1.0}
|
||||
[43] = "%.4f", -- LeftEngineTemperatureHund {0.0, 1200.0} {0.0, 1.0}
|
||||
[44] = "%.4f", -- LeftEngineTemperatureTenth {0.0, 100.0} {0.0, 1.0}
|
||||
[45] = "%.4f", -- RightEngineTemperatureHund {0.0, 1200.0} {0.0, 1.0}
|
||||
[46] = "%.4f", -- RightEngineTemperatureTenth {0.0, 100.0} {0.0, 1.0}
|
||||
-- Engines mode indicator
|
||||
---------------------------------------------------------------
|
||||
[39] = "%.4f", -- EnginesMode {0.0, 1.0}
|
||||
@ -150,9 +152,9 @@ gES_GlassCockpitConfigEveryFrameArguments =
|
||||
-- Oil
|
||||
---------------------------------------------------------------
|
||||
[111] = "%.4f", -- oils_p_main_reductor {0.0, 1.0}
|
||||
[114] = "%.2f", -- oils_t_main_reductor {-0.25, 0.75}
|
||||
[113] = "%.2f", -- oils_temp_tail_reductor {-0.25, 0.75}
|
||||
[112] = "%.2f", -- oils_temp_intermediate_reductor {-0.25, 0.75}
|
||||
[114] = "%.2f", -- oils_t_main_reductor {0.0, 1.0} {-0.25, 0.75}
|
||||
[113] = "%.2f", -- oils_temp_tail_reductor {0.0, 1.0} {-0.25, 0.75}
|
||||
[112] = "%.2f", -- oils_temp_intermediate_reductor {0.0, 1.0} {-0.25, 0.75}
|
||||
[115] = "%.4f", -- oils_p_left_engine {0.0, 1.0}
|
||||
[116] = "%.2f", -- oils_t_left_engine {-0.25, 0.75}
|
||||
[117] = "%.4f", -- oils_p_right_engine {0.0, 1.0}
|
||||
@ -184,11 +186,11 @@ gES_GlassCockpitConfigEveryFrameArguments =
|
||||
[55] = "%.4f", -- CLOCK_seconds_meter_time_seconds {0.0, 1.0}
|
||||
-- Fuel tanks
|
||||
---------------------------------------------------------------
|
||||
[62] = "%.3f", -- FuelScaleUpper {0.0, 0.131, 0.244, 0.414, 0.647, 0.705, 0.9, 1.0}
|
||||
[62] = "%.3f", -- FuelScaleLower {0.0, 0.165, 0.283, 0.393, 0.618, 1.0}
|
||||
[62] = "%.3f", -- FuelScaleUpper {0.0, 200.0, 400.0, 800.0, 1600.0, 2000.0, 2400.0, 2800.0} {0.0, 0.131, 0.244, 0.414, 0.647, 0.705, 0.9, 1.0}
|
||||
[62] = "%.3f", -- FuelScaleLower {0.0, 200.0, 300.0, 400.0, 600.0, 1200.0, 2240.0} {0.0, 0.165, 0.283, 0.393, 0.618, 1.0}
|
||||
-- Air system gauges
|
||||
---------------------------------------------------------------
|
||||
[320] = "%.2f", -- air_system_pressure {0.0, 0.23, 0.48, 1.0}
|
||||
[320] = "%.2f", -- air_system_pressure {0.0, 25.0, 50.0, 100.0} {0.0, 0.23, 0.48, 1.0}
|
||||
[321] = "%.4f", -- air_system_brake_pressure {0.0, 1.0}
|
||||
-- SPUU-52
|
||||
---------------------------------------------------------------
|
||||
@ -196,7 +198,7 @@ gES_GlassCockpitConfigEveryFrameArguments =
|
||||
[786] = "%.1f", -- SPUU52_lamp {0.0, 1.0}
|
||||
-- PU-26 LAMP
|
||||
---------------------------------------------------------------
|
||||
[827] = "%.1f", -- PU_26_GA_Lamp {0.0, 0.5}
|
||||
[827] = "%.1f", -- PU_26_GA_Lamp {0.0, 1.0} {0.0, 0.5}
|
||||
-- ARC-UD
|
||||
---------------------------------------------------------------
|
||||
[458] = "%.1f", -- ARC_UD_Narrow_Lamp {0.0, 0.9}
|
||||
@ -218,12 +220,12 @@ gES_GlassCockpitConfigEveryFrameArguments =
|
||||
[584] = "%.4f", -- AMMO_CNT3_2 {0.0, 1.0}
|
||||
-- Radio R-828
|
||||
---------------------------------------------------------------
|
||||
[740] = "%.2f", -- R828_ASU {0.0, 0.95}
|
||||
[736] = "%.3f", -- R828_channel {0.0, 0.101, 0.199, 0.302, 0.400, 0.502, 0.601, 0.697, 0.801, 0.898}
|
||||
[740] = "%.2f", -- R828_ASU {0.0, 1.0} {0.0, 0.95}
|
||||
[736] = "%.3f", -- R828_channel {0, 1, 2, 3, 4, 5, 6, 7, 8, 9} {0.0, 0.101, 0.199, 0.302, 0.400, 0.502, 0.601, 0.697, 0.801, 0.898}
|
||||
-- Damage
|
||||
---------------------------------------------------------------
|
||||
--[215] = "%0.1f", -- Blister_LEFT {0.0, 0.8}
|
||||
--[216] = "%0.1f", -- Blister_RIGHT {0.0, 0.8}
|
||||
--[215] = "%0.1f", -- Blister_LEFT {0.0, 1.0} {0.0, 0.8}
|
||||
--[216] = "%0.1f", -- Blister_RIGHT {0.0, 1.0} {0.0, 0.8}
|
||||
----
|
||||
--[878] = "%.1f", -- WindShiels_Up {0.0, 1.0}
|
||||
--[879] = "%.1f", -- WindShiels_Down {0.0, 1.0}
|
||||
@ -248,25 +250,28 @@ gES_GlassCockpitConfigEveryFrameArguments =
|
||||
[848] = "%.1f", -- Jadro_Ctl_Lamp {0.0, 1.0}
|
||||
[850] = "%.1f", -- Jadro_Breakdown_Lamp {0.0, 1.0}
|
||||
----
|
||||
[904] = "%.4f", -- RAM_Temp {-1.0, 0.0, 1.0}
|
||||
[904] = "%.4f", -- RAM_Temp {-50.0, 0.0, 70.0} {-1.0, 0.0, 1.0}
|
||||
----
|
||||
[907] = "%.4f", -- G_Meter {-1.0, 0.343, 1.0}
|
||||
[908] = "%.4f", -- G_Meter_Max {0.343, 1.0}
|
||||
[909] = "%.4f", -- G_Meter_Min {-1.0, 0.343}
|
||||
[907] = "%.4f", -- G_Meter {-1.0, 1.0, 3.0} {-1.0, 0.343, 1.0}
|
||||
[908] = "%.4f", -- G_Meter_Max {1.0, 3.0} {0.343, 1.0}
|
||||
[909] = "%.4f", -- G_Meter_Min {-1.0, 1.0} {-1.0, 0.343}
|
||||
----
|
||||
[903] = "%1d", -- filter_handle {0,1}
|
||||
----
|
||||
[63] = "%.4f", -- SalonTemperature {-70.0, -60.0, -30.0, -20.0, -10.0, 0.0, 10.0, 20.0, 30.0, 60.0, 70.0} {-0.7, -0.593, -0.296, -0.227, -0.125, 0.003, 0.132, 0.233, 0.302, 0.603, 0.693}
|
||||
-- electric system gauges
|
||||
---------------------------------------------------------------
|
||||
[526] = "%.4f", -- DC_voltage {0.0, 30.0}
|
||||
[532] = "%.2f", -- AC_voltage {0.0, 0.14, 0.31, 0.56, 1.0}
|
||||
[527] = "%.4f", -- DC_battery_I_current {0.0, 1.0}
|
||||
[528] = "%.4f", -- DC_battery_II_current {0.0, 1.0}
|
||||
[529] = "%.4f", -- DC_VU_I_current {0.0, 1.0}
|
||||
[530] = "%.4f", -- DC_VU_II_current {0.0, 1.0}
|
||||
[531] = "%.4f", -- DC_VU_III_current {0.0, 1.0}
|
||||
[533] = "%.2f", -- AC_generator_I_current {0.0, 0.1, 0.2, 0.36, 0.63, 0.75, 0.86, 1.0}
|
||||
[534] = "%.2f", -- AC_generator_II_current {0.0, 0.1, 0.2, 0.36, 0.63, 0.75, 0.86, 1.0}
|
||||
[371] = "%.2f", -- AntiIce_ampermeter {0.0, 0.1, 0.2, 0.36, 0.63, 0.75, 0.86, 1.0}
|
||||
[526] = "%.4f", -- DC_voltage {0.0, 30.0} {0.0, 1.0}
|
||||
[532] = "%.2f", -- AC_voltage {0.0, 100.0, 150.0, 200.0, 250.0} {0.0, 0.14, 0.31, 0.56, 1.0}
|
||||
[493] = "%.4f", -- DC_APU_current {0.0, 400.0} {0.0, 1.0}
|
||||
[527] = "%.4f", -- DC_battery_I_current {0.0, 400.0} {0.0, 1.0}
|
||||
[528] = "%.4f", -- DC_battery_II_current {0.0, 400.0} {0.0, 1.0}
|
||||
[529] = "%.4f", -- DC_VU_I_current {0.0, 400.0} {0.0, 1.0}
|
||||
[530] = "%.4f", -- DC_VU_II_current {0.0, 400.0} {0.0, 1.0}
|
||||
[531] = "%.4f", -- DC_VU_III_current {0.0, 400.0} {0.0, 1.0}
|
||||
[533] = "%.2f", -- AC_generator_I_current {0.0, 50, 70, 90, 120, 130, 140, 150} {0.0, 0.1, 0.2, 0.36, 0.63, 0.75, 0.86, 1.0}
|
||||
[534] = "%.2f", -- AC_generator_II_current {0.0, 50, 70, 90, 120, 130, 140, 150} {0.0, 0.1, 0.2, 0.36, 0.63, 0.75, 0.86, 1.0}
|
||||
[371] = "%.2f", -- AntiIce_ampermeter {0.0, 50, 70, 90, 120, 130, 140, 150} {0.0, 0.1, 0.2, 0.36, 0.63, 0.75, 0.86, 1.0}
|
||||
-- LAMPS
|
||||
---------------------------------------------------------------
|
||||
[781] = "%.1f", -- lamp_AP_heading_on
|
||||
@ -277,6 +282,7 @@ gES_GlassCockpitConfigEveryFrameArguments =
|
||||
[316] = "%.1f", -- lamp_ENGINE_RT_LEFT_ON
|
||||
[317] = "%.1f", -- lamp_ENGINE_RT_RIGHT_ON
|
||||
[318] = "%.1f", -- lamp_SARPP_ON
|
||||
[325] = "%.1f", -- lamp_Descent_Siren
|
||||
[326] = "%.1f", -- lamp_LOCK_OPEN
|
||||
[327] = "%.1f", -- lamp_DOORS_OPEN
|
||||
[340] = "%.1f", -- lamp_TURN_ON_RI_65
|
||||
@ -385,6 +391,14 @@ gES_GlassCockpitConfigEveryFrameArguments =
|
||||
[778] = "%.1f", -- lamp_Caution_Weap
|
||||
--[] = "%.1f", -- lamp_LeftSignal
|
||||
--[] = "%.1f", -- lamp_RightSignal
|
||||
[586] = "%.1f", -- lamp_Caution_Weap1
|
||||
[587] = "%.1f", -- lamp_Caution_Weap2
|
||||
[588] = "%.1f", -- lamp_Caution_Weap3
|
||||
[306] = "%.1f", -- lamp_Record_P503B
|
||||
[302] = "%.1f", -- lamp_IFF_KD
|
||||
[303] = "%.1f", -- lamp_IFF_KP
|
||||
[912] = "%.1f", -- lamp_IFF_TurnOnReserve
|
||||
[87] = "%.1f", -- lamp_IFF_Failure
|
||||
-- Lights system
|
||||
---------------------------------------------------------------
|
||||
[880] = "%.1f", -- RedLightLhGr1 {1.0, 0.0}
|
||||
@ -393,7 +407,12 @@ gES_GlassCockpitConfigEveryFrameArguments =
|
||||
[898] = "%.1f", -- RedLightRhGr2 {1.0, 0.0}
|
||||
[899] = "%.1f", -- RedLightChGr1 {1.0, 0.0}
|
||||
[901] = "%.1f", -- RedLightChGr2 {1.0, 0.0}
|
||||
[902] = "%.1f" -- RedLight5V5 {1.0, 0.0}
|
||||
[922] = "%.1f", -- RedLightChGr12 {1.0, 0.0}
|
||||
[902] = "%.1f", -- RedLight5V5 {1.0, 0.0}
|
||||
[900] = "%.1f", -- PlafondBrightness {1.0, 0.0}
|
||||
[547] = "%.1f", -- LeftPlafond {1.0, 0.0}
|
||||
[665] = "%.1f", -- RightPlafond {1.0, 0.0}
|
||||
[920] = "%.1f" -- RecorderP503B_PanelLightness {1.0, 0.0}
|
||||
}
|
||||
gES_GlassCockpitConfigArguments =
|
||||
{
|
||||
@ -426,6 +445,11 @@ gES_GlassCockpitConfigArguments =
|
||||
[148] = "%1d", --PTR-APP-TMB-CIRC (Standby Rectifier)
|
||||
[149] = "%1d", --PTR-APP-TMB-TRNS (36V Transformer)
|
||||
|
||||
[498] = "%.4f", --PTR-RSPE-LVR-V (Standby Generator Voltage Adjustment Rheostat)
|
||||
[536] = "%.4f", --PTR-EEP-LVR-ADJV1 (Generator 1 Voltage Adjustment Rheostat)
|
||||
[537] = "%.4f", --PTR-EEP-LVR-ADJV2 (Generator 2 Voltage Adjustment Rheostat)
|
||||
[522] = "%.4f", --PTR-RSPE-TMB-WRMAKK (Battery Heating Switch, ON/OFF)
|
||||
|
||||
[590] = "%1d", --PTR-LAZS-TMB-BV-ZSBR (BW ESBR)
|
||||
[591] = "%1d", --PTR-LAZS-TMB-BV-EXP (Explode)
|
||||
[592] = "%1d", --PTR-LAZS-TMB-BV-DIR (Control)
|
||||
@ -455,6 +479,9 @@ gES_GlassCockpitConfigArguments =
|
||||
[613] = "%1d", --PTR-RAZS-TMB-START-ENGON (CB Engine start)
|
||||
[614] = "%1d", --PTR-RAZS-TMB-START-ENGIGN (CB Engine ignition)
|
||||
[615] = "%1d", --PTR-RAZS-TMB-RPM (CB RPM CONTROL)
|
||||
[616] = "%1d", --PTR-NONAME (CB NONAME)
|
||||
[617] = "%1d", --PTR-SW-LOCKER-BASE (CB Lock Opening Control Main)
|
||||
[618] = "%1d", --PTR-SW-LOCKER-RES (CB Lock Opening Control Reserve)
|
||||
[619] = "%1d", --PTR-RAZS-TMB-TURN (CB TURN INDICATOR)
|
||||
|
||||
[629] = "%1d", --PTR-RAZS-TMB-TSCOCK-ON (CB Bypass)
|
||||
@ -475,7 +502,9 @@ gES_GlassCockpitConfigArguments =
|
||||
[652] = "%1d", --PTR-RAZS-TMB-WNGLGT (WING LIGHTS)
|
||||
[653] = "%1d", --PTR-RAZS-TMB-LAMPTEST (CHECK LAMPS/FLASHER)
|
||||
--[654] = "%1d", -- PTR-RAZS-TMB-DIRMAIN (LOCK MAIN)
|
||||
--[655] = "%1d", -- PTR-RAZS-TMB-DIRDUB (LOCK SPARE)
|
||||
--[655] = "%1d", -- PTR-RAZS-TMB-DIRDUB (LOCK SPARE)
|
||||
[918] = "%1d", --PTR-SW-LIGHT-PRF4-LEFT (CB PRF-4 Light Left)
|
||||
[919] = "%1d", --PTR-SW-LIGHT-PRF4-RIGHT (CB PRF-4 Light Right)
|
||||
|
||||
[620] = "%1d", --PTR-RAZS-TMB-APMAIN (CB Autopilot MAIN)
|
||||
[621] = "%1d", --PTR-RAZS-TMB-APFRICT (CB Autopilot Frict)
|
||||
@ -523,13 +552,14 @@ gES_GlassCockpitConfigArguments =
|
||||
[440] = "%1d", --PTR-CPE-TMB-PUMPTNK-R (Right fuel tank pump)
|
||||
[427] = "%1d", --PTR-CPE-TMB-PUMP-L (Left Engine Shutoff Valve)
|
||||
[429] = "%1d", --PTR-CPE-TMB-PUMP-R (Right Engine Shutoff Valve)
|
||||
[426] = "%1d", --PTR-CPE-CVR-PUMP-L (Left Engine Shutoff Valve)
|
||||
[428] = "%1d", --PTR-CPE-CVR-PUMP-R (Right Engine Shutoff Valve)
|
||||
[426] = "%1d", --PTR-CPE-CVR-PUMP-L (Left Engine Shutoff Valve Cover)
|
||||
[428] = "%1d", --PTR-CPE-CVR-PUMP-R (Right Engine Shutoff Valve Cover)
|
||||
[431] = "%1d", --PTR-CPE-TMB-PUMP-RING (Crossfeed)
|
||||
[430] = "%1d", --PTR-CPE-CVR-PUMP-RING (Crossfeed Cover)
|
||||
|
||||
[433] = "%1d", --PTR-CPE-TMB-PUMP-PASS (Bypass)
|
||||
[432] = "%1d", --PTR-CPE-CVR-PUMP-PASS (Bypass)
|
||||
[432] = "%1d", --PTR-CPE-CVR-PUMP-PASS (Bypass Cover)
|
||||
[437] = "%.1f", --PTR-CPE-TMB-PUMP-CONTR (Refueling Control Switch)
|
||||
-------------------------------------------------------------
|
||||
-- ENGINE INTERFACE
|
||||
[412] = "%1d", --PTR-CPE-TMB-TURBOSTART-ST (APU start mode)
|
||||
@ -540,7 +570,7 @@ gES_GlassCockpitConfigArguments =
|
||||
[421] = "%1d", --PTR-CPE-BTN-ENGSTART-OFF (Engine start OFF)
|
||||
[422] = "%1d", --PTR-CPE-TMB-ENGSTART-LFTRGT (Select engine)
|
||||
[423] = "%1d", --PTR-CPE-TMB-ENGSTART-ROLL (Engine start mode)
|
||||
--[425] = "%1d", -- PTR-CPE-BTN-ENGSTART-TEST (Engine ignition check)
|
||||
[425] = "%1d", -- PTR-CPE-BTN-ENGSTART-TEST (Engine ignition check)
|
||||
|
||||
[204] = "%1d", --PTR-ENGSTOP-ARM-L (Left engine stop)
|
||||
[206] = "%1d", --PTR-ENGSTOP-ARM-R (Right engine stop)
|
||||
@ -552,6 +582,13 @@ gES_GlassCockpitConfigArguments =
|
||||
[313] = "%1d", --PTR-LSPE-BTN-CONTR-RTL (Temperature Regulator Test Left)
|
||||
[314] = "%1d", --PTR-LSPE-BTN-CONTR-RTR (Temperature Regulator Test Right)
|
||||
|
||||
[202] = "%1d", --PTR-STKSGR-TMB-RPM-LEFT
|
||||
[867] = "%1d", --PTR-STKSGR-TMB-RPM-RIGHT
|
||||
--[0] = "%.4f", --PTR-STKSEC-ARM-L (Left Engine Throttle)
|
||||
--[0] = "%.4f", --PTR-STKSEC-ARM-R (Right Engine Throttle)
|
||||
--[0] = "%.4f", --PKT-TROTTLE_L (Left Collective / Throttle)
|
||||
--[0] = "%.4f", --PKT-TROTTLE_R (Right Collective / Throttle)
|
||||
|
||||
[167] = "%1d", --PTR-APP-TMB-ERD-L (EEC Left)
|
||||
[173] = "%1d", --PTR-APP-TMB-ERD-R (EEC Right)
|
||||
[168] = "%1d", --PTR-APP-TMB-CHR-L (ER Left)
|
||||
@ -584,6 +621,9 @@ gES_GlassCockpitConfigArguments =
|
||||
[136] = "%.4f", --PTR-APP-LVR-DIR (Autopilot Heading Adjustment)
|
||||
[140] = "%.4f", --PTR-APP-LVR-K (Autopilot Roll Adjustment)
|
||||
[142] = "%.4f", --PTR-APP-LVR-T (Autopilot Pitch Adjustment)
|
||||
|
||||
[183] = "%1d", --PTR-AUTOPILOT-OFF-L (Autopilot Off Left Button)
|
||||
[226] = "%1d", --PTR-AUTOPILOT-OFF-R (Autopilot Off Right Button)
|
||||
-------------------------------------------------------------
|
||||
-- RADAR ALTIMETER
|
||||
[32] = "%1d", --PTR-ALTR-LVR-TEST (Radio altimeter test)
|
||||
@ -608,7 +648,7 @@ gES_GlassCockpitConfigArguments =
|
||||
[61] = "%.1f", --PTR-FUEL-LVR-MODE (Fuel meter switch)
|
||||
-------------------------------------------------------------
|
||||
-- WEAPON SYS
|
||||
[866] = "%1d", --PTR-SAFE-WEAPON (Weapon Safe-Armed)
|
||||
[921] = "%1d", --PTR-SAFE-WEAPON (Weapon Safe-Armed)
|
||||
[707] = "%1d", --PTR-ADDPBV-TMB-EMRGEXP (Emergency Explode)
|
||||
[706] = "%1d", --PTR-ADDPBV-CVR-EMRGEXP (Emergency Explode Cover)
|
||||
|
||||
@ -647,6 +687,9 @@ gES_GlassCockpitConfigArguments =
|
||||
|
||||
[350] = "%.4f", --PTR-LPE-TMB-PYRO-L (PYROCARTRIDGE Left)
|
||||
[351] = "%.4f", --PTR-LPE-TMB-PYRO-R (PYROCARTRIDGE Right)
|
||||
|
||||
[573] = "%1d", --PTR-LAZS-TMB-MAINOFF (Mine Arms Main Switch)
|
||||
[905] = "%1d", --PTR-RSPE-TMB-PKT (PKT Selector Switch)
|
||||
-------------------------------------------------------------
|
||||
-- SYS CONTROLLER
|
||||
[523] = "%1d", --PTR-RSPE-TMB-WINK (FLASHER)
|
||||
@ -746,6 +789,9 @@ gES_GlassCockpitConfigArguments =
|
||||
[492] = "%.4f", --PTR-RSPE-LVR-REDGRP2 (Rh RedLights Brightness Rst gr.2) {0.0, 1.0}
|
||||
[894] = "%.4f", --PTR-RSPE-LVR-REDGRP003 (Central RedLights Brightness Rst gr.1) {0.0, 1.0}
|
||||
[895] = "%.4f", --PTR-RSPE-LVR-REDGRP004 (Central RedLights Brightness Rst gr.2) {0.0, 1.0}
|
||||
[914] = "%.4f", --PTR-RSPE-LVR-REDGRP005 (5.5V Lights Brightness Rheostat)
|
||||
[511] = "%1d", --PTR-RSPE-TMB-DUTY (Cargo Cabin Duty Lights Switc)
|
||||
[512] = "%1d", --PTR-RSPE-TMB-ALL (Cargo Cabin Common Lights Switch)
|
||||
-------------------------------------------------
|
||||
-- RADIO EQUIPMENT
|
||||
-- SPU-7
|
||||
@ -826,12 +872,12 @@ gES_GlassCockpitConfigArguments =
|
||||
[674] = "%1d", --PTR-RPE-BTN-ANTR (ARC-UD, Ant. Right)
|
||||
|
||||
[455] = "%.4f", --PTR-RPE-LVR-ARKVOL (ARC-UD, Volume)
|
||||
[481] = "%1d", --PTR-RES-TMB-BLOCK (ARC-UD, Lock Switch)
|
||||
-------------------------------------------------------------
|
||||
-- PKV Sight
|
||||
[589] = "%.4f", --PTR-LAZS-LVR-AIMLGT (Sight Brightness)
|
||||
|
||||
[855] = "%.4f", --PTR-PKV-ROTARY (Sight Limb)
|
||||
--[0] = "%1d", -- PTR-PKV-DOUBLE (Sight Double)
|
||||
|
||||
[856] = "%.4f", --PTR-PKV-DOUBLE (Sight Double) {1.0,-1.0}
|
||||
|
||||
@ -844,6 +890,8 @@ gES_GlassCockpitConfigArguments =
|
||||
[59] = "%1d", --PTR-WATCH-LVR-R (Mech clock right lever)
|
||||
[60] = "%1d", --PTR-WATCH-LVR-R (Mech clock right lever)
|
||||
|
||||
[521] = "%1d", --PTR-RSPE-TMB-WRMWTCH (Clock Heating Switch)
|
||||
--------------------------------------------------------------------------------
|
||||
[839] = "%.1f", --PTR-STAT-PRESS (Static Pressure System Mode (LEFT/COMMON/RIGHT))
|
||||
--------------------------------------------------------------------------------
|
||||
-- UV-26 CMD Control Panel
|
||||
@ -865,6 +913,9 @@ gES_GlassCockpitConfigArguments =
|
||||
[881] = "%1d", --PTR-WHEELBRK-ARM (Wheel Brakes)
|
||||
|
||||
[910] = "%1d", --PTR-RSPE-TMB-WINK002 (Acceleration Reset)
|
||||
|
||||
[334] = "%1d", --PTR-LES-TMB-VENT (Left Fan Switch)
|
||||
[488] = "%1d", --PTR-RES-TMB-VENT (Right Fan Switch)
|
||||
------------------------------------------------
|
||||
-- ARC-9
|
||||
[469] = "%1d", --PTR-RPE-TMB-NEARFAR (ARC-9, Main/Backup Dialer)
|
||||
@ -878,7 +929,45 @@ gES_GlassCockpitConfigArguments =
|
||||
[450] = "%.2f", --PTR-RPE-LVR-FRQRES (ARC-9, Backup 10kHz rotary)
|
||||
[451] = "%.4f", --PTR-RPE-LVR-FRQADJMAIN (ARC-9, Main Frequency Tune)
|
||||
[678] = "%.2f", --PTR-RPE-LVR-FRQMAIN-SEC (ARC-9, Main 100kHz rotary)
|
||||
[452] = "%.2f" --PTR-RPE-LVR-FRQMAIN (ARC-9, Main 10kHz rotary)
|
||||
[452] = "%.2f", --PTR-RPE-LVR-FRQMAIN (ARC-9, Main 10kHz rotary)
|
||||
------------------------------------------------
|
||||
-- External Cargo Equipment
|
||||
[199] = "%1d", --PTR-STKSG-CVR-TACTJET (Tactical Cargo Release Button Cover)
|
||||
[200] = "%1d", --PTR-STKSG-BTN-TACTJET (Tactical Cargo Release Button - Push to release)
|
||||
[197] = "%1d", --PTR-STKSG-CVR-EMRGJET (Emergency Cargo Release Button Cover)
|
||||
[198] = "%1d", --PTR-STKSG-BTN-EMRGJET (Emergency Cargo Release Button - Push to release)
|
||||
[324] = "%1d", --PTR-LSPE-TMB-BRK-OUT (External Cargo Automatic Dropping)
|
||||
------------------------------------------------
|
||||
-- Signal Flares
|
||||
[282] = "%1d", --PTR-LSPE-TMB-ALRMRKT1 (Signal Flares Cassette 1 Power Switch)
|
||||
[283] = "%1d", --PTR-LSPE-TMB-ALRMRKT2 (Signal Flares Cassette 2 Power Switch)
|
||||
[284] = "%1d", --PTR-LSPE-BTN-RCKT11 (Signal Flares Cassette 1 Launch Red Button)
|
||||
[285] = "%1d", --PTR-LSPE-BTN-RCKT12 (Signal Flares Cassette 1 Launch Green Button)
|
||||
[286] = "%1d", --PTR-LSPE-BTN-RCKT13 (Signal Flares Cassette 1 Launch Yellow Button)
|
||||
[287] = "%1d", --PTR-LSPE-BTN-RCKT14 (Signal Flares Cassette 1 Launch White Button)
|
||||
[288] = "%1d", --PTR-LSPE-BTN-RCKT21 (Signal Flares Cassette 2 Launch Red Button)
|
||||
[289] = "%1d", --PTR-LSPE-BTN-RCKT22 (Signal Flares Cassette 2 Launch Green Button)
|
||||
[290] = "%1d", --PTR-LSPE-BTN-RCKT23 (Signal Flares Cassette 2 Launch Yellow Button)
|
||||
[291] = "%1d", --PTR-LSPE-BTN-RCKT24 (Signal Flares Cassette 2 Launch White Button)
|
||||
------------------------------------------------
|
||||
-- SARPP
|
||||
[315] = "%1d", --PTR-LSPE-TMB-CONTR-AUTMAN (SARPP-12 Mode Switch,)
|
||||
------------------------------------------------
|
||||
-- Recorder P-503B
|
||||
[305] = "%1d", --PTR-LSPE-TMB-REC (Recorder P-503B Power Switch)
|
||||
[308] = "%.4f", --PTR-LSPE-LVR-LGTSEL (Recorder P-503B Backlight Brightness Knob)
|
||||
------------------------------------------------
|
||||
-- IFF
|
||||
[304] = "%1d", --"PTR-LSPE-LVR-MODE (IFF Transponder Mode Selector Switch)
|
||||
[301] = "%1d", --PTR-LSPE-TMB-RADIO-WRK (IFF Transponder Device Selector Switch)
|
||||
[300] = "%1d", --PTR-LSPE-TMB-RADIO-MODE12 (IFF Transponder Device Mode Switch)
|
||||
[296] = "%1d", --PTR-LSPE-CVR-EMRG-ERASE (IFF Transponder Erase Button Cover)
|
||||
[297] = "%1d", --PTR-LSPE-BTN-EMRG-ERASE (IFF Transponder Erase Button)
|
||||
[298] = "%1d", --PTR-LSPE-CVR-EMRG-MAYDAY (IFF Transponder Disaster Switch Cover)
|
||||
[299] = "%1d", --PTR-LSPE-TMB-EMRG-MAYDAY (IFF Transponder Disaster Switch)
|
||||
------------------------------------------------
|
||||
-- jump descent siren
|
||||
[323] = "%1d", --PTR-LSPE-TMB-AIR-SIREN (Alarm Bell Button)
|
||||
}
|
||||
|
||||
-----------------------------
|
||||
@ -1315,4 +1404,4 @@ function ProcessHARDWAREConfigLowImportance(mainPanelDevice)
|
||||
--WriteToLog(ltmp2..' (metatable): '..dump(getmetatable(ltmp1)))
|
||||
end
|
||||
]]
|
||||
end
|
||||
end
|
||||
|
||||
@ -7,34 +7,33 @@ gES_GlassCockpitConfigEveryFrameArguments =
|
||||
{
|
||||
-- arguments for export every frame
|
||||
-- based of "mainpanel_init.lua"
|
||||
|
||||
[225] = "%.4f", -- Canopy
|
||||
[223] = "%.4f", -- LeftCanopyLever
|
||||
[222] = "%.4f", -- RightCanopyLever
|
||||
[224] = "%.4f", -- AftCanopyLever
|
||||
[14] = "%.4f", -- Variometer
|
||||
[28] = "%.4f", -- Altimeter_km
|
||||
[29] = "%.4f", -- Altimeter_m
|
||||
[31] = "%.4f", -- Altimeter_Pressure
|
||||
[15] = "%.4f", -- CLOCK_currtime_hours
|
||||
[16] = "%.4f", -- CLOCK_currtime_minutes
|
||||
[22] = "%.4f", -- CLOCK_flight_time_meter_status
|
||||
[18] = "%.4f", -- CLOCK_flight_hours
|
||||
[19] = "%.4f", -- CLOCK_flight_minutes
|
||||
[20] = "%.4f", -- CLOCK_seconds_meter_time_minutes
|
||||
[17] = "%.4f", -- CLOCK_seconds_meter_time_seconds
|
||||
[4] = "%.4f", -- IAS
|
||||
[5] = "%.4f", -- TAS
|
||||
[27] = "%.4f", -- MACH
|
||||
[6] = "%.4f", -- AGK_47B_roll
|
||||
[7] = "%.4f", -- AGK_47B_pitch
|
||||
[11] = "%.4f", -- AGK_47B_failure_flag
|
||||
[8] = "%.4f", -- AGK_47B_sideslip
|
||||
[9] = "%.4f", -- AGK_47B_turn
|
||||
[10] = "%.4f", -- AGK_47B_horizon
|
||||
[35] = "%.4f", -- PRV_46_RAlt
|
||||
[32] = "%.4f", -- PDK-45 HeadingScale
|
||||
[33] = "%.4f", -- PDK-45 Heading
|
||||
[14] = "%.4f", -- Variometer {-75.0,-60.0,-45.0,-30.0,-15.0,-10.0,-5.0,0.0,5.0,10.0,15.0,30.0,45.0,60.0,75.0} {0.0,0.075,0.151,0.24,0.352,0.401,0.448,0.5,0.553,0.6,0.649,0.76,0.848,0.925,1.0}
|
||||
[28] = "%.4f", -- Altimeter_km {0.0, 10.0}{0.0, 1.0}
|
||||
[29] = "%.4f", -- Altimeter_m {0.0, 1000.0}{0.0, 1.0}
|
||||
[31] = "%.4f", -- Altimeter_Pressure {670, 790}{0.0, 1.0}
|
||||
[15] = "%.4f", -- CLOCK_currtime_hours {0.0, 12.0}{0.0, 1.0}
|
||||
[16] = "%.4f", -- CLOCK_currtime_minutes {0.0, 60.0}{0.0, 1.0}
|
||||
[22] = "%.4f", -- CLOCK_flight_time_meter_status {0.0, 0.2}{0.5, 0.0}
|
||||
[18] = "%.4f", -- CLOCK_flight_hours {0.0, 12.0}{0.0, 1.0}
|
||||
[19] = "%.4f", -- CLOCK_flight_minutes {0.0, 60.0}{0.0, 1.0}
|
||||
[20] = "%.4f", -- CLOCK_seconds_meter_time_minutes {0.0, 60.0}{0.0, 1.0}
|
||||
[17] = "%.4f", -- CLOCK_seconds_meter_time_seconds {0.0, 60.0}{0.0, 1.0}
|
||||
[4] = "%.4f", -- IAS {100.0, 1100.0}{0.0, 1.0}
|
||||
[5] = "%.4f", -- TAS {100.0, 1100.0}{0.0, 1.0}
|
||||
[27] = "%.4f", -- MACH {0.0,0.3,0.95}{0.12,0.215,1.0}
|
||||
[6] = "%.4f", -- AGK_47B_roll {-1.0, 1.0}
|
||||
[7] = "%.4f", -- AGK_47B_pitch {1.0, -1.0}
|
||||
[11] = "%.4f", -- AGK_47B_failure_flag {0.0, 1.0}
|
||||
[8] = "%.4f", -- AGK_47B_sideslip {-1.0, 1.0}
|
||||
[9] = "%.4f", -- AGK_47B_turn {-1.0, 1.0}
|
||||
[10] = "%.4f", -- AGK_47B_horizon {-1.0, 1.0}
|
||||
[35] = "%.4f", -- PRV_46_RAlt {-10.0, 0.0, 1200.0}{-1.0, 0.0, 1.0}
|
||||
[32] = "%.4f", -- PDK-45 HeadingScale {0.0, 1.0}
|
||||
[33] = "%.4f", -- PDK-45 Heading {0.0, 1.0}
|
||||
-- Weapon System
|
||||
[95] = "%.4f", -- N37D_Ready_Lamp
|
||||
[93] = "%.4f", -- NR23_TOP_Ready_Lamp
|
||||
@ -42,85 +41,85 @@ gES_GlassCockpitConfigEveryFrameArguments =
|
||||
[100] = "%.4f", -- Tactical_Rel_Lamp
|
||||
[98] = "%.4f", -- LEFT_BOMB_Lamp
|
||||
[99] = "%.4f", -- RIGHT_BOMB_Lamp
|
||||
-- electric system
|
||||
[83] = "%.4f", -- VoltAmperMeter
|
||||
[244] = "%.4f", -- lamps_lightness
|
||||
-- hydraulic system
|
||||
[168] = "%.4f", -- HydraulicPressureMain
|
||||
[139] = "%.4f", -- HydraulicPressureGain
|
||||
[169] = "%.4f", -- HydraulicPressureAirFlaps
|
||||
[165] = "%.4f", -- HydraulicPressureAirGears
|
||||
[172] = "%.4f", -- HydraulicPressureMainAir
|
||||
-- electric system
|
||||
[83] = "%.4f", -- VoltAmperMeter {-1.0, 0.0, 3.0}{-1.0, 0.0, 1.0}
|
||||
[244] = "%.4f", -- lamps_lightness
|
||||
-- hydraulic system
|
||||
[168] = "%.4f", -- HydraulicPressureMain {0.0, 250.0}{0.0, 1.0}
|
||||
[139] = "%.4f", -- HydraulicPressureGain {0.0, 150.0}{0.0, 1.0}
|
||||
[169] = "%.4f", -- HydraulicPressureAirFlaps {0.0, 80.0}{0.0, 1.0}
|
||||
[165] = "%.4f", -- HydraulicPressureAirGears {0.0, 80.0}{0.0, 1.0}
|
||||
[172] = "%.4f", -- HydraulicPressureMainAir {0.0, 250.0}{0.0, 1.0}
|
||||
-- gear system
|
||||
[121] = "%.4f", -- LeftBrakePressure
|
||||
[122] = "%.4f", -- RightBrakePressure
|
||||
[121] = "%.4f", -- LeftBrakePressure {0.0, 12.0}{0.0, 1.0}
|
||||
[122] = "%.4f", -- RightBrakePressure {0.0, 12.0}{0.0, 1.0}
|
||||
-- fuel system
|
||||
[47] = "%.4f", -- FuelQuantity
|
||||
[47] = "%.4f", -- FuelQuantity {-100.0,0.0,100.0,200.0,300.0,400.0,500.0,600.0,700.0,800.0,1050.0}{0.0,0.047,0.136,0.22,0.38,0.52,0.631,0.755,0.869,0.921,1.0}
|
||||
-- air system
|
||||
[188] = "%.4f", -- CanopyAirValveIndication
|
||||
[39] = "%.4f", -- CockpitAltitude
|
||||
[40] = "%.4f", -- PressureDifference
|
||||
[39] = "%.4f", -- CockpitAltitude {0.0,8000.0} {0.008,1.0}
|
||||
[40] = "%.4f", -- PressureDifference {-0.04,0.0,0.6} {0.0,0.243,1.0}
|
||||
-- oxygen system
|
||||
[48] = "%.4f", -- OxygenPressure
|
||||
[48] = "%.4f", -- OxygenPressure {0.0,250.0} {0.0,1.0}
|
||||
[60] = "%.4f", -- FlowBlinker
|
||||
[49] = "%.4f", -- FlowPressure
|
||||
[49] = "%.4f", -- FlowPressure {0.0,150.0,170.0} {0.0,0.9,1.0}
|
||||
-- Engine
|
||||
[42] = "%.4f", -- EngineTachometer
|
||||
[41] = "%.4f", -- EngineTemperature
|
||||
[45] = "%.4f", -- OilTemperature
|
||||
[44] = "%.4f", -- OilPressure
|
||||
[43] = "%.4f", -- EngineFuelPressure
|
||||
[46] = "%.4f", -- FuelPressure
|
||||
-- radio compass
|
||||
[238] = "%.4f", -- ARC5_Band
|
||||
[42] = "%.4f", -- EngineTachometer {0.0,15000.0} {0.0,1.0}
|
||||
[41] = "%.4f", -- EngineTemperature {300.0,900.0} {0.0,1.0}
|
||||
[45] = "%.4f", -- OilTemperature {-50.0,150.0} {0.0,1.0}
|
||||
[44] = "%.4f", -- OilPressure {0.0, 10.0} {0.0,1.0}
|
||||
[43] = "%.4f", -- EngineFuelPressure {0.0,100.0} {0.0,1.0}
|
||||
[46] = "%.4f", -- FuelPressure {0.0,10.0} {0.0,1.0}
|
||||
-- radio compass
|
||||
[238] = "%.4f", -- ARC5_Band {0.0, 2.0} {0.0, 0.4}
|
||||
[176] = "%.4f", -- ARC5_TuningMeter
|
||||
[175] = "%.4f", -- ARC5_Tuning
|
||||
[175] = "%.4f", -- ARC5_Tuning {0.0, 0.2} {0.0, 1.0}
|
||||
[38] = "%.4f", -- ARC5_Bearing
|
||||
[239] = "%.4f", -- ARC5_FreqScale
|
||||
-- Radio RSI-6K
|
||||
[239] = "%.4f", -- ARC5_FreqScale {0.0,0.5,1.0,1.5,2.0,2.5,3.0} {0.0,0.0695,0.14,0.2865,0.43,0.7155,1.0}
|
||||
-- Radio RSI-6K
|
||||
[235] = "%.4f", -- RadioAntennaPower
|
||||
[128] = "%.4f", -- RadioReceiverKnob
|
||||
[127] = "%.4f", -- RadioReceiverInd
|
||||
[144] = "%.4f", -- RadioReceiverGauge
|
||||
[128] = "%.4f", -- RadioReceiverKnob {0.0, 0.2}{0.0, 1.0}
|
||||
[127] = "%.4f", -- RadioReceiverInd {0.0, 1.0}{0.036, 0.961}
|
||||
[144] = "%.4f", -- RadioReceiverGauge {0.0, 1.0}{0.026, 0.957}
|
||||
[245] = "%.4f", -- ASP_3N_Range
|
||||
-- Lamps
|
||||
-- Lamps
|
||||
-- electric system
|
||||
[57] = "%.4f", -- lamp_GeneratorOff
|
||||
[58] = "%.4f", -- lamp_Ignition
|
||||
[57] = "%.4f", -- lamp_GeneratorOff {-1.0, 1.0}{-1.0, 1.0}
|
||||
[58] = "%.4f", -- lamp_Ignition {-1.0, 1.0}{-1.0, 1.0}
|
||||
-- power plant
|
||||
[119] = "%.4f", -- lamp_IsolatingValve
|
||||
[119] = "%.4f", -- lamp_IsolatingValve {-1.0, 1.0}{-1.0, 1.0}
|
||||
-- gear system
|
||||
[75] = "%.4f", -- lamp_LeftGearExt
|
||||
[74] = "%.4f", -- lamp_LeftGearRet
|
||||
[79] = "%.4f", -- lamp_RightGearExt
|
||||
[78] = "%.4f", -- lamp_RightGearRet
|
||||
[77] = "%.4f", -- lamp_NoseGearExt
|
||||
[76] = "%.4f", -- lamp_NoseGearRet
|
||||
[53] = "%.4f", -- lamp_ExtendGears
|
||||
-- fuel system
|
||||
[56] = "%.4f", -- lamp_Remain300
|
||||
[50] = "%.4f", -- lamp_AftEmpty
|
||||
[52] = "%.4f", -- lamp_DropTanks
|
||||
[51] = "%.4f", -- lamp_BoostPressure
|
||||
-- control system
|
||||
[113] = "%.4f", -- lamp_TrimmerNeutral
|
||||
[59] = "%.4f", -- lamp_FlapsExt
|
||||
[124] = "%.4f", -- lamp_AirBrakeExt
|
||||
-- fire extinguisher system
|
||||
[135] = "%.4f", -- lamp_FireDetected
|
||||
[75] = "%.4f", -- lamp_LeftGearExt {-1.0, 1.0}{-1.0, 1.0}
|
||||
[74] = "%.4f", -- lamp_LeftGearRet {-1.0, 1.0}{-1.0, 1.0}
|
||||
[79] = "%.4f", -- lamp_RightGearExt {-1.0, 1.0}{-1.0, 1.0}
|
||||
[78] = "%.4f", -- lamp_RightGearRet {-1.0, 1.0}{-1.0, 1.0}
|
||||
[77] = "%.4f", -- lamp_NoseGearExt {-1.0, 1.0}{-1.0, 1.0}
|
||||
[76] = "%.4f", -- lamp_NoseGearRet {-1.0, 1.0}{-1.0, 1.0}
|
||||
[53] = "%.4f", -- lamp_ExtendGears {-1.0, 1.0}{-1.0, 1.0}
|
||||
-- fuel system
|
||||
[56] = "%.4f", -- lamp_Remain300 {-1.0, 1.0}{-1.0, 1.0}
|
||||
[50] = "%.4f", -- lamp_AftEmpty {-1.0, 1.0}{-1.0, 1.0}
|
||||
[52] = "%.4f", -- lamp_DropTanks {-1.0, 1.0}{-1.0, 1.0}
|
||||
[51] = "%.4f", -- lamp_BoostPressure {-1.0, 1.0}{-1.0, 1.0}
|
||||
-- control system
|
||||
[113] = "%.4f", -- lamp_TrimmerNeutral {-1.0, 1.0}{-1.0, 1.0}
|
||||
[59] = "%.4f", -- lamp_FlapsExt {-1.0, 1.0}{-1.0, 1.0}
|
||||
[124] = "%.4f", -- lamp_AirBrakeExt {-1.0, 1.0}{-1.0, 1.0}
|
||||
-- fire extinguisher system
|
||||
[135] = "%.4f", -- lamp_FireDetected {-1.0, 1.0}{-1.0, 1.0}
|
||||
-- ARC-5
|
||||
[183] = "%.4f", -- lamp_ARC_5
|
||||
[218] = "%.4f", -- light_ARC_5_scale
|
||||
[183] = "%.4f", -- lamp_ARC_5 {-1.0, 1.0}{-1.0, 1.0}
|
||||
[218] = "%.4f", -- light_ARC_5_scale {-1.0, 1.0}{-1.0, 1.0}
|
||||
-- MRP-48P
|
||||
[54] = "%.4f", -- lamp_Marker
|
||||
-- Light System
|
||||
[226] = "%.4f", -- light_LeftUV
|
||||
[215] = "%.4f", -- light_CenterUV
|
||||
[227] = "%.4f", -- light_RightUV
|
||||
[217] = "%.4f", -- light_Panels
|
||||
[216] = "%.4f", -- light_AuxLeftPanel
|
||||
-- Gun Camera
|
||||
[55] = "%.4f" -- lamp_GunCamera
|
||||
[54] = "%.4f", -- lamp_Marker {-1.0, 1.0}{-1.0, 1.0}
|
||||
-- Light System
|
||||
[226] = "%.4f", -- light_LeftUV {-1.0, 1.0}{-1.0, 1.0}
|
||||
[215] = "%.4f", -- light_CenterUV {-1.0, 1.0}{-1.0, 1.0}
|
||||
[227] = "%.4f", -- light_RightUV {-1.0, 1.0}{-1.0, 1.0}
|
||||
[217] = "%.4f", -- light_Panels {-1.0, 1.0}{-1.0, 1.0}
|
||||
[216] = "%.4f", -- light_AuxLeftPanel {-1.0, 1.0}{-1.0, 1.0}
|
||||
-- Gun Camera
|
||||
[55] = "%.4f" -- lamp_GunCamera {-1.0, 1.0}{-1.0, 1.0}
|
||||
}
|
||||
gES_GlassCockpitConfigArguments =
|
||||
{
|
||||
@ -131,6 +130,7 @@ gES_GlassCockpitConfigArguments =
|
||||
|
||||
-- Cockpit mechanics
|
||||
[221] = "%.4f", -- Emergency Canopy Jettison - Pull to jettison
|
||||
[223] = "%.4f", -- Left Canopy Lever, OPEN/CLOSE
|
||||
[222] = "%.4f", -- Right Canopy Lever, OPEN/CLOSE
|
||||
[224] = "%.4f", -- Aft Canopy Lever, OPEN/CLOSE
|
||||
-- Control system
|
||||
@ -223,8 +223,10 @@ gES_GlassCockpitConfigArguments =
|
||||
[34] = "%.4f", -- Heading Knob
|
||||
[61] = "%.4f", -- Fast Slave Button
|
||||
-- CLOCK
|
||||
[23] = "%.4f", -- AChS-1 Cockpit Chronograph Left Knob
|
||||
[25] = "%.4f", -- AChS-1 Cockpit Chronograph Right Knob
|
||||
[23] = "%.4f", -- AChS-1 Cockpit Chronograph Left Knob (button)
|
||||
[24] = "%.4f", -- AChS-1 Cockpit Chronograph Left Knob (rotary)
|
||||
[25] = "%.4f", -- AChS-1 Cockpit Chronograph Right Knob (button)
|
||||
[26] = "%.4f", -- AChS-1 Cockpit Chronograph Right Knob (rotary)
|
||||
-- Weapon System
|
||||
[92] = "%.4f", -- N-37D Cannon Reload Button
|
||||
[90] = "%.4f", -- NR-23 (Top) Cannon Reload Button
|
||||
@ -235,17 +237,17 @@ gES_GlassCockpitConfigArguments =
|
||||
--ASP-3N Gunsight
|
||||
[101] = "%.4f", -- ASP-3N Gunsight Mode, GYRO/FIXED
|
||||
[106] = "%.4f", -- ASP-3N Gunsight Fixed Reticle Mask Lever
|
||||
[103] = "%.4f", -- ASP-3N Gunsight Fixed Reticle Mask Lever
|
||||
[102] = "%.4f", -- ASP-3N Gunsight Brightness Knob
|
||||
[201] = "%.4f", -- ASP-3N Gunsight Target Distance
|
||||
[103] = "%.4f", -- ASP-3N Gunsight Fixed Reticle Mask Lever (rotary)
|
||||
[102] = "%.4f", -- ASP-3N Gunsight Brightness Knob (rotary)
|
||||
[201] = "%.4f", -- ASP-3N Gunsight Target Distance (rotary)
|
||||
[105] = "%.4f", -- ASP-3N Gunsight Color Filter, ON/OFF
|
||||
-- ARC-5 radio compass
|
||||
[180] = "%.4f", -- ARC-5 Audio Volume Control
|
||||
[180] = "%.4f", -- ARC-5 Audio Volume Control (rotary)
|
||||
[177] = "%.4f", -- ARC-5 Frequency Band Switch
|
||||
[174] = "%.4f", -- ARC-5 Function Selector Switch, OFF/COMP/ANT./LOOP
|
||||
[178] = "%.4f", -- ARC-5 LOOP L-R Switch
|
||||
[175] = "%.4f", -- ARC-5 Tuning Crank
|
||||
[181] = "%.4f", -- ARC-5 Scale Light Control
|
||||
--[] = "%.4f", -- ARC-5 Tuning Crank (rotary)
|
||||
[181] = "%.4f", -- ARC-5 Scale Light Control (rotary)
|
||||
[173] = "%.4f", -- ARC-5 TLG-TLF Switch
|
||||
[182] = "%.4f", -- ARC-5 Take Control Button
|
||||
[123] = "%.4f", -- ARC-5 Near/Far NDB Switch
|
||||
@ -253,12 +255,12 @@ gES_GlassCockpitConfigArguments =
|
||||
[147] = "%.4f", -- ARC-5 NDB 2 Switch
|
||||
[148] = "%.4f", -- ARC-5 NDB 3 Switch
|
||||
-- RSI-6K radio
|
||||
[126] = "%.4f", -- RSI-6K Audio Volume Control
|
||||
[232] = "%.4f", -- RSI-6K Wave Control
|
||||
[230] = "%.4f", -- RSI-6K Antenna Control
|
||||
[126] = "%.4f", -- RSI-6K Audio Volume Control (rotary)
|
||||
[232] = "%.4f", -- RSI-6K Wave Control (rotary)
|
||||
[230] = "%.4f", -- RSI-6K Antenna Control (rotary)
|
||||
[231] = "%.4f", -- RSI-6K Wave Lock
|
||||
[233] = "%.4f", -- RSI-6K Antenna Lock
|
||||
[128] = "%.4f", -- RSI-6K Receiver Tuning
|
||||
[128] = "%.4f", -- RSI-6K Receiver Tuning (rotary)
|
||||
[140] = "%.4f", -- RSI-6K Receive/ARC
|
||||
[240] = "%.4f", -- RSI-6K Forced Mode, ON/OFF
|
||||
[202] = "%.4f", -- Microphone Button
|
||||
|
||||
@ -594,14 +594,14 @@ function ProcessGlassCockpitDCSConfigHighImportance(mainPanelDevice)
|
||||
-- HSI
|
||||
-- heading; requiredHeading; bearingNeedle; warningFlagG; warningFlagK; glide; side;
|
||||
-- 111; 68; 590; 588; 587; glide; side;
|
||||
SendData(2001, string.format("%0.4f;%0.4f;%0.4f;%0.1f;%0.1f",
|
||||
SendData(2001, string.format("%0.4f;%0.4f;%0.4f;%0.1f;%0.1f;%0.4f;%0.4f",
|
||||
mainPanelDevice:get_argument_value(111),
|
||||
mainPanelDevice:get_argument_value(68),
|
||||
mainPanelDevice:get_argument_value(590),
|
||||
mainPanelDevice:get_argument_value(588),
|
||||
mainPanelDevice:get_argument_value(587)))
|
||||
-- mainPanelDevice:get_argument_value(???),
|
||||
-- mainPanelDevice:get_argument_value(???)))
|
||||
((mainPanelDevice:get_argument_value(36) + 0.25) - mainPanelDevice:get_argument_value(111)), --Needle is wrong
|
||||
mainPanelDevice:get_argument_value(588), -- RSBN_NPP_glisada_blinker
|
||||
mainPanelDevice:get_argument_value(587), -- RSBN_NPP_kurs_blinker
|
||||
mainPanelDevice:get_argument_value(589), -- RSBN_NPP_glisada_needle
|
||||
mainPanelDevice:get_argument_value(590))) -- RSBN_NPP_kurs_needle
|
||||
-- Altimeter
|
||||
-- altituteMeter; altituteKM; baroPressure
|
||||
-- 104; 112; 655;
|
||||
@ -610,11 +610,19 @@ function ProcessGlassCockpitDCSConfigHighImportance(mainPanelDevice)
|
||||
mainPanelDevice:get_argument_value(112),
|
||||
mainPanelDevice:get_argument_value(655)))
|
||||
-- ADI
|
||||
-- bank; pitch; steeringWarningFlag attitudeWarningFlag; desiredBank; desirePitch;
|
||||
-- airSpeedDeviation; trackDeviation;heightDeviation;sideslip;
|
||||
SendData(2003, string.format("%0.4f;%0.4f",
|
||||
mainPanelDevice:get_argument_value(108),
|
||||
mainPanelDevice:get_argument_value(109)))
|
||||
-- bank;pitch;sideslip;RSBN_KPP_tangaz_blinker(Flag_L);RSBN_KPP_kren_blinker(Flag_R);
|
||||
-- desiredBank;desirePitch;airSpeedDeviation;trackDeviation;heightDeviation;
|
||||
SendData(2003, string.format("%0.4f;%0.4f;%0.4f;%0.4f;%0.4f;%0.4f;%0.4f;%0.4f;%0.4f;%0.4f",
|
||||
mainPanelDevice:get_argument_value(108), -- bank
|
||||
mainPanelDevice:get_argument_value(109), -- pitch
|
||||
mainPanelDevice:get_argument_value(31), -- sideslip
|
||||
mainPanelDevice:get_argument_value(568), -- RSBN_KPP_tangaz_blinker(Flag_L)
|
||||
mainPanelDevice:get_argument_value(567), -- RSBN_KPP_kren_blinker(Flag_R)
|
||||
(mainPanelDevice:get_argument_value(565) * 3), -- RSBN_KPP_kurs_director
|
||||
(mainPanelDevice:get_argument_value(566) * 3), -- RSBN_KPP_glisada_director (maybe multiply by 3)
|
||||
0, -- ?
|
||||
mainPanelDevice:get_argument_value(590), -- RSBN_NPP_kurs_needle
|
||||
mainPanelDevice:get_argument_value(589))) -- RSBN_NPP_glisada_needle
|
||||
-- HydraulicPressure
|
||||
-- PRIMARY_GIDRO_Pressure_needle, SECONDARY_GIDRO_Pressure_needle
|
||||
-- 126; 125;
|
||||
|
||||
@ -15,35 +15,35 @@ gES_GlassCockpitConfigEveryFrameArguments =
|
||||
[129] = "%1d", <- decimal number
|
||||
]]
|
||||
-- Flight Instruments
|
||||
[11] = "%.4f", -- AirspeedNeedle
|
||||
[29] = "%.4f", -- Variometer
|
||||
[11] = "%.4f", -- AirspeedNeedle {0,50,100,150,200,250,300,350,400,450,500,550,600,650,700} {0.0,0.05,0.10,0.15,0.2,0.25,0.3,0.35,0.4,0.45,0.5,0.55,0.6,0.65,0.7}
|
||||
[29] = "%.4f", -- Variometer {-6000,-4000,-2000,2000,4000,6000} {-0.6,-0.4,-0.2,0.2,0.4,0.6}
|
||||
-- Altimeter
|
||||
[97] = "%.4f", -- Altimeter_Pressure
|
||||
[96] = "%.41f", -- Altimeter_10000_footPtr
|
||||
[24] = "%.4f", -- Altimeter_1000_footPtr
|
||||
[25] = "%.4f", -- Altimeter_100_footPtr
|
||||
[97] = "%.4f", -- Altimeter_Pressure {28.1, 31.0}{0.0, 1.0}
|
||||
[96] = "%.41f", -- Altimeter_10000_footPtr {0.0, 100000.0}{0.0, 1.0}
|
||||
[24] = "%.4f", -- Altimeter_1000_footPtr {0.0, 10000.0}{0.0, 1.0}
|
||||
[25] = "%.4f", -- Altimeter_100_footPtr{0.0, 1000.0}{0.0, 1.0}
|
||||
-- Artificial horizon
|
||||
[15] = "%.4f", -- AHorizon_Pitch
|
||||
[14] = "%.4f", -- AHorizon_Bank
|
||||
[16] = "%.1f", -- AHorizon_PitchShift
|
||||
[20] = "%.1f", -- AHorizon_Caged
|
||||
[15] = "%.4f", -- AHorizon_Pitch {1.0, -1.0}
|
||||
[14] = "%.4f", -- AHorizon_Bank {1.0, -1.0}
|
||||
[16] = "%.1f", -- AHorizon_PitchShift {-1.0, 1.0}
|
||||
[20] = "%.1f", -- AHorizon_Caged {0.0, 1.0}
|
||||
-- directional gyro
|
||||
[12] = "%.4f", -- GyroHeading
|
||||
-- turn indicator
|
||||
[27] = "%.4f", -- TurnNeedle
|
||||
[28] = "%.4f", -- Slipball
|
||||
[27] = "%.4f", -- TurnNeedle {-1.0, 1.0}
|
||||
[28] = "%.4f", -- Slipball {-1.0, 1.0}
|
||||
-- oxygen pressure indicator
|
||||
[34] = "%.4f", -- Oxygen_Pressure
|
||||
[34] = "%.4f", -- Oxygen_Pressure {0.0, 500.0} {0.0, 1.0}
|
||||
[33] = "%.4f", -- Oxygen_Flow_Blinker
|
||||
-- fuel system
|
||||
[155] = "%.4f", -- Fuel_Tank_Left
|
||||
[156] = "%.4f", -- Fuel_Tank_Right
|
||||
[160] = "%.4f", -- Fuel_Tank_Fuselage
|
||||
[32] = "%.4f", -- Fuel_Pressure
|
||||
[155] = "%.4f", -- Fuel_Tank_Left {0.0,5.0,15.0,30.0,45.0,60.0,75.0,92.0} {0.0,0.2,0.36,0.52,0.65,0.77,0.92,1.0}
|
||||
[156] = "%.4f", -- Fuel_Tank_Right {0.0,5.0,15.0,30.0,45.0,60.0,75.0,92.0} {0.0,0.2,0.36,0.52,0.65,0.77,0.92,1.0}
|
||||
[160] = "%.4f", -- Fuel_Tank_Fuselage {0.0,10.0,20.0,30.0,40.0,50.0,60.0,70.0,80.0,85.0} {0.0,0.12,0.28,0.40,0.51,0.62,0.72,0.83,0.96,1.0}
|
||||
[32] = "%.4f", -- Fuel_Pressure {0.0, 25.0} {0.0, 1.0}
|
||||
-- A-11 clock
|
||||
[4] = "%.4f", -- CLOCK_currtime_hours
|
||||
[5] = "%.4f", -- CLOCK_currtime_minutes
|
||||
[6] = "%.4f", -- CLOCK_currtime_seconds
|
||||
[4] = "%.4f", -- CLOCK_currtime_hours {0.0, 12.0}{0.0, 1.0}
|
||||
[5] = "%.4f", -- CLOCK_currtime_minutes {0.0, 60.0}{0.0, 1.0}
|
||||
[6] = "%.4f", -- CLOCK_currtime_seconds {0.0, 60.0}{0.0, 1.0}
|
||||
-- AN5730 remote compass
|
||||
[1] = "%.4f", -- CompassHeading
|
||||
[2] = "%.4f", -- CommandedCourse
|
||||
@ -57,57 +57,60 @@ gES_GlassCockpitConfigEveryFrameArguments =
|
||||
[125] = "%.1f", -- D_channel_light
|
||||
[126] = "%.1f", -- Transmit_light
|
||||
-- hydraulic pressure
|
||||
[78] = "%.4f", -- Hydraulic_Pressure
|
||||
[78] = "%.4f", -- Hydraulic_Pressure {0.0, 2000.0} {0.0, 1.0}
|
||||
-- Landing gears handle
|
||||
[150] = "%.4f", -- Landing_Gear_Handle
|
||||
[151] = "%.4f", -- Landing_Gear_Handle_Indoor
|
||||
[80] = "%.1f", -- LandingGearGreenLight
|
||||
[82] = "%.1f", -- LandingGearRedLight
|
||||
-- gauges
|
||||
[10] = "%.4f", -- Manifold_Pressure
|
||||
[23] = "%.4f", -- Engine_RPM
|
||||
[9] = "%.4f", -- Vacuum_Suction
|
||||
[21] = "%.4f", -- Carb_Temperature
|
||||
[22] = "%.4f", -- Coolant_Temperature
|
||||
[30] = "%.4f", -- Oil_Temperature
|
||||
[31] = "%.4f", -- Oil_Pressure
|
||||
[10] = "%.4f", -- Manifold_Pressure {10.0, 75.0} {0.0, 1.0}
|
||||
[23] = "%.4f", -- Engine_RPM {0.0, 4500.0} {0.0, 1.0}
|
||||
[9] = "%.4f", -- Vacuum_Suction {0.0, 10.0} {0.0, 1.0}
|
||||
[21] = "%.4f", -- Carb_Temperature {-80, 150} {-0, 1}
|
||||
[22] = "%.4f", -- Coolant_Temperature {-80, 150} {-0, 1}
|
||||
[30] = "%.4f", -- Oil_Temperature {0.0, 100.0} {0, 1.0}
|
||||
[31] = "%.4f", -- Oil_Pressure {0.0, 200.0} {0, 1.0}
|
||||
[164] = "%.1f", -- Left_Fluor_Light
|
||||
[165] = "%.1f", -- Right_Fluor_Light
|
||||
[59] = "%.1f", -- Hight_Blower_Lamp
|
||||
-- Trimmer
|
||||
[170] = "%.4f", -- Aileron_Trimmer
|
||||
[172] = "%.4f", -- Rudder_Trimmer
|
||||
[171] = "%.4f", -- Elevator_Trimmer
|
||||
[170] = "%.4f", -- Aileron_Trimmer {-1.0, 1.0}
|
||||
[172] = "%.4f", -- Rudder_Trimmer {-1.0, 1.0}
|
||||
[171] = "%.4f", -- Elevator_Trimmer {-1.0, 1.0}
|
||||
[174] = "%.4f", -- Control_Lock_Bracket
|
||||
[175] = "%.4f", -- Accelerometer_main
|
||||
[177] = "%.4f", -- Accelerometer_min
|
||||
[178] = "%.4f", -- Accelerometer_max
|
||||
[101] = "%.4f", -- Ammeter
|
||||
[175] = "%.4f", -- Accelerometer_main {-5.0, 12.0} {0.0, 1.0}
|
||||
[177] = "%.4f", -- Accelerometer_min {-5.0, 12.0} {0.0, 1.0}
|
||||
[178] = "%.4f", -- Accelerometer_max {-5.0, 12.0} {0.0, 1.0}
|
||||
[101] = "%.4f", -- Ammeter {0.0, 150.0} {0.0, 1.0}
|
||||
-- light
|
||||
[185] = "%.1f", -- Left_cockpit_light
|
||||
[186] = "%.1f", -- Right_cockpit_light
|
||||
[190] = "%.4f", -- warEmergencyPowerLimWire
|
||||
-------------
|
||||
[181] = "%.4f", -- Panel_Shake_Z
|
||||
[180] = "%.4f", -- Panel_Shake_Y
|
||||
[189] = "%.4f", -- Panel_Rot_X
|
||||
[162] = "%.1f", -- Canopy_Trucks
|
||||
[163] = "%.1f", -- Canopy_Visibility
|
||||
--[181] = "%.4f", -- Panel_Shake_Z
|
||||
--[180] = "%.4f", -- Panel_Shake_Y
|
||||
--[189] = "%.4f", -- Panel_Rot_X
|
||||
--[162] = "%.1f", -- Canopy_Trucks
|
||||
--[163] = "%.1f", -- Canopy_Visibility
|
||||
-- Stick
|
||||
[50] = "%.4f", -- StickPitch
|
||||
[51] = "%.4f", -- StickBank
|
||||
--[50] = "%.4f", -- StickPitch
|
||||
--[51] = "%.4f", -- StickBank
|
||||
-- RudderPedals
|
||||
[54] = "%.4f", -- RudderPedals
|
||||
[55] = "%.4f", -- Left_Wheel_Brake
|
||||
[56] = "%.4f", -- Right_Wheel_Brake
|
||||
--[54] = "%.4f", -- RudderPedals
|
||||
--[55] = "%.4f", -- Left_Wheel_Brake
|
||||
--[56] = "%.4f", -- Right_Wheel_Brake
|
||||
-- K-14 gunsight
|
||||
[36] = "%.4f", -- sightRange
|
||||
[188] = "%.4f", -- K_14_Shake_Z
|
||||
[187] = "%.4f", -- K_14_Shake_Y
|
||||
--[188] = "%.4f", -- K_14_Shake_Z
|
||||
--[187] = "%.4f", -- K_14_Shake_Y
|
||||
-------------
|
||||
[45] = "%.4f", -- ThrottleTwistGrip
|
||||
--[45] = "%.4f", -- ThrottleTwistGrip
|
||||
-------------
|
||||
[77] = "%.4f" -- Rocket_Counter
|
||||
[77] = "%.4f", -- Rocket_Counter
|
||||
-------------
|
||||
--[413] = "%.1f", -- WindShieldDamages
|
||||
--[412] = "%.1f", -- WindShieldOil
|
||||
}
|
||||
|
||||
gES_GlassCockpitConfigArguments =
|
||||
@ -128,31 +131,32 @@ gES_GlassCockpitConfigArguments =
|
||||
[110] = "%d", -- Amber Recognition Light Key/Off/Steady
|
||||
[111] = "%d", -- Recognition Lights Key
|
||||
[112] = "%d", -- Circuit Protectors Reset
|
||||
[100] = "%d", -- Right Fluorescent Light
|
||||
[90] = "%d", -- Left Fluorescent Light
|
||||
[100] = "%.4f", -- Right Fluorescent Light (rotary)
|
||||
[90] = "%.4f", -- Left Fluorescent Light (rotary)
|
||||
-- Flight Instrument panel
|
||||
[3] = "%.4f", -- Course Set
|
||||
[179] = "%.4f", -- Heading Set/Cage
|
||||
[13] = "%d", -- Heading Set/Cage Button
|
||||
[17] = "%.4f", -- Pitch Adjustment
|
||||
[19] = "%.4f", -- Cage
|
||||
[18] = "%d", -- Cage Button
|
||||
[8] = "%d", -- Winding/Adjustment Clock ??
|
||||
[7] = "%d", -- Winding/Adjustment Clock ??
|
||||
[26] = "%.4f", -- Set Pressure
|
||||
[3] = "%.4f", -- Course Set (rotary)
|
||||
[13] = "%.4f", -- Heading Set/Cage (rotary)
|
||||
[179] = "%d", -- Heading Set/Cage Button
|
||||
[17] = "%.4f", -- Pitch Adjustment (rotary)
|
||||
[18] = "%.4f", -- Cage (rotary)
|
||||
[19] = "%d", -- Cage Button
|
||||
[8] = "%d", -- Winding/Adjustment Clock Button
|
||||
[7] = "%.4f", -- Winding/Adjustment Clock (rotary)
|
||||
[26] = "%.4f", -- Set Pressure (rotary)
|
||||
-- SCR-522A Control panel
|
||||
[117] = "%d", -- Radio ON/OFF
|
||||
[118] = "%d", -- A Channel Activate
|
||||
[119] = "%d", -- B Channel Activate
|
||||
[120] = "%d", -- C Channel Activate
|
||||
[121] = "%d", -- D Channel Activate
|
||||
[127] = "%.4f", -- Radio Lights Dimmer
|
||||
[116] = "%.4f", -- Radio Audio Volume
|
||||
[127] = "%.4f", -- Radio Lights Dimmer (rotary)
|
||||
[116] = "%.4f", -- Radio Audio Volume (rotary)
|
||||
[44] = "%d", -- Microphone On
|
||||
[200] = "%d", -- Arm rest
|
||||
[129] = "%d", -- Switch Locking Lever
|
||||
[128] = "%.4f", -- Radio Mode Transmit/Receive/Remote
|
||||
[128] = "%d", -- Radio Mode Transmit/Receive/Remote
|
||||
-------------
|
||||
[71] = "%.4f", -- Cockpit Lights
|
||||
[71] = "%.4f", -- Cockpit Lights (rotary)
|
||||
[66] = "%0.1f", -- Ignition Off/Right/Left/Both
|
||||
[67] = "%d", -- Gun control Gun And Camera On/Gun And Camera OFF/Camera On
|
||||
[72] = "%d", -- Silence Landing Gear Warning Horn Cut Off
|
||||
@ -163,7 +167,7 @@ gES_GlassCockpitConfigArguments =
|
||||
[68] = "%0.1f", -- Release Mode, Bombs and Rockets Safe/Bombs Train Release/Bombs Both Release/Rockets Arm
|
||||
[73] = "%0.1f", -- Rockets Release Mode Off/Single/Auto
|
||||
[74] = "%d", -- Rockets Delay Switch Delay/Int
|
||||
[75] = "%0.1f", -- Rockets Counter Control
|
||||
[75] = "%0.4f", -- Rockets Counter Control
|
||||
-- Engine Control Panel
|
||||
[58] = "%d", -- Supercharger Switch Cover
|
||||
[57] = "%0.1f", -- Supercharger AUTO/LOW/HIGH
|
||||
@ -182,18 +186,18 @@ gES_GlassCockpitConfigArguments =
|
||||
-- AN/APS-13
|
||||
[114] = "%d", -- ail Warning Radar Power ON/OFF
|
||||
[115] = "%d", -- Tail Warning Radar Test
|
||||
[113] = "%.4f", -- Tail Warning Radar Light Control
|
||||
[113] = "%.4f", -- Tail Warning Radar Light Control (rotary)
|
||||
-------------
|
||||
[79] = "%.4f", -- Hydraulic Release Knob
|
||||
[94] = "%.4f", -- Flaps Control Handle
|
||||
[79] = "%d", -- Hydraulic Release Knob
|
||||
[94] = "%.4f", -- Flaps Control Handle (rotary)
|
||||
[84] = "%d", -- Parking Brake Handle
|
||||
[81] = "%d", -- Safe Landing Gear Light Test
|
||||
[83] = "%d", -- Unsafe Landing Gear Light Test
|
||||
-- Detrola receiver
|
||||
[137] = "%0.4f", -- Detrola Frequency Selector
|
||||
[138] = "%0.4f", -- Detrola Volume
|
||||
[137] = "%.4f", -- Detrola Frequency Selector (rotary)
|
||||
[138] = "%.4f", -- Detrola Volume (rotary)
|
||||
-- canopy
|
||||
[147] = "%.4f", -- Canopy Hand Crank
|
||||
[147] = "%.4f", -- Canopy Hand Crank (rotary)
|
||||
[149] = "%d", -- Canopy Emergency Release Handle
|
||||
-- AN/ARA-8
|
||||
[152] = "%0.1f", -- Homing Adapter Mode TRANSMIT/COMM./HOMING
|
||||
@ -208,38 +212,29 @@ gES_GlassCockpitConfigArguments =
|
||||
[145] = "%d", -- IFF Detonator Left
|
||||
[146] = "%d", -- IFF Detonator Right
|
||||
-- Trimmers
|
||||
[91] = "%.4f", -- Aileron Trim
|
||||
[92] = "%.4f", -- Elevator Trim
|
||||
[93] = "%.4f", -- Rudder Trim
|
||||
[91] = "%.4f", -- Aileron Trim (rotary)
|
||||
[92] = "%.4f", -- Elevator Trim (rotary)
|
||||
[93] = "%.4f", -- Rudder Trim (rotary)
|
||||
-------------
|
||||
[157] = "%.4f", -- Defroster
|
||||
[158] = "%.4f", -- Cold Air
|
||||
[159] = "%.4f", -- Hot Air
|
||||
[157] = "%.4f", -- Defroster (rotary)
|
||||
[158] = "%.4f", -- Cold Air (rotary)
|
||||
[159] = "%.4f", -- Hot Air (rotary)
|
||||
-------------
|
||||
[89] = "%d", -- Landing Light On/Off
|
||||
[168] = "%d", -- Coolant Control Cover
|
||||
[87] = "%0.1f", -- Close Coolant Control/Automatic Coolant Control/Open Coolant Control
|
||||
[169] = "%d", -- Oil Control Cover
|
||||
[88] = "%0.1f", -- Close Oil Control/Automatic Oil Control/Open Oil Control
|
||||
[134] = "%0.1f", -- Carburetor Cold Air Control
|
||||
[135] = "%0.1f", -- Carburetor Warm Air Control
|
||||
[134] = "%0.1f", -- Carburetor Cold Air Control (rotary)
|
||||
[135] = "%0.1f", -- Carburetor Warm Air Control (rotary)
|
||||
[47] = "%0.1f", -- Mixture Control Select IDLE CUT OFF/RUN/EMERGENCY FULL RICH
|
||||
[43] = "%.4f", -- Throttle
|
||||
[46] = "%.4f", -- Propeller RPM
|
||||
[173] = "%.4f", -- Surface Control Lock Plunger. Left Button - Lock Stick in the Forward Position', Right Button - Lock Stick in the Neutral Position
|
||||
[48] = "%.4f", -- Lock Throttle
|
||||
[49] = "%.4f", -- Lock Propeller & Mixture
|
||||
[176] = "%.4f", -- G-meter reset
|
||||
[183] = "%.4f", -- Mirror
|
||||
--Gunsight Selector
|
||||
[41] = "%d", -- Sight On/Off
|
||||
[39] = "%d", -- Fixed Reticle Mask Lever
|
||||
[40] = "%0.1f", -- Sight Mode, Fixed Sight/Fixed-Gyro Sight/Gyro Sight
|
||||
[42] = "%.4f", -- Gun Sight Brightness
|
||||
[35] = "%.4f", -- Wing Span Selector
|
||||
-------------
|
||||
[132] = "%.4f", -- Left Payload Salvo
|
||||
[133] = "%.4f" -- Right Payload Salvo
|
||||
[43] = "%.4f", -- Throttle (rotary)
|
||||
[46] = "%.4f", -- Propeller RPM (rotary)
|
||||
[173] = "%d", -- Surface Control Lock Plunger. Left Button - Lock Stick in the Forward Position', Right Button - Lock Stick in the Neutral Position
|
||||
[48] = "%.4f", -- Lock Throttle (rotary)
|
||||
[49] = "%.4f", -- Lock Propeller & Mixture (rotary)
|
||||
[176] = "%d", -- G-meter reset
|
||||
[183] = "%d", -- Mirror
|
||||
}
|
||||
|
||||
-----------------------------
|
||||
@ -556,4 +551,4 @@ function ProcessHARDWAREConfigLowImportance(mainPanelDevice)
|
||||
--WriteToLog(ltmp2..' (metatable): '..dump(getmetatable(ltmp1)))
|
||||
end
|
||||
]]
|
||||
end
|
||||
end
|
||||
|
||||
@ -14,42 +14,41 @@ gES_GlassCockpitConfigEveryFrameArguments =
|
||||
[19] = "%0.1f", <- floating-point number with 1 digit after point
|
||||
[129] = "%1d", <- decimal number
|
||||
]]
|
||||
|
||||
-- Flight Instruments
|
||||
[11] = "%.2f", -- AirspeedNeedle
|
||||
[29] = "%.1f", -- Variometer
|
||||
[11] = "%.4f", -- AirspeedNeedle {0,50,100,150,200,250,300,350,400,450,500,550,600,650,700} {0.0,0.05,0.10,0.15,0.2,0.25,0.3,0.35,0.4,0.45,0.5,0.55,0.6,0.65,0.7}
|
||||
[29] = "%.4f", -- Variometer {-6000,-4000,-2000,2000,4000,6000} {-0.6,-0.4,-0.2,0.2,0.4,0.6}
|
||||
-- Altimeter
|
||||
[97] = "%.1f", -- Altimeter_Pressure
|
||||
[96] = "%.1f", -- Altimeter_10000_footPtr
|
||||
[24] = "%.1f", -- Altimeter_1000_footPtr
|
||||
[25] = "%.1f", -- Altimeter_100_footPtr
|
||||
[97] = "%.4f", -- Altimeter_Pressure {28.1, 31.0}{0.0, 1.0}
|
||||
[96] = "%.41f", -- Altimeter_10000_footPtr {0.0, 100000.0}{0.0, 1.0}
|
||||
[24] = "%.4f", -- Altimeter_1000_footPtr {0.0, 10000.0}{0.0, 1.0}
|
||||
[25] = "%.4f", -- Altimeter_100_footPtr{0.0, 1000.0}{0.0, 1.0}
|
||||
-- Artificial horizon
|
||||
[15] = "%.1f", -- AHorizon_Pitch
|
||||
[14] = "%.1f", -- AHorizon_Bank
|
||||
[16] = "%.1f", -- AHorizon_PitchShift
|
||||
[20] = "%.1f", -- AHorizon_Caged
|
||||
[15] = "%.4f", -- AHorizon_Pitch {1.0, -1.0}
|
||||
[14] = "%.4f", -- AHorizon_Bank {1.0, -1.0}
|
||||
[16] = "%.1f", -- AHorizon_PitchShift {-1.0, 1.0}
|
||||
[20] = "%.1f", -- AHorizon_Caged {0.0, 1.0}
|
||||
-- directional gyro
|
||||
[12] = "%.1f", -- GyroHeading
|
||||
[12] = "%.4f", -- GyroHeading
|
||||
-- turn indicator
|
||||
[27] = "%.1f", -- TurnNeedle
|
||||
[28] = "%.1f", -- Slipball
|
||||
[27] = "%.4f", -- TurnNeedle {-1.0, 1.0}
|
||||
[28] = "%.4f", -- Slipball {-1.0, 1.0}
|
||||
-- oxygen pressure indicator
|
||||
[34] = "%.1f", -- Oxygen_Pressure
|
||||
[33] = "%.1f", -- Oxygen_Flow_Blinker
|
||||
[34] = "%.4f", -- Oxygen_Pressure {0.0, 500.0} {0.0, 1.0}
|
||||
[33] = "%.4f", -- Oxygen_Flow_Blinker
|
||||
-- fuel system
|
||||
[155] = "%.2f", -- Fuel_Tank_Left
|
||||
[156] = "%.2f", -- Fuel_Tank_Right
|
||||
[32] = "%.1f", -- Fuel_Pressure
|
||||
[155] = "%.4f", -- Fuel_Tank_Left {0.0,5.0,15.0,30.0,45.0,60.0,75.0,92.0} {0.0,0.2,0.36,0.52,0.65,0.77,0.92,1.0}
|
||||
[156] = "%.4f", -- Fuel_Tank_Right {0.0,5.0,15.0,30.0,45.0,60.0,75.0,92.0} {0.0,0.2,0.36,0.52,0.65,0.77,0.92,1.0}
|
||||
[32] = "%.4f", -- Fuel_Pressure {0.0, 25.0} {0.0, 1.0}
|
||||
-- A-11 clock
|
||||
[4] = "%.4f", -- CLOCK_currtime_hours
|
||||
[5] = "%.4f", -- CLOCK_currtime_minutes
|
||||
[6] = "%.4f", -- CLOCK_currtime_seconds
|
||||
[4] = "%.4f", -- CLOCK_currtime_hours {0.0, 12.0}{0.0, 1.0}
|
||||
[5] = "%.4f", -- CLOCK_currtime_minutes {0.0, 60.0}{0.0, 1.0}
|
||||
[6] = "%.4f", -- CLOCK_currtime_seconds {0.0, 60.0}{0.0, 1.0}
|
||||
-- AN5730 remote compass
|
||||
[1] = "%.4f", -- CompassHeading
|
||||
[2] = "%.4f", -- CommandedCourse
|
||||
[3] = "%.4f", -- CommandedCourseKnob
|
||||
-- TailRadarWarning
|
||||
[161] = "%.1f", -- TailRadarWarning
|
||||
[161] = "%.1f", -- Lamp TailRadarWarning
|
||||
-- SCR-522A Control panel
|
||||
[122] = "%.1f", -- A_channel_light
|
||||
[123] = "%.1f", -- B_channel_light
|
||||
@ -57,44 +56,44 @@ gES_GlassCockpitConfigEveryFrameArguments =
|
||||
[125] = "%.1f", -- D_channel_light
|
||||
[126] = "%.1f", -- Transmit_light
|
||||
-- hydraulic pressure
|
||||
[78] = "%.4f", -- Hydraulic_Pressure
|
||||
[78] = "%.4f", -- Hydraulic_Pressure {0.0, 2000.0} {0.0, 1.0}
|
||||
-- Landing gears handle
|
||||
[150] = "%.4f", -- Landing_Gear_Handle
|
||||
[151] = "%.4f", -- Landing_Gear_Handle_Indoor
|
||||
[80] = "%.1f", -- LandingGearGreenLight
|
||||
[82] = "%.1f", -- LandingGearRedLight
|
||||
-- gauges
|
||||
[10] = "%.4f", -- Manifold_Pressure
|
||||
[23] = "%.4f", -- Engine_RPM
|
||||
[9] = "%.4f", -- Vacuum_Suction
|
||||
[21] = "%.4f", -- Carb_Temperature
|
||||
[22] = "%.4f", -- Coolant_Temperature
|
||||
[30] = "%.4f", -- Oil_Temperature
|
||||
[31] = "%.4f", -- Oil_Pressure
|
||||
[10] = "%.4f", -- Manifold_Pressure {10.0, 75.0} {0.0, 1.0}
|
||||
[23] = "%.4f", -- Engine_RPM {0.0, 4500.0} {0.0, 1.0}
|
||||
[9] = "%.4f", -- Vacuum_Suction {0.0, 10.0} {0.0, 1.0}
|
||||
[21] = "%.4f", -- Carb_Temperature {-80, 150} {-0, 1}
|
||||
[22] = "%.4f", -- Coolant_Temperature {-80, 150} {-0, 1}
|
||||
[30] = "%.4f", -- Oil_Temperature {0.0, 100.0} {0, 1.0}
|
||||
[31] = "%.4f", -- Oil_Pressure {0.0, 200.0} {0, 1.0}
|
||||
[164] = "%.1f", -- Left_Fluor_Light
|
||||
[165] = "%.1f", -- Right_Fluor_Light
|
||||
[59] = "%.1f", -- Hight_Blower_Lamp
|
||||
-- Trimmer
|
||||
[170] = "%.4f", -- Aileron_Trimmer
|
||||
[172] = "%.4f", -- Rudder_Trimmer
|
||||
[171] = "%.4f", -- Elevator_Trimmer
|
||||
[170] = "%.4f", -- Aileron_Trimmer {-1.0, 1.0}
|
||||
[172] = "%.4f", -- Rudder_Trimmer {-1.0, 1.0}
|
||||
[171] = "%.4f", -- Elevator_Trimmer {-1.0, 1.0}
|
||||
[174] = "%.4f", -- Control_Lock_Bracket
|
||||
[175] = "%.4f", -- Accelerometer_main
|
||||
[177] = "%.4f", -- Accelerometer_min
|
||||
[178] = "%.4f", -- Accelerometer_max
|
||||
[101] = "%.4f", -- Ammeter
|
||||
[175] = "%.4f", -- Accelerometer_main {-5.0, 12.0} {0.0, 1.0}
|
||||
[177] = "%.4f", -- Accelerometer_min {-5.0, 12.0} {0.0, 1.0}
|
||||
[178] = "%.4f", -- Accelerometer_max {-5.0, 12.0} {0.0, 1.0}
|
||||
[101] = "%.4f", -- Ammeter {0.0, 150.0} {0.0, 1.0}
|
||||
-- light
|
||||
[185] = "%.1f", -- Left_cockpit_light
|
||||
[186] = "%.1f", -- Right_cockpit_light
|
||||
[190] = "%.4f" -- warEmergencyPowerLimWire
|
||||
[190] = "%.4f", -- warEmergencyPowerLimWire
|
||||
}
|
||||
|
||||
gES_GlassCockpitConfigArguments =
|
||||
{
|
||||
--[[
|
||||
arguments for export in low tick interval
|
||||
based on "clickabledata.lua"
|
||||
]]
|
||||
|
||||
-- Right Swich Panel
|
||||
[102] = "%d", -- Generator Connect/Disconnect
|
||||
[103] = "%d", -- Battery Connect/Disconnect
|
||||
@ -107,31 +106,31 @@ gES_GlassCockpitConfigArguments =
|
||||
[110] = "%d", -- Amber Recognition Light Key/Off/Steady
|
||||
[111] = "%d", -- Recognition Lights Key
|
||||
[112] = "%d", -- Circuit Protectors Reset
|
||||
[100] = "%d", -- Right Fluorescent Light
|
||||
[90] = "%d", -- Left Fluorescent Light
|
||||
[100] = "%.4f", -- Right Fluorescent Light (rotary)
|
||||
[90] = "%.4f", -- Left Fluorescent Light (rotary)
|
||||
-- Flight Instrument panel
|
||||
[3] = "%.4f", -- Course Set
|
||||
[179] = "%.4f", -- Heading Set/Cage
|
||||
[13] = "%d", -- Heading Set/Cage Button
|
||||
[17] = "%.4f", -- Pitch Adjustment
|
||||
[19] = "%.4f", -- Cage
|
||||
[18] = "%d", -- Cage Button
|
||||
[8] = "%d", -- Winding/Adjustment Clock ??
|
||||
[7] = "%d", -- Winding/Adjustment Clock ??
|
||||
[26] = "%.4f", -- Set Pressure
|
||||
[3] = "%.4f", -- Course Set (rotary)
|
||||
[13] = "%.4f", -- Heading Set/Cage (rotary)
|
||||
[179] = "%d", -- Heading Set/Cage Button
|
||||
[17] = "%.4f", -- Pitch Adjustment (rotary)
|
||||
[18] = "%.4f", -- Cage (rotary)
|
||||
[19] = "%d", -- Cage Button
|
||||
[8] = "%d", -- Winding/Adjustment Clock Button
|
||||
[7] = "%.4f", -- Winding/Adjustment Clock (rotary)
|
||||
[26] = "%.4f", -- Set Pressure (rotary)
|
||||
-- SCR-522A Control panel
|
||||
[117] = "%d", -- Radio ON/OFF
|
||||
[118] = "%d", -- A Channel Activate
|
||||
[119] = "%d", -- B Channel Activate
|
||||
[120] = "%d", -- C Channel Activate
|
||||
[121] = "%d", -- D Channel Activate
|
||||
[127] = "%.4f", -- Radio Lights Dimmer
|
||||
[116] = "%.4f", -- Radio Audio Volume
|
||||
[127] = "%.4f", -- Radio Lights Dimmer (rotary)
|
||||
[116] = "%.4f", -- Radio Audio Volume (rotary)
|
||||
[44] = "%d", -- Microphone On
|
||||
[129] = "%d", -- Switch Locking Lever
|
||||
[128] = "%.4f", -- Radio Mode Transmit/Receive/Remote
|
||||
[128] = "%d", -- Radio Mode Transmit/Receive/Remote
|
||||
-------------
|
||||
[71] = "%.4f", -- Cockpit Lights
|
||||
[71] = "%.4f", -- Cockpit Lights (rotary)
|
||||
[66] = "%0.1f", -- Ignition Off/Right/Left/Both
|
||||
[67] = "%d", -- Gun control Gun And Camera On/Gun And Camera OFF/Camera On
|
||||
[72] = "%d", -- Silence Landing Gear Warning Horn Cut Off
|
||||
@ -158,18 +157,18 @@ gES_GlassCockpitConfigArguments =
|
||||
-- AN/APS-13
|
||||
[114] = "%d", -- ail Warning Radar Power ON/OFF
|
||||
[115] = "%d", -- Tail Warning Radar Test
|
||||
[113] = "%.4f", -- Tail Warning Radar Light Control
|
||||
[113] = "%.4f", -- Tail Warning Radar Light Control (rotary)
|
||||
-------------
|
||||
[79] = "%.4f", -- Hydraulic Release Knob
|
||||
[94] = "%.4f", -- Flaps Control Handle
|
||||
[79] = "%d", -- Hydraulic Release Knob
|
||||
[94] = "%.4f", -- Flaps Control Handle (rotary)
|
||||
[84] = "%d", -- Parking Brake Handle
|
||||
[81] = "%d", -- Safe Landing Gear Light Test
|
||||
[83] = "%d", -- Unsafe Landing Gear Light Test
|
||||
-- Detrola receiver
|
||||
[137] = "%0.4f", -- Detrola Frequency Selector
|
||||
[138] = "%0.4f", -- Detrola Volume
|
||||
[137] = "%.4f", -- Detrola Frequency Selector (rotary)
|
||||
[138] = "%.4f", -- Detrola Volume (rotary)
|
||||
-- canopy
|
||||
[147] = "%.4f", -- Canopy Hand Crank
|
||||
[147] = "%.4f", -- Canopy Hand Crank (rotary)
|
||||
[149] = "%d", -- Canopy Emergency Release Handle
|
||||
-- AN/ARA-8
|
||||
[152] = "%0.1f", -- Homing Adapter Mode TRANSMIT/COMM./HOMING
|
||||
@ -184,29 +183,38 @@ gES_GlassCockpitConfigArguments =
|
||||
[145] = "%d", -- IFF Detonator Left
|
||||
[146] = "%d", -- IFF Detonator Right
|
||||
-- Trimmers
|
||||
[91] = "%.4f", -- Aileron Trim
|
||||
[92] = "%.4f", -- Elevator Trim
|
||||
[93] = "%.4f", -- Rudder Trim
|
||||
[91] = "%.4f", -- Aileron Trim (rotary)
|
||||
[92] = "%.4f", -- Elevator Trim (rotary)
|
||||
[93] = "%.4f", -- Rudder Trim (rotary)
|
||||
-------------
|
||||
[157] = "%.4f", -- Defroster
|
||||
[158] = "%.4f", -- Cold Air
|
||||
[159] = "%.4f", -- Hot Air
|
||||
[157] = "%.4f", -- Defroster (rotary)
|
||||
[158] = "%.4f", -- Cold Air (rotary)
|
||||
[159] = "%.4f", -- Hot Air (rotary)
|
||||
-------------
|
||||
[89] = "%d", -- Landing Light On/Off
|
||||
[168] = "%d", -- Coolant Control Cover
|
||||
[87] = "%0.1f", -- Close Coolant Control/Automatic Coolant Control/Open Coolant Control
|
||||
[169] = "%d", -- Oil Control Cover
|
||||
[88] = "%0.1f", -- Close Oil Control/Automatic Oil Control/Open Oil Control
|
||||
[134] = "%0.1f", -- Carburetor Cold Air Control
|
||||
[135] = "%0.1f", -- Carburetor Warm Air Control
|
||||
[134] = "%0.1f", -- Carburetor Cold Air Control (rotary)
|
||||
[135] = "%0.1f", -- Carburetor Warm Air Control (rotary)
|
||||
[47] = "%0.1f", -- Mixture Control Select IDLE CUT OFF/RUN/EMERGENCY FULL RICH
|
||||
[43] = "%.4f", -- Throttle
|
||||
[46] = "%.4f", -- Propeller RPM
|
||||
[173] = "%.4f", -- Surface Control Lock Plunger. Left Button - Lock Stick in the Forward Position', Right Button - Lock Stick in the Neutral Position
|
||||
[48] = "%.4f", -- Lock Throttle
|
||||
[49] = "%.4f", -- Lock Propeller & Mixture
|
||||
[176] = "%.4f", -- G-meter reset
|
||||
[183] = "%.4f" -- Mirror
|
||||
[43] = "%.4f", -- Throttle (rotary)
|
||||
[46] = "%.4f", -- Propeller RPM (rotary)
|
||||
[173] = "%d", -- Surface Control Lock Plunger. Left Button - Lock Stick in the Forward Position', Right Button - Lock Stick in the Neutral Position
|
||||
[48] = "%.4f", -- Lock Throttle (rotary)
|
||||
[49] = "%.4f", -- Lock Propeller & Mixture (rotary)
|
||||
[176] = "%d", -- G-meter reset
|
||||
[183] = "%d", -- Mirror
|
||||
--Gunsight Selector
|
||||
[41] = "%d", -- Sight On/Off
|
||||
[39] = "%d", -- Fixed Reticle Mask Lever
|
||||
[40] = "%0.1f", -- Sight Mode, Fixed Sight/Fixed-Gyro Sight/Gyro Sight
|
||||
[42] = "%.1f", -- Gun Sight Brightness
|
||||
[35] = "%.1f", -- Wing Span Selector
|
||||
-------------
|
||||
[132] = "%.4f", -- Left Payload Salvo
|
||||
[133] = "%.4f" -- Right Payload Salvo
|
||||
}
|
||||
|
||||
-----------------------------
|
||||
@ -224,6 +232,190 @@ function ProcessGlassCockpitDCSConfigHighImportance(mainPanelDevice)
|
||||
SendData("ExportID", "Format")
|
||||
SendData(2000, string.format("%7.3f", lUHFRadio:get_frequency()/1000000)) <- special function for get frequency data
|
||||
]]
|
||||
if gES_GlassCockpitType == 1 then
|
||||
-- HELIOS Version 1.3
|
||||
-- WriteToLog('in ProcessGlassCockpitDCSConfigHighImportance - HELIOS: '..t)
|
||||
local MainPanel = GetDevice(0)
|
||||
local AirspeedNeedle = MainPanel:get_argument_value(11)*1000
|
||||
local Altimeter_10000_footPtr = MainPanel:get_argument_value(96)*100000
|
||||
local Variometer = MainPanel:get_argument_value(29)
|
||||
local TurnNeedle = MainPanel:get_argument_value(27)
|
||||
local Slipball = MainPanel:get_argument_value(28)
|
||||
local CompassHeading = MainPanel:get_argument_value(1)
|
||||
local CommandedCourse = MainPanel:get_argument_value(2)
|
||||
local Manifold_Pressure = MainPanel:get_argument_value(10)
|
||||
local Engine_RPM = MainPanel:get_argument_value(23)
|
||||
local AHorizon_Pitch = MainPanel:get_argument_value(15)
|
||||
local AHorizon_Bank = MainPanel:get_argument_value(14)
|
||||
local AHorizon_PitchShift = MainPanel:get_argument_value(16) * 10.0 * math.pi/180.0
|
||||
local AHorizon_Caged = MainPanel:get_argument_value(20)
|
||||
local GyroHeading = MainPanel:get_argument_value(12)
|
||||
local vaccum_suction = MainPanel:get_argument_value(9)
|
||||
local carburator_temp = MainPanel:get_argument_value(21)
|
||||
local coolant_temp = MainPanel:get_argument_value(22)
|
||||
local Acelerometer = MainPanel:get_argument_value(175)
|
||||
local OilTemperature = MainPanel:get_argument_value(30)
|
||||
local OilPressure = MainPanel:get_argument_value(31)
|
||||
local FuelPressure = MainPanel:get_argument_value(32)
|
||||
local Clock_hours = MainPanel:get_argument_value(4)
|
||||
local Clock_minutes = MainPanel:get_argument_value(5)
|
||||
local Clock_seconds = MainPanel:get_argument_value(6)
|
||||
local LandingGearGreenLight = MainPanel:get_argument_value(80)
|
||||
local LandingGearRedLight = MainPanel:get_argument_value(82)
|
||||
local Hight_Blower_Lamp = MainPanel:get_argument_value(59)
|
||||
local Acelerometer_Min = MainPanel:get_argument_value(177)
|
||||
local Acelerometer_Max = MainPanel:get_argument_value(178)
|
||||
local Ammeter = MainPanel:get_argument_value(101)
|
||||
local hydraulic_Pressure = MainPanel:get_argument_value(78)
|
||||
local Oxygen_Flow_Blinker = MainPanel:get_argument_value(33)
|
||||
local Oxygen_Pressure = MainPanel:get_argument_value(34)
|
||||
local Fuel_Tank_Left = MainPanel:get_argument_value(155)
|
||||
local Fuel_Tank_Right = MainPanel:get_argument_value(156)
|
||||
local Fuel_Tank_Fuselage = MainPanel:get_argument_value(160)
|
||||
local Tail_radar_warning = MainPanel:get_argument_value(161)
|
||||
local Channel_A = MainPanel:get_argument_value(122)
|
||||
local Channel_B = MainPanel:get_argument_value(123)
|
||||
local Channel_C = MainPanel:get_argument_value(124)
|
||||
local Channel_D = MainPanel:get_argument_value(125)
|
||||
local transmit_light = MainPanel:get_argument_value(126)
|
||||
local RocketCounter = MainPanel:get_argument_value(77)
|
||||
|
||||
--- preparing landing gear and High Blower lights, all together, in only one value
|
||||
local gear_lights = 0
|
||||
if LandingGearGreenLight > 0 then gear_lights = gear_lights +100 end
|
||||
if LandingGearRedLight > 0 then gear_lights = gear_lights +10 end
|
||||
if Hight_Blower_Lamp > 0 then gear_lights = gear_lights +1 end
|
||||
------------------------------------------------------------
|
||||
|
||||
--- preparing radio lights, all together, in only one value
|
||||
local radio_active = 0
|
||||
if Channel_A > 0 then radio_active = 1 end
|
||||
if Channel_B >0 then radio_active= 2 end
|
||||
if Channel_C >0 then radio_active= 3 end
|
||||
if Channel_D >0 then radio_active= 4 end
|
||||
if transmit_light >0 then radio_active = radio_active + 10 end
|
||||
------------------------------------------------------------
|
||||
|
||||
|
||||
---- sending P51 and tf51 data across fc2 interface
|
||||
----Please comment out the appropriate entries in the table 'gES_GlassCockpitConfigEveryFrameArguments'.
|
||||
|
||||
SendData("1", string.format("%.5f", math.floor((AHorizon_Pitch+1)*1000) + ((AHorizon_Bank+1)/100) ) ) -- pitch
|
||||
SendData("2", string.format("%.3f", math.floor(Oxygen_Flow_Blinker*100) + (Oxygen_Pressure/100) ) ) -- bank
|
||||
SendData("3", string.format("%.4f", math.floor(OilTemperature*100) + (vaccum_suction/100) ) ) -- yaw
|
||||
SendData("4", string.format("%.3f", math.floor(Altimeter_10000_footPtr) + (AHorizon_Caged/100) ) ) -- barometric altitude
|
||||
SendData("5", string.format("%.5f", math.floor(Clock_hours*1000000) + (Tail_radar_warning/100) ) ) -- radar altitude
|
||||
SendData("6", string.format("%.5f", math.floor(CompassHeading*1000) + (CommandedCourse/100) ) ) -- adf
|
||||
SendData("7", string.format("%.4f", math.floor(Clock_seconds*100) + (hydraulic_Pressure/100) ) ) -- rmi
|
||||
SendData("8", string.format("%.2f", math.floor(GyroHeading*1000) + (radio_active/100) ) ) -- heading
|
||||
SendData("9", string.format("%.4f", math.floor(Engine_RPM*100) + (Manifold_Pressure/100) ) ) -- left rpm
|
||||
SendData("10", string.format("%.4f", math.floor(Fuel_Tank_Left*100) + (Fuel_Tank_Right/100) ) ) -- right rpm
|
||||
SendData("11", string.format("%.4f", math.floor(carburator_temp*100) + (coolant_temp/100) ) ) -- left temp
|
||||
SendData("12", string.format("%.4f", math.floor(gear_lights) + (Acelerometer_Min/100 ) ) ) -- right temp
|
||||
SendData("13", string.format("%.2f", Variometer) ) -- vvi
|
||||
SendData("14", string.format("%.5f", math.floor(AirspeedNeedle)+ (RocketCounter/100) ) ) -- ias
|
||||
SendData("15", string.format("%.4f", math.floor(OilPressure*100) + (FuelPressure/100) ) ) -- distance to way
|
||||
SendData("16", string.format("%.3f", math.floor(Acelerometer*1000) + (Acelerometer_Max/100 ) ) ) -- aoa
|
||||
SendData("17", string.format("%.4f", math.floor((TurnNeedle+1)*100) + ((Slipball+1)/100) ) ) -- glide
|
||||
SendData("18", string.format("%.4f", math.floor(Fuel_Tank_Fuselage*100) + (Ammeter/100) ) ) -- side
|
||||
|
||||
elseif gES_GlassCockpitType == 2 then
|
||||
-- HawgTouch version 1.6
|
||||
-- WriteToLog('in ProcessGlassCockpitDCSConfigHighImportance - HawgTouch: '..t)
|
||||
-- ADI AN5736
|
||||
-- Artificial horizon
|
||||
--[15] = "%.4f", -- AHorizon_Pitch {1.0, -1.0}
|
||||
--[14] = "%.4f", -- AHorizon_Bank {1.0, -1.0}
|
||||
--[16] = "%.1f", -- AHorizon_PitchShift
|
||||
--[20] = "%.1f", -- AHorizon_Caged
|
||||
SendData(2000, string.format("%0.4f;%0.4f",
|
||||
mainPanelDevice:get_argument_value(15),
|
||||
mainPanelDevice:get_argument_value(14)))
|
||||
-- turn indicator AN5820
|
||||
--[27] = "%.4f", -- TurnNeedle {-1.0, 1.0}
|
||||
--[28] = "%.4f", -- Slipball {-1.0, 1.0}
|
||||
SendData(2001, string.format("%0.4f;%0.4f",
|
||||
mainPanelDevice:get_argument_value(27),
|
||||
mainPanelDevice:get_argument_value(28)))
|
||||
-- directional gyro AN5735
|
||||
--[12] = "%.1f", -- GyroHeading {0.0, 1.0}
|
||||
-- Vacuum_Suction AN5771-5
|
||||
--[9] = "%.4f", -- Vacuum_Suction {0.0, 1.0}
|
||||
-- F-2 Airspeed Indicator
|
||||
-- [11] = "%.2f", -- AirspeedNeedle {0, 50, 100, 150, 200, 250, 300, 350, 400, 450, 500, 550, 600, 650, 700} {0.0, 0.05, 0.10, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.55, 0.6, 0.65, 0.7}
|
||||
-- Altimeter AN5760-2
|
||||
--[96] = "%.1f", -- Altimeter_10000_footPtr {0.0, 1.0}
|
||||
--[24] = "%.1f", -- Altimeter_1000_footPtr {0.0, 1.0}
|
||||
--[25] = "%.1f", -- Altimeter_100_footPtr {0.0, 1.0}
|
||||
--[97] = "%.1f", -- Altimeter_Pressure {28.1, 31.0} {0.0, 1.0}
|
||||
SendData(2002, string.format("%0.4f;%0.4f;%0.4f;%0.4f",
|
||||
mainPanelDevice:get_argument_value(96),
|
||||
mainPanelDevice:get_argument_value(24),
|
||||
mainPanelDevice:get_argument_value(25),
|
||||
mainPanelDevice:get_argument_value(97)))
|
||||
-- Rate of Climb Indicator AN5825
|
||||
--[29] = "%.1f", -- Variometer {0.0, 1.0}
|
||||
-- D-10 Manifold Pressure Indicator
|
||||
--[10] = "%.4f", -- Manifold_Pressure {10.0, 75.0} {0.0, 1.0}
|
||||
-- Tachometer
|
||||
--[23] = "%.4f", -- Engine_RPM {0.0, 4500.0} {0.0, 1.0}
|
||||
-- AN5790-6 Carburetor Air Temperature Indicator
|
||||
--[21] = "%.4f", -- Carb_Temperature {-80, 150} {-0, 1}
|
||||
-- Coolant Temperature Indicator
|
||||
--[22] = "%.4f", -- Carb_Temperature {-80, 150} {-0, 1}
|
||||
-- Engine Gauge
|
||||
--[30] = "%.4f", -- Oil_Temperature {0.0, 100.0} {0.0, 1.0}
|
||||
--[31] = "%.4f", -- Oil_Pressure {0.0, 200.0} {0.0, 1.0}
|
||||
--[32] = "%.1f", -- Fuel_Pressure {0.0, 25.0} -- PSI {0.0, 1.0}
|
||||
SendData(2003, string.format("%0.4f;%0.4f;%0.4f",
|
||||
mainPanelDevice:get_argument_value(30),
|
||||
mainPanelDevice:get_argument_value(31),
|
||||
mainPanelDevice:get_argument_value(32)))
|
||||
-- Remote Indicator Compass
|
||||
-- AN5730 remote compass
|
||||
--[1] = "%.4f", -- CompassHeading {0.0, 1.0}
|
||||
--[2] = "%.4f", -- CommandedCourse {0.0, 1.0}
|
||||
SendData(2004, string.format("%0.4f;%0.4f",
|
||||
mainPanelDevice:get_argument_value(1),
|
||||
mainPanelDevice:get_argument_value(2)))
|
||||
-- A-11 clock
|
||||
--[4] = "%.4f", -- CLOCK_currtime_hours {0.0, 1.0}
|
||||
--[5] = "%.4f", -- CLOCK_currtime_minutes {0.0, 1.0}
|
||||
--[6] = "%.4f", -- CLOCK_currtime_seconds {0.0, 1.0}
|
||||
SendData(2005, string.format("%0.4f;%0.4f;%0.4f",
|
||||
mainPanelDevice:get_argument_value(4),
|
||||
mainPanelDevice:get_argument_value(5),
|
||||
mainPanelDevice:get_argument_value(6)))
|
||||
-- Oxygen Flow Indicator
|
||||
--[33] = "%.1f", -- Oxygen_Flow_Blinker {0.0, 1.0}
|
||||
-- Oxygen Pressure Gauge
|
||||
--[34] = "%.1f", -- Oxygen_Pressure {0.0, 500.0} {0.0, 1.0}
|
||||
-- Hydraulic Pressure Gauge
|
||||
--[78] = "%.4f", -- Hydraulic_Pressure {0.0, 2000.0} -- PSI {0.0, 1.0}
|
||||
-- Fuel Gauges
|
||||
-- Left Wing Main Tank
|
||||
--[155] = "%.2f", -- Fuel_Tank_Left {0.0, 5.0, 15.0, 30.0, 45.0, 60.0, 75.0, 92.0} -- US GAL {0.0, 0.2, 0.36, 0.52, 0.65, 0.77, 0.92, 1.0}
|
||||
-- Fuselage Tank
|
||||
--[160] = "%.2f", -- Fuel_Tank_Fuselage {0.0, 10.0, 20.0, 30.0, 40.0, 50.0, 60.0, 70.0, 80.0, 85.0} -- US GAL {0.0, 0.12, 0.28, 0.40, 0.51, 0.62, 0.72, 0.83, 0.96, 1.0}
|
||||
-- Right Wing Main Tank
|
||||
--[156] = "%.2f", -- Fuel_Tank_Right {0.0, 5.0, 15.0, 30.0, 45.0, 60.0, 75.0, 92.0} -- US GAL {0.0, 0.2, 0.36, 0.52, 0.65, 0.77, 0.92, 1.0}
|
||||
-- AN-5745 accelerometer indicator
|
||||
--[175] = "%.4f", -- Accelerometer_main {-5.0, 12.0} {0.0, 1.0}
|
||||
--[177] = "%.4f", -- Accelerometer_min {-5.0, 12.0} {0.0, 1.0}
|
||||
--[178] = "%.4f", -- Accelerometer_max {-5.0, 12.0} {0.0, 1.0}
|
||||
SendData(2006, string.format("%0.4f;%0.4f;%0.4f",
|
||||
mainPanelDevice:get_argument_value(175),
|
||||
mainPanelDevice:get_argument_value(177),
|
||||
mainPanelDevice:get_argument_value(178)))
|
||||
-- Landing Gear Warning Lights
|
||||
--[80] = "%.1f", -- LandingGearGreenLight
|
||||
--[82] = "%.1f", -- LandingGearRedLight
|
||||
SendData(2007, string.format("%.1f;%.1f",
|
||||
mainPanelDevice:get_argument_value(80),
|
||||
mainPanelDevice:get_argument_value(82)))
|
||||
-- AMMETER
|
||||
--[101] = "%.4f", -- Ammeter {0.0, 150.0} {0.0, 1.0}
|
||||
end
|
||||
end
|
||||
|
||||
function ProcessHARDWAREConfigHighImportance(mainPanelDevice)
|
||||
@ -238,7 +430,6 @@ function ProcessHARDWAREConfigHighImportance(mainPanelDevice)
|
||||
SendDataHW("2000", string.format("%7.3f", UHF_RADIO:get_frequency()/1000000))
|
||||
SendDataHW("2000", string.format("%7.3f", UHF_RADIO:get_frequency()/1000000), 2) -- export to Hardware '2' Config
|
||||
]]
|
||||
|
||||
-- no dimming lights
|
||||
-- TailRadarWarning
|
||||
SendDataHW("161", mainPanelDevice:get_argument_value(161) > 0.3 and 1 or 0) -- Lamp TailRadarWarning
|
||||
@ -302,21 +493,21 @@ function ProcessGlassCockpitDCSConfigLowImportance(mainPanelDevice)
|
||||
local lDETROLA = GetDevice(24)
|
||||
WriteToLog('lDETROLA: '..dump(lDETROLA:is_on()))
|
||||
WriteToLog('lDETROLA: '..dump(lDETROLA:get_frequency()))
|
||||
--SendData(2000, string.format("%7.3f", lDETROLA:get_frequency()/1000000))
|
||||
|
||||
--SendData(2000, string.format("%7.3f", lDETROLA:get_frequency()/1000000))
|
||||
|
||||
local lINTERCOM = GetDevice(31)
|
||||
WriteToLog('lINTERCOM: '..dump(lINTERCOM:is_communicator_available()))
|
||||
WriteToLog('lINTERCOM: '..dump(lINTERCOM:get_noise_level()))
|
||||
WriteToLog('lINTERCOM: '..dump(lINTERCOM:get_signal_level()))
|
||||
]]
|
||||
--[[
|
||||
--[[
|
||||
local ltmp1 = 0
|
||||
for ltmp2 = 1, 32, 1 do
|
||||
for ltmp2 = 1, 35, 1 do
|
||||
ltmp1 = GetDevice(ltmp2)
|
||||
WriteToLog(ltmp2..': '..dump(ltmp1))
|
||||
WriteToLog(ltmp2..' (metatable): '..dump(getmetatable(ltmp1)))
|
||||
end
|
||||
]]
|
||||
]]
|
||||
end
|
||||
|
||||
function ProcessHARDWAREConfigLowImportance(mainPanelDevice)
|
||||
@ -340,4 +531,4 @@ function ProcessHARDWAREConfigLowImportance(mainPanelDevice)
|
||||
--WriteToLog(ltmp2..' (metatable): '..dump(getmetatable(ltmp1)))
|
||||
end
|
||||
]]
|
||||
end
|
||||
end
|
||||
|
||||
@ -25,103 +25,103 @@ gES_GlassCockpitConfigEveryFrameArguments =
|
||||
--[190] = "%.4f", -- stick_pitch_sec
|
||||
--[207] = "%.4f", -- collective_position_operator
|
||||
-- Gauges Pilot
|
||||
[117] = "%0.4f", -- AIRSPEED_Nose
|
||||
[118] = "%0.4f", -- AIRSPEED_Roof
|
||||
[117] = "%0.4f", -- AIRSPEED_Nose {0.0, 20.0, 30.0, 40.0, 50.0, 60.0, 80.0, 120.0, 150.0} {0.0, 0.075, 0.19, 0.32, 0.395, 0.44, 0.55, 0.825, 1.0}
|
||||
[118] = "%0.4f", -- AIRSPEED_Roof {0.0, 20.0, 30.0, 40.0, 50.0, 60.0, 80.0, 120.0, 150.0} {0.0, 0.075, 0.19, 0.32, 0.395, 0.44, 0.55, 0.825, 1.0}
|
||||
-- Course Indicator ID-1347
|
||||
[151] = "%.4f", -- VerticalBar
|
||||
[152] = "%.4f", -- HorisontalBar
|
||||
[151] = "%.4f", -- VerticalBar {-1.0, 1.0} {-0.7, 0.7}
|
||||
[152] = "%.4f", -- HorisontalBar {-1.0, 1.0} {-0.7, 0.7}
|
||||
[153] = "%.4f", -- ToMarker
|
||||
[154] = "%.4f", -- FromMarker
|
||||
[156] = "%.4f", -- RotCourseCard
|
||||
[157] = "%.1f", -- VerticalOFF
|
||||
[158] = "%.1f", -- HorisontalOFF
|
||||
-- ADF_ARN83
|
||||
[45] = "%0.2f", -- ADF_ARN83_Frequency
|
||||
[45] = "%0.2f", -- ADF_ARN83_Frequency {0.0, 1.0} {0.0, 0.55}
|
||||
[40] = "%.4f", -- ARN83_SignalLevel
|
||||
-- GMC
|
||||
[159] = "%.4f", -- GMC_CoursePointer1
|
||||
[160] = "%.4f", -- GMC_CoursePointer2
|
||||
[162] = "%.4f", -- GMC_HeadingMarker
|
||||
[165] = "%.4f", -- GMC_Heading
|
||||
[166] = "%.4f", -- GMC_Annunciator
|
||||
[166] = "%.4f", -- GMC_Annunciator {-1.0, 1.0} {0.0, 1.0}
|
||||
[167] = "%.2f", -- GMC_PowerFail
|
||||
-- Copilot RMI
|
||||
[266] = "%.4f", -- RMI_CoursePointer1
|
||||
[267] = "%.4f", -- RMI_CoursePointer2
|
||||
[269] = "%.4f", -- RMI_Heading
|
||||
-- Altimeter Indicator AAU-32/A (operator)
|
||||
[168] = "%.4f", -- Pointer
|
||||
[169] = "%.4f", -- Alt1AAU_10000_footCount
|
||||
[170] = "%.4f", -- Alt1AAU_1000_footCount
|
||||
[171] = "%.4f", -- Alt1AAU_100_footCount
|
||||
[174] = "%.2f", -- AAU_32_Drum_Counter
|
||||
[175] = "%.2f", -- AAU_32_Drum_Counter
|
||||
[176] = "%.2f", -- AAU_32_Drum_Counter
|
||||
[168] = "%.4f", -- Pointer {0.0, 1000.0} {0.0, 1.0}
|
||||
[169] = "%.4f", -- Alt1AAU_10000_footCount {0.0, 10.0} {0.0, 1.0}
|
||||
[170] = "%.4f", -- Alt1AAU_1000_footCount {0.0, 10.0} {0.0, 1.0}
|
||||
[171] = "%.4f", -- Alt1AAU_100_footCount {0.0, 10.0} {0.0, 1.0}
|
||||
[174] = "%.2f", -- AAU_32_Drum_Counter {-2.0, 1.0} {0.0, 0.3}
|
||||
[175] = "%.2f", -- AAU_32_Drum_Counter {0.0, 10.0} {0.0, 1.0}
|
||||
[176] = "%.2f", -- AAU_32_Drum_Counter {0.0, 10.0} {0.0, 1.0}
|
||||
[177] = "%.1f", -- CodeOff_flag
|
||||
-- Altimeter Indicator AAU-7/A (pilot) (AAU-31/A)
|
||||
[178] = "%.4f", -- Alt_10000_AAU_7A
|
||||
[179] = "%.4f", -- Alt_1000_AAU_7A
|
||||
[180] = "%.4f", -- Alt_100_AAU_7A
|
||||
[182] = "%.4f", -- Press_AAU_7A
|
||||
[178] = "%.4f", -- Alt_10000_AAU_7A {0.0, 100000.0} {0.0, 1.0}
|
||||
[179] = "%.4f", -- Alt_1000_AAU_7A {0.0, 10000.0} {0.0, 1.0}
|
||||
[180] = "%.4f", -- Alt_100_AAU_7A {0.0, 1000.0} {0.0, 1.0}
|
||||
[182] = "%.4f", -- Press_AAU_7A {28.1, 31.0} {0.0, 1.0}
|
||||
-- Gauges
|
||||
[113] = "%.4f", -- EngOilPress
|
||||
[114] = "%.4f", -- EngOilTemp
|
||||
[115] = "%.4f", -- TransmOilPress
|
||||
[116] = "%.4f", -- TransmOilTemp
|
||||
[117] = "%.4f", -- AIRSPEED_Nose
|
||||
[118] = "%.4f", -- AIRSPEED_Roof
|
||||
[121] = "%.4f", -- ExhaustTemp
|
||||
[122] = "%.4f", -- EngineTach
|
||||
[123] = "%.4f", -- RotorTach
|
||||
[119] = "%.4f", -- GasProducerTach
|
||||
[120] = "%.4f", -- GasProducerTach_U
|
||||
[124] = "%.4f", -- TorquePress
|
||||
[149] = "%.4f", -- VoltageDC
|
||||
[150] = "%.4f", -- VoltageAC
|
||||
[436] = "%.4f", -- LoadmeterMainGen
|
||||
[125] = "%.4f", -- LoadmeterSTBYGen
|
||||
[126] = "%.4f", -- FuelPress
|
||||
[239] = "%.4f", -- FuelQuantity
|
||||
[113] = "%.4f", -- EngOilPress {-3.0, 0.0, 100.0} {0.0, 0.029, 1.0}
|
||||
[114] = "%.4f", -- EngOilTemp {-70.0, -50.0, 0.0, 100.0, 150.0} {0.0, 0.13, 0.38, 0.71, 1.0}
|
||||
[115] = "%.4f", -- TransmOilPress {-3.0, 0.0, 100.0} {0.0, 0.029, 1.0}
|
||||
[116] = "%.4f", -- TransmOilTemp {-70.0, -50.0, 0.0, 100.0, 150.0} {0.0, 0.13, 0.38, 0.71, 1.0}
|
||||
--[117] = "%.4f", -- AIRSPEED_Nose
|
||||
--[118] = "%.4f", -- AIRSPEED_Roof
|
||||
[121] = "%.4f", -- ExhaustTemp {0.0, 1000.0} {0.0, 1.0}
|
||||
[122] = "%.4f", -- EngineTach {0.0, 7200.0} {0.0, 1.0}
|
||||
[123] = "%.4f", -- RotorTach {0.0, 360.0} {0.0, 1.0}
|
||||
[119] = "%.4f", -- GasProducerTach {0.0, 101.5} {0.0, 1.0}
|
||||
[120] = "%.4f", -- GasProducerTach_U {0.0, 10.0} {0.0, 1.0}
|
||||
[124] = "%.4f", -- TorquePress {-3.0, 0.0, 100.0} {0.0, 0.029, 1.0}
|
||||
[149] = "%.4f", -- VoltageDC {0.0, 30.0} {0.0, 1.0}
|
||||
[150] = "%.4f", -- VoltageAC {0.0, 150.0} {0.0, 1.0}
|
||||
[436] = "%.4f", -- LoadmeterMainGen {-1.5, 0.0, 12.5} {0.0, 0.156, 1.0}
|
||||
[125] = "%.4f", -- LoadmeterSTBYGen {-1.5, 0.0, 12.5} {0.0, 0.09, 1.0}
|
||||
[126] = "%.4f", -- FuelPress {-2.0, 0.0, 50.0} {0.0, 0.015, 1.0}
|
||||
[239] = "%.4f", -- FuelQuantity {0.0, 1580.0} {0.0, 1.0}
|
||||
-- Mechanic clock
|
||||
[127] = "%.4f", -- CLOCK_hours
|
||||
[128] = "%.4f", -- CLOCK_minutes
|
||||
[129] = "%.4f", -- CLOCK_seconds
|
||||
[127] = "%.4f", -- CLOCK_hours {0.0, 12.0} {0.0, 1.0}
|
||||
[128] = "%.4f", -- CLOCK_minutes {0.0, 60.0} {0.0, 1.0}
|
||||
[129] = "%.4f", -- CLOCK_seconds {0.0, 60.0} {0.0, 1.0}
|
||||
--
|
||||
[132] = "%.4f", -- TurnPtr
|
||||
[133] = "%.4f", -- SideSlip
|
||||
[134] = "%.2f", -- VertVelocPilot
|
||||
[251] = "%.2f", -- VertVelocCopilot
|
||||
[132] = "%.4f", -- TurnPtr {-1.0, 1.0}
|
||||
[133] = "%.4f", -- SideSlip {-1.0, 1.0}
|
||||
[134] = "%.2f", -- VertVelocPilot {-4000.0, -3000.0, -1500.0, -1000.0, 1000.0, 1500.0, 3000.0, 4000.0} {-1.0, -0.81, -0.54, -0.36, 0.36, 0.54, 0.81, 1.0}
|
||||
[251] = "%.2f", -- VertVelocCopilot {-4000.0, -3000.0, -1500.0, -1000.0, 1000.0, 1500.0, 3000.0, 4000.0} {-1.0, -0.81, -0.54, -0.36, 0.36, 0.54, 0.81, 1.0}
|
||||
-- ADI - pilot
|
||||
[142] = "%.4f", -- Attitude_Roll
|
||||
[143] = "%.4f", -- Attitude_Pitch
|
||||
[142] = "%.4f", -- Attitude_Roll {1.0, -1.0}
|
||||
[143] = "%.4f", -- Attitude_Pitch {1.0, -1.0}
|
||||
[148] = "%.1f", -- Attitude_Off_flag
|
||||
-- ADI - operator
|
||||
[135] = "%.4f", -- Attitude_Roll_left
|
||||
[136] = "%.4f", -- Attitude_Pitch_left
|
||||
[141] = "%.1f", -- Attitude_Off_flag_left
|
||||
[138] = "%.4f", -- Attitude_PitchShift
|
||||
[135] = "%.4f", -- Attitude_Roll_left {1.0, -1.0}
|
||||
[136] = "%.4f", -- Attitude_Pitch_left {1.0, -1.0}
|
||||
[141] = "%.1f", -- Attitude_Off_flag_left {0.0, 1.0} {1.0, 0.0}
|
||||
[138] = "%.4f", -- Attitude_PitchShift {0.0, 1.0} {-1.0, 1.0}
|
||||
-- operator
|
||||
--[149] = "%.4f", -- DCVoltmeter
|
||||
--[150] = "%.4f", -- ACVoltmeter
|
||||
-- UHF_ARC51
|
||||
[10] = "%.4f", -- UHF_ARC51_Freq1
|
||||
[11] = "%.4f", -- UHF_ARC51_Freq2
|
||||
[12] = "%.4f", -- UHF_ARC51_Freq3
|
||||
[13] = "%.4f", -- UHF_ARC51_Freq4
|
||||
[14] = "%.4f", -- UHF_ARC51_Freq5
|
||||
[10] = "%.4f", -- UHF_ARC51_Freq1 {2.0, 3.0} {0.0, 1.0}
|
||||
[11] = "%.4f", -- UHF_ARC51_Freq2 {0.0, 10.0} {0.0, 1.0}
|
||||
[12] = "%.4f", -- UHF_ARC51_Freq3 {0.0, 10.0} {0.0, 1.0}
|
||||
[13] = "%.4f", -- UHF_ARC51_Freq4 {0.0, 10.0} {0.0, 1.0}
|
||||
[14] = "%.4f", -- UHF_ARC51_Freq5 {0.0, 10.0} {0.0, 1.0}
|
||||
-- NAV_ARN82
|
||||
[46] = "%.4f", -- NAV_ARN82_Freq1
|
||||
[47] = "%.4f", -- NAV_ARN82_Freq2
|
||||
[48] = "%.4f", -- NAV_ARN82_Freq3
|
||||
[49] = "%.4f", -- NAV_ARN82_Freq4
|
||||
[50] = "%.4f", -- NAV_ARN82_Freq5
|
||||
[46] = "%.4f", -- NAV_ARN82_Freq1 {0.0, 10.0} {0.0, 1.0}
|
||||
[47] = "%.4f", -- NAV_ARN82_Freq2 {0.0, 10.0} {0.0, 1.0}
|
||||
[48] = "%.4f", -- NAV_ARN82_Freq3 {0.0, 10.0} {0.0, 1.0}
|
||||
[49] = "%.4f", -- NAV_ARN82_Freq4 {0.0, 10.0} {0.0, 1.0}
|
||||
[50] = "%.4f", -- NAV_ARN82_Freq5 {0.0, 10.0} {0.0, 1.0}
|
||||
-- VHF_ARC134
|
||||
[1] = "%.4f", -- VHF_ARC134_Freq1
|
||||
[2] = "%.4f", -- VHF_ARC134_Freq2
|
||||
[3] = "%.4f", -- VHF_ARC134_Freq3
|
||||
[4] = "%.4f", -- VHF_ARC134_Freq4
|
||||
[1] = "%.4f", -- VHF_ARC134_Freq1 {0.0, 10.0} {0.0, 1.0}
|
||||
[2] = "%.4f", -- VHF_ARC134_Freq2 {0.0, 10.0} {0.0, 1.0}
|
||||
[3] = "%.4f", -- VHF_ARC134_Freq3 {0.0, 10.0} {0.0, 1.0}
|
||||
[4] = "%.4f", -- VHF_ARC134_Freq4 {0.0, 10.0} {0.0, 1.0}
|
||||
--
|
||||
[56] = "%.1f", -- Marker_Beacon_Lamp
|
||||
[56] = "%.1f", -- Marker_Beacon_Lamp {0.0, 1.0} {0.0, 0.9}
|
||||
-- Panel_Shake
|
||||
--[264] = "%.1f", -- Panel_Shake_Z
|
||||
--[265] = "%.1f", -- Panel_Shake_Y
|
||||
@ -158,23 +158,25 @@ gES_GlassCockpitConfigEveryFrameArguments =
|
||||
--
|
||||
[437] = "%.3f", -- RamTemp
|
||||
-- Radar Altimeter
|
||||
[443] = "%.4f", -- RALT_Needle
|
||||
[443] = "%.4f", -- RALT_Needle {0.0, 0.98} {0.0, 0.98}
|
||||
[467] = "%.1f", -- RALT_Off_Flag
|
||||
[447] = "%.1f", -- RALT_LO_Lamp
|
||||
[465] = "%.1f", -- RALT_HI_Lamp
|
||||
[444] = "%.4f", -- RALT_LO_Index
|
||||
[466] = "%.4f", -- RALT_HI_Index
|
||||
[468] = "%0.1f", -- RALT_Digit_1
|
||||
[469] = "%0.1f", -- RALT_Digit_2
|
||||
[470] = "%0.1f", -- RALT_Digit_3
|
||||
[471] = "%0.1f", -- RALT_Digit_4
|
||||
[444] = "%.4f", -- RALT_LO_Index {-0.02, -0.01, -0.0001,0.0, 0.744} {0.97, 0.99, 1.0, 0.0, 0.744}
|
||||
[466] = "%.4f", -- RALT_HI_Index {0.0, 0.744} {0.0, 0.744}
|
||||
[468] = "%0.1f", -- RALT_Digit_1 {0.0, 10.0} {0.0, 1.0}
|
||||
[469] = "%0.1f", -- RALT_Digit_2 {0.0, 10.0} {0.0, 1.0}
|
||||
[470] = "%0.1f", -- RALT_Digit_3 {0.0, 10.0} {0.0, 1.0}
|
||||
[471] = "%0.1f", -- RALT_Digit_4 {0.0, 10.0} {0.0, 1.0}
|
||||
-- FLARE CHAFF
|
||||
[460] = "%1d", -- FLARE_Digit_1
|
||||
[461] = "%1d", -- FLARE_Digit_2
|
||||
[462] = "%1d", -- CHAFF_Digit_1
|
||||
[463] = "%1d", -- CHAFF_Digit_2
|
||||
[460] = "%1d", -- FLARE_Digit_1 {0.0, 10.0} {0.0, 1.0}
|
||||
[461] = "%1d", -- FLARE_Digit_2 {0.0, 10.0} {0.0, 1.0}
|
||||
[462] = "%1d", -- CHAFF_Digit_1 {0.0, 10.0} {0.0, 1.0}
|
||||
[463] = "%1d", -- CHAFF_Digit_2 {0.0, 10.0} {0.0, 1.0}
|
||||
-- XM130 Chaff Flare
|
||||
[458] = "%.1f", -- lamp_XM130_ARMED
|
||||
-- SIGHTS_FOR_CIVIL
|
||||
[473] = "$.1f", -- SIGHTS_FOR_CIVIL
|
||||
-- Main Panel Lights
|
||||
[277] = "%.1f", -- lamp_MASTER
|
||||
[276] = "%.1f", -- lamp_LOW_RPM
|
||||
@ -207,16 +209,16 @@ gES_GlassCockpitConfigEveryFrameArguments =
|
||||
[76] = "%.1f", -- lamp_IFF_REPLY
|
||||
[77] = "%.1f", -- lamp_IFF_TEST
|
||||
-- Electic Gauges
|
||||
[526] = "%.4f", -- DC_voltage
|
||||
[532] = "%.2f", -- AC_voltage
|
||||
[527] = "%.4f", -- DC_battery_I_current
|
||||
[528] = "%.4f", -- DC_battery_II_current
|
||||
[529] = "%.4f", -- DC_VU_I_current
|
||||
[530] = "%.4f", -- DC_VU_II_current
|
||||
[531] = "%.4f", -- DC_VU_III_current
|
||||
[533] = "%.2f", -- AC_generator_I_current
|
||||
[534] = "%.2f", -- AC_generator_II_current
|
||||
[371] = "%.2f" -- AntiIce_ampermeter
|
||||
[526] = "%.4f", -- DC_voltage {0.0, 30.0} {0.0, 1.0}
|
||||
[532] = "%.2f", -- AC_voltage {0.0, 100.0, 150.0, 200.0, 250.0} {0.0, 0.14, 0.31, 0.56, 1.0}
|
||||
[527] = "%.4f", -- DC_battery_I_current {0.0, 400.0} {0.0, 1.0}
|
||||
[528] = "%.4f", -- DC_battery_II_current {0.0, 400.0} {0.0, 1.0}
|
||||
[529] = "%.4f", -- DC_VU_I_current {0.0, 400.0} {0.0, 1.0}
|
||||
[530] = "%.4f", -- DC_VU_II_current {0.0, 400.0} {0.0, 1.0}
|
||||
[531] = "%.4f", -- DC_VU_III_current {0.0, 400.0} {0.0, 1.0}
|
||||
[533] = "%.2f", -- AC_generator_I_current {0.0, 50, 70, 90, 120, 130, 140, 150} {0.0, 0.1, 0.2, 0.36, 0.63, 0.75, 0.86, 1.0}
|
||||
[534] = "%.2f", -- AC_generator_II_current {0.0, 50, 70, 90, 120, 130, 140, 150} {0.0, 0.1, 0.2, 0.36, 0.63, 0.75, 0.86, 1.0}
|
||||
[371] = "%.2f" -- AntiIce_ampermeter {0.0, 50, 70, 90, 120, 130, 140, 150} {0.0, 0.1, 0.2, 0.36, 0.63, 0.75, 0.86, 1.0}
|
||||
}
|
||||
gES_GlassCockpitConfigArguments =
|
||||
{
|
||||
@ -323,7 +325,7 @@ gES_GlassCockpitConfigArguments =
|
||||
[81] = "%1d", -- Main Fuel
|
||||
[240] = "%1d", -- Test Fuel Gauge
|
||||
--Transponder APX-72
|
||||
[78] = "%.1f", -- Code
|
||||
[58] = "%.1f", -- Code
|
||||
[59] = "%.1f", -- Master
|
||||
[60] = "%1d", -- Audio/light
|
||||
|
||||
@ -379,6 +381,7 @@ gES_GlassCockpitConfigArguments =
|
||||
-- Pilot's altimeter
|
||||
[181] = "%.4f", -- Pressure Adjustment, Axis
|
||||
-- VHF ARC-134
|
||||
[6] = "%1d", -- Comm Test Button
|
||||
[7] = "%1d", -- Frequency MHz / Power. Right mouse click to cycle power. Rotate mouse wheel to change frequency value, Button
|
||||
[5] = "%.4f", -- Frequency MHz / Power. Right mouse click to cycle power. Rotate mouse wheel to change frequency value, Axis
|
||||
[8] = "%1d", -- Frequency kHz / Volume. Rotate mouse wheel to change frequency value. Left or Right click to adjust volume, Button
|
||||
@ -488,7 +491,7 @@ gES_GlassCockpitConfigArguments =
|
||||
[449] = "%1d", -- Radar Altimeter Power
|
||||
[445] = "%.4f", -- Turn On. Low Set.
|
||||
[446] = "%1d", -- Test / Hight Set. Left mouse click to Test. Rotate mouse wheel to set Hight, Button
|
||||
[465] = "%1d", -- Test / Hight Set. Left mouse click to Test. Rotate mouse wheel to set Hight, Axis
|
||||
[464] = "%1d", -- Test / Hight Set. Left mouse click to Test. Rotate mouse wheel to set Hight, Axis
|
||||
-- Doors
|
||||
[419] = "%1d", -- Open Left Doors
|
||||
[421] = "%1d" -- Open Right Doors
|
||||
@ -938,6 +941,23 @@ function ProcessHARDWAREConfigLowImportance(mainPanelDevice)
|
||||
end
|
||||
|
||||
SendDataHW("2007", string.format("%s", lADF_ARN83))
|
||||
|
||||
-- Radar Altimeter - AN/APN-209
|
||||
-- [468] = "%0.1f", -- RALT_Digit_1
|
||||
-- {0.0, 1.0} 0.0=0, 0.1=1, 0.2=2,..., 0.9=9, 1.0=' '
|
||||
-- [469] = "%0.1f", -- RALT_Digit_2
|
||||
-- {0.0, 1.0} 0.0=0, 0.1=1, 0.2=2,..., 0.9=9, 1.0=' '
|
||||
-- [470] = "%0.1f", -- RALT_Digit_3
|
||||
-- {0.0, 1.0} 0.0=0, 0.1=1, 0.2=2,..., 0.9=9, 1.0=' '
|
||||
-- [471] = "%0.1f", -- RALT_Digit_4
|
||||
-- {0.0, 1.0} 0.0=0, 0.1=1, 0.2=2,..., 0.9=9, 1.0=' '
|
||||
local lAN_APN_209_PRESET = {[0.0]="0",[0.1]="1",[0.2]="2",[0.3]="3",[0.4]="4",[0.5]="5",[0.6]="6",[0.7]="7",[0.8]="8",[0.9]="9",[1.0]=" "}
|
||||
local lAN_APN_209 = ""
|
||||
lAN_APN_209 = lAN_APN_209_PRESET[math.round(mainPanelDevice:get_argument_value(468), 2)]
|
||||
lAN_APN_209 = lAN_APN_209 .. lAN_APN_209_PRESET[math.round(mainPanelDevice:get_argument_value(469), 2)]
|
||||
lAN_APN_209 = lAN_APN_209 .. lAN_APN_209_PRESET[math.round(mainPanelDevice:get_argument_value(470), 2)]
|
||||
lAN_APN_209 = lAN_APN_209 .. lAN_APN_209_PRESET[math.round(mainPanelDevice:get_argument_value(471), 2)]
|
||||
SendDataHW("2008", string.format("%s", lAN_APN_209))
|
||||
|
||||
-- generic Radio display and frequency rotarys
|
||||
-------------------------------------------------
|
||||
@ -1644,4 +1664,4 @@ function genericRadio(key, value, hardware)
|
||||
WriteToLog("GetDevice("..lSetFrequency.DeviceID..") is no table or Radio is not on")
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@ -38,7 +38,7 @@ gES_HARDWARE[1].Separator = ":"
|
||||
gES_HARDWAREListner = true -- false for not use
|
||||
gES_HARDWAREListnerPort = 26027 -- Listener Port for D.A.C.
|
||||
|
||||
gES_ExportInterval = 0.1
|
||||
gES_ExportInterval = 0.05
|
||||
gES_ExportLowTickInterval = 1
|
||||
gES_ExportModulePath = lfs.writedir().."ExportsModules\\"
|
||||
gES_LogPath = lfs.writedir().."Logs\\Export.log"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user