mirror of
https://github.com/weyne85/DCS-ExportScripts.git
synced 2025-10-29 16:58:18 +00:00
Major changes
Removed files that I have not modified. Added files that I have modified. Removed files that I don't need to use.
This commit is contained in:
538
ExportsModules/AJS37.lua
Normal file
538
ExportsModules/AJS37.lua
Normal file
@@ -0,0 +1,538 @@
|
||||
-- AJS37
|
||||
|
||||
ExportScript.FoundDCSModule = true
|
||||
ExportScript.Version.AJS37 = "1.2.1"
|
||||
|
||||
ExportScript.ConfigEveryFrameArguments =
|
||||
{
|
||||
--[[
|
||||
every frames arguments
|
||||
based of "mainpanel_init.lua"
|
||||
Example (http://www.lua.org/manual/5.1/manual.html#pdf-string.format)
|
||||
[DeviceID] = "Format"
|
||||
[4] = "%.4f", <- floating-point number with 4 digits after point
|
||||
[19] = "%0.1f", <- floating-point number with 1 digit after point
|
||||
[129] = "%1d", <- decimal number
|
||||
[5] = "%.f", <- floating point number rounded to a decimal number
|
||||
]]
|
||||
-- INSTRUMENTS Front panel
|
||||
-- Left Side
|
||||
-- Airspeed indicator
|
||||
[100] = "%.4f", -- IndicatedAirSpeed {0, 0.01, 0.05, 0.10, 0.15, 0.20, 0.25, 0.30, 0.35, 0.40, 0.45, 0.50, 0.60, 0.70, 0.75, 0.80, 0.85, 0.90, 0.95, 1} {0, 41.66, 47.78, 55.56, 64.17, 73.61, 83.33, 98.61, 106.9, 122.22, 136.1, 154.16, 194.44, 239, 263.89, 288.89, 319.44, 350, 380.55, 416.66} --m/s
|
||||
-- Mach-meter
|
||||
[103] = "%.4f", -- MachMeterDec2 (1.2 _3_)
|
||||
[102] = "%.4f", -- MachMeterDec1 (1. _2_ 3)
|
||||
[101] = "%.4f", -- Integer (_1_ .23)
|
||||
[2007] = "%.f", -- ASI OFF Flag
|
||||
-- ADI
|
||||
[105] = "%.4f", -- Pitch {1.0, -1.0}
|
||||
[106] = "%.4f", -- Heading {1.0, -1.0}
|
||||
[107] = "%.4f", -- Roll {-1.0, 1.0}
|
||||
[108] = "%.4f", -- VerticalSpeed {-1.0, 1.0} {-5.0, 5.0} --ms
|
||||
[107] = "%.4f", -- Rollindex {1.0, -1.0} inverted
|
||||
[109] = "%.4f", -- VerticalILS {1.0, -1.0} {-1 , 1} --Degrees?
|
||||
[110] = "%.4f", -- HorizontalILS {1.0, -1.0} {-1 , 1} --Degrees?
|
||||
[160] = "%.4f", -- ADI OFF Flag
|
||||
[1810] = "%.4f", -- Slipball {-1.0, 1.0}, not animate
|
||||
[120] = "%.4f", -- AoA
|
||||
-- Main altimeter
|
||||
[114] = "%.4f", -- Altimeter_10000m {0.0, 1.0} {0.0, 10000}
|
||||
[113] = "%.4f", -- Altimeter_1000m {0.0, 1.0} {0.0, 1000}
|
||||
[2008] = "%.f", -- Altimeter OFF
|
||||
-- Altimeter setting 1 hPa
|
||||
[115] = "%.4f", -- AltimeterSetting_000X
|
||||
[116] = "%.4f", -- AltimeterSetting_00X0
|
||||
[117] = "%.4f", -- AltimeterSetting_0X00
|
||||
[118] = "%.4f", -- AltimeterSetting_X000
|
||||
-- Frequency
|
||||
-- FM/AM Radio
|
||||
[177] = "%.4f", -- MHz_X00
|
||||
[178] = "%.4f", -- MHz_0X0
|
||||
[179] = "%.4f", -- MHz_00X
|
||||
[180] = "%.4f", -- KHz_X00
|
||||
[181] = "%.4f", -- KHz_0X0
|
||||
[182] = "%.4f", -- KHz_00X
|
||||
-- Centre
|
||||
-- CI Instruments
|
||||
[128] = "%.4f", -- CIHeading {1.0, -1.0}
|
||||
[129] = "%.4f", -- CICommandedHeading {1.0, 0.0}
|
||||
[163] = "%.4f", -- CI OFF Flag 0.0=OFF, 1.0=fade in
|
||||
[3000] = "%.2f", -- Radar Scan Zone, 0.0=off, >= 0.1=15, >= 0.2=30, >= 0.3=60, >=0.4=120
|
||||
-- Right Side
|
||||
-- ENGINE
|
||||
[139] = "%.4f", -- Engine_RPM_100 {-1.0, 1.0} {0.0, 1.1}
|
||||
[140] = "%.4f", -- Engine_RPM_10
|
||||
-- Accelerometer
|
||||
[136] = "%.4f", -- VerticalAcceleration {-0.3, 1.0} { -2.0, 9.0}
|
||||
-- Backup instruments
|
||||
[127] = "%.4f", -- MagneticHeading {1.0, -1.0}
|
||||
[138] = "%.4f", -- IndicatedAirSpeedBackup {0.0, 0.01, 0.05, 0.10, 0.15, 0.20, 0.25, 0.30, 0.40, 0.50, 0.60, 0.70, 0.80, 0.90, 1.0} {0.0, 56.39, 60.56, 65.83, 70.83, 75.83, 81.11, 86.11, 100.0, 113.9, 130.55, 150.0, 170.8, 193.0, 222.22} --m/s
|
||||
[121] = "%.4f", -- BackupPitch {1.0, -1.0}
|
||||
[122] = "%.4f", -- BackupRoll {1.0, -1.0}
|
||||
[125] = "%.4f", -- BackupAltimeter_10000m {0.0, 1.0} {0.0, 10000}
|
||||
[124] = "%.4f", -- BackupAltimeter_1000m {0.0, 1.0} {0.0, 1000}
|
||||
-- BackupAltimeter setting 1 hPa
|
||||
[468] = "%.4f", -- BackupAltimeterSetting_000X
|
||||
[467] = "%.4f", -- BackupAltimeterSetting_00X0
|
||||
[466] = "%.4f", -- BackupAltimeterSetting_0X00
|
||||
[465] = "%.4f", -- BackupAltimeterSetting_X000
|
||||
-- Distance indicator
|
||||
[142] = "%.4f", -- Distance {0.0, 0.4} {0.0, 40.0}
|
||||
[143] = "%.1f", -- km/mil Display 0.0=km >0.8=mil
|
||||
-- Fuel Gauge
|
||||
[144] = "%.4f", -- FuelGauge {0.0, 1.0} {0.0, 135.0}
|
||||
[145] = "%.4f", -- FuelNeeded {0.0, 1.0} {0.0, 135.0}
|
||||
-- Clock
|
||||
[130] = "%.4f", -- Hour
|
||||
[131] = "%.4f", -- Minute
|
||||
[133] = "%.4f", -- Second (Arrow)
|
||||
[1333] = "%.4f", -- Second
|
||||
--
|
||||
[141] = "%.4f", -- Engine pressure ratio EPR indicator
|
||||
-- INSTRUMENTS Right Panel
|
||||
[147] = "%.4f", -- Engine nozzle indicator
|
||||
[146] = "%.4f", -- Exhaust Gas Temperature indicator Engine_TEMP {0.0, 1.00} {100, 800}
|
||||
[148] = "%.4f", -- Oxygen pressure indicator
|
||||
-- INSTRUMENTS Left Panel
|
||||
[2005] = "%.4f", -- Cabin pressure indicator
|
||||
[150] = "%.4f", -- Brake pressure indicator
|
||||
[151] = "%.4f", -- Pitch trim indicator
|
||||
-- Lamps/Lights
|
||||
-- Left Warning Lampen Panel
|
||||
-- Left Side
|
||||
[406] = "%.f", -- BRAND
|
||||
[407] = "%.f", -- BRAND
|
||||
[408] = "%.f", -- BRÄ UPPF
|
||||
[409] = "%.f", -- XTANK BRÄ
|
||||
[410] = "%.f", -- TANK PUMP
|
||||
[411] = "%.f", -- LANDSTÄLL
|
||||
[412] = "%.f", -- FÖRV FÖRBJ
|
||||
[413] = "%.f", -- NOSSTÄLL
|
||||
[414] = "%.f", -- V-STÄLL
|
||||
[415] = "%.f", -- H-STÄLL
|
||||
-- Right Side
|
||||
[416] = "%.f", -- TIPP VÄXEL
|
||||
[417] = "%.f", -- ELFEL
|
||||
[418] = "%.f", -- RESERVEFF
|
||||
[419] = "%.f", -- HYDR-TR2
|
||||
[420] = "%.f", -- HYDR-TR1
|
||||
[421] = "%.f", -- AFK FEL
|
||||
[422] = "%.f", -- EJ REV
|
||||
[423] = "%.f", -- OLJETRYCK
|
||||
-- Right Warning Lampen Panel
|
||||
-- Left Side
|
||||
[424] = "%.f", -- SPAK
|
||||
[425] = "%.f", -- HALL FUNK
|
||||
[426] = "%.f", -- RHM FEL
|
||||
[427] = "%.f", -- ROLLVÄXEL
|
||||
[428] = "%.f", -- CK
|
||||
[429] = "%.f", -- KABINHÖJD
|
||||
[430] = "%.f", -- HUV o STOLL
|
||||
[431] = "%.f", -- TÄNDSYST
|
||||
[432] = "%.f", -- STARTSYST
|
||||
[433] = "%.f", -- MAN BR REG
|
||||
-- Right Side
|
||||
[434] = "%.f", -- SYRGAS
|
||||
[435] = "%.f", -- BRÄ < 24
|
||||
[436] = "%.f", -- BRAND GTS
|
||||
[437] = "%.f", -- TILS
|
||||
[438] = "%.f", -- NAV-SYST
|
||||
[439] = "%.f", -- KB-V SLUT
|
||||
[440] = "%.f", -- KB-H/KA SL
|
||||
[441] = "%.f", -- FACKL SL
|
||||
[442] = "%.f", -- MOTVERK
|
||||
[443] = "%.f", -- LUFTBROMS
|
||||
-- Masterwarning lamp HUVUDVARNING
|
||||
[444] = "%.f", -- HUVUDVARNING - left lamp
|
||||
[445] = "%.f", -- HUVUDVARNING - right lamp
|
||||
-- Central Indicator
|
||||
[450] = "%.f", -- Altitude warning light
|
||||
-- RWR lights
|
||||
[451] = "%.f", -- 1 o'clock light
|
||||
[452] = "%.f", -- 3 o'clock light
|
||||
[453] = "%.f", -- 5 o'clock light
|
||||
[454] = "%.f", -- 7 o'clock light
|
||||
[455] = "%.f", -- 9 o'clock light
|
||||
[456] = "%.f", -- 11 o'clock light
|
||||
-- right main panel
|
||||
[461] = "%.f", -- Stores released indicator light (FÄLLD LAST)
|
||||
[462] = "%.f", -- Reserve and transonic indicator (REVAVDR TRANSONIC) red "REV" light
|
||||
-- 1,2,3 Lamps
|
||||
[405] = "%.1f", -- Afterburner zone indicator 0.0=off, >= 0.3=1, >= 0.6=2, >= 0.9=3
|
||||
-- left main panel
|
||||
[463] = "%.f", -- Auto throttle mode indicator light
|
||||
[464] = "%.f", -- Alpha 15.5° button (for AFK)
|
||||
[460] = "%.f", -- Reserve and transonic indicator (REVAVDR TRANSONIC) green "REV" light
|
||||
-- SA06 functionality lamps (Autopilot)
|
||||
[401] = "%.f", -- SPAK Lamp
|
||||
[402] = "%.f", -- ATT Lamp
|
||||
[403] = "%.f" -- HOJD Lamp
|
||||
}
|
||||
ExportScript.ConfigArguments =
|
||||
{
|
||||
--[[
|
||||
arguments for export in low tick interval
|
||||
based on "clickabledata.lua"
|
||||
]]
|
||||
-- Stick
|
||||
--[8] = "%1d", -- Mastersafe
|
||||
--[3] = "%.4f" -- Stick horizontal
|
||||
--[2] = "%.4f" -- Stick vertical
|
||||
--
|
||||
[12] = "%1d", -- Gear Handle
|
||||
[20] = "%1d", -- Reverser Handle
|
||||
[401] = "%1d", -- SPAK
|
||||
[402] = "%1d", -- Attitude Hold ATT
|
||||
[403] = "%1d", -- Altitude Hold HOJD
|
||||
[464] = "%1d", -- AFK 15 Deg Mode
|
||||
[213] = "%1d", -- Doppler Land/Sea Mode
|
||||
--[0] = "%.3f", -- Altimeter Setting (Axis) {0.0,1.0} in 0.001 steps
|
||||
-- Datapanel
|
||||
[200] = "%1d", -- Datapanel Selector
|
||||
[201] = "%1d", -- Datapanel IN/OUT Switch
|
||||
[290] = "%1d", -- Datapanel Key 0
|
||||
[291] = "%1d", -- Datapanel Key 1
|
||||
[292] = "%1d", -- Datapanel Key 2
|
||||
[293] = "%1d", -- Datapanel Key 3
|
||||
[294] = "%1d", -- Datapanel Key 4
|
||||
[295] = "%1d", -- Datapanel Key 5
|
||||
[296] = "%1d", -- Datapanel Key 6
|
||||
[297] = "%1d", -- Datapanel Key 7
|
||||
[298] = "%1d", -- Datapanel Key 8
|
||||
[299] = "%1d", -- Datapanel Key 9
|
||||
-- NAvigations Panel
|
||||
[271] = "%1d", -- Navigation Selector Button B1
|
||||
[272] = "%1d", -- Navigation Selector Button B2
|
||||
[273] = "%1d", -- Navigation Selector Button B3
|
||||
[274] = "%1d", -- Navigation Selector Button B4
|
||||
[275] = "%1d", -- Navigation Selector Button B5
|
||||
[276] = "%1d", -- Navigation Selector Button B6
|
||||
[277] = "%1d", -- Navigation Selector Button B7
|
||||
[278] = "%1d", -- Navigation Selector Button B8
|
||||
[279] = "%1d", -- Navigation Selector Button B9
|
||||
[280] = "%1d", -- Navigation Selector Button BX
|
||||
[270] = "%1d", -- Navigation Selector Button LS
|
||||
[281] = "%1d", -- Navigation Selector Button L MÅL
|
||||
[282] = "%.1f", -- TILS Channel Selection {0.0,0.1,0.2,...,0.9,1.0}
|
||||
[283] = "%1d", -- RHM switch, Radar Altimeter Power
|
||||
[285] = "%1d", -- TILS Channel Layer Selection 11-20/1-10
|
||||
---
|
||||
[344] = "%1d", -- Warning Panel Light Test
|
||||
[315] = "%1d", -- Indicator System Test
|
||||
[175] = "%1d", -- Max G Reset
|
||||
---
|
||||
[250] = "%1d", -- Anti Collision Lights
|
||||
[251] = "%1d", -- Navigation Lights {-1.0,0.0,1.0}
|
||||
[252] = "%1d", -- Formation Lights
|
||||
[253] = "%1d", -- Position Lights
|
||||
[254] = "%.1f", -- Position Lights Brightness {0.0,0.1,0.2}
|
||||
---
|
||||
[392] = "%.2f", -- Panel Lights (Axis) {0.0,1.0} in 0.05 steps
|
||||
[393] = "%.2f", -- Flood Lights (Axis) {0.0,1.0} in 0.05 steps
|
||||
[394] = "%.2f", -- Instrument Lights (Axis) {0.0,1.0} in 0.05 steps
|
||||
-- Engine panel
|
||||
[206] = "%1d", -- Start System
|
||||
[204] = "%1d", -- Low-pressure Fuel Valve
|
||||
[202] = "%1d", -- High-pressure Fuel Valve
|
||||
[205] = "%1d", -- Ignition System
|
||||
[310] = "%1d", -- Engine De-Ice
|
||||
[312] = "%1d", -- Backup Generator
|
||||
[21] = "%1d", -- Ejection Seat Arm
|
||||
[208] = "%1d", -- Restart
|
||||
[203] = "%1d", -- Main Electric Power
|
||||
[207] = "%1d", -- Generator
|
||||
[209] = "%0.1f",-- Master Mode Selector Bailey
|
||||
[446] = "%1d", -- Master Caution Reset
|
||||
[323] = "%1d", -- Slav SI
|
||||
[324] = "%1d", -- HÖJD CISI
|
||||
--[0] = "%1d", -- Snabbresning
|
||||
--[123] = "%1d", -- Backup ADI Cage
|
||||
--[126] = "%.3f", -- Backup Altimeter Setting (Axis) {0.0,1.0} in 0.001 steps
|
||||
[311] = "%1d", -- Pitch Gear Automatic/Landing
|
||||
-- Countermeasure panel
|
||||
[317] = "%.1f", -- Jammer Operation Mode Selector {0.0,0.1,0.2,0.3,0.4}
|
||||
[318] = "%.1f", -- Jammer Band Selector {0.0,0.1,0.2,0.3,0.4}
|
||||
[319] = "%.1f", -- Countermeasure Operation Mode Selector {0.0,0.1,0.2,0.3,0.4}
|
||||
[320] = "%.1f", -- Countermeasure Streak Mode Selector {0.0,0.1}
|
||||
[321] = "%.1f", -- Radarwarning Indication Selector {0.0,0.1,0.2}
|
||||
[322] = "%.1f", -- Countermeasure Chaff/Flares Selector {0.0,0.1,0.2}
|
||||
-- Oxygen
|
||||
[176] = "%1d", -- Oxygen Lever
|
||||
-- Canopy
|
||||
[9] = "%1d", -- Canopy Open/Close {-1.0,0.0,1.0}
|
||||
[210] = "%1d", -- Canopy Jettison
|
||||
---
|
||||
[184] = "%1d", -- Countermeasure Release {-1.0,0.0,1.0}
|
||||
[316] = "%1d", -- Manual Fuel Regulator
|
||||
[212] = "%1d", -- Roll Centering
|
||||
[390] = "%1d", -- Emergency Roll Trim {-1.0,0.0,1.0}
|
||||
[389] = "%1d", -- Emergency Pitch Trim {-1.0,0.0,1.0}
|
||||
[388] = "%1d", -- Emergency Yaw Trim {-1.0,0.0,1.0}
|
||||
[313] = "%1d", -- Manual Afterburner Fuel Regulator
|
||||
[11] = "%1d", -- HUD Reflector Glass Position
|
||||
[180] = "%.2f", -- HUD Brightness Knob (Axis) {0.0,1.0} in 0.02 steps
|
||||
[13] = "%1d", -- AFK Lever
|
||||
[464] = "%1d", -- AFK Mode 3
|
||||
[22] = "%1d", -- Parking Brake
|
||||
-- Radio
|
||||
[171] = "%.1f", -- Radio Manual Frequency Setting Knob Inner Left (Axis) {0.0,1.0} in 0.1 steps
|
||||
[172] = "%.1f", -- Radio Manual Frequency Setting Knob Outer Left (Axis) {0.0,1.0} in 0.1 steps
|
||||
[173] = "%.1f", -- Radio Manual Frequency Setting Knob Inner Right (Axis) {0.0,1.0} in 0.1 steps
|
||||
[174] = "%.1f", -- Radio Manual Frequency Setting Knob Outer Right (Axis) {0.0,1.0} in 0.1 steps
|
||||
[170] = "%1d", -- Radio Manual Frequency Setting Modulation
|
||||
---
|
||||
[372] = "%1d", -- Flight 0
|
||||
[373] = "%1d", -- Flight 1
|
||||
[374] = "%1d", -- Flight 2
|
||||
[375] = "%1d", -- Flight 3
|
||||
[376] = "%1d", -- Flight 4
|
||||
[377] = "%1d", -- Flight 5
|
||||
[378] = "%1d", -- Flight 6
|
||||
[379] = "%1d", -- Flight 7
|
||||
[380] = "%1d", -- Flight 8
|
||||
[381] = "%1d", -- Flight 9
|
||||
[362] = "%1d", -- Channel H
|
||||
[363] = "%1d", -- Special 1
|
||||
[364] = "%1d", -- Special 2
|
||||
[365] = "%1d", -- Special 3
|
||||
[366] = "%1d", -- Minus
|
||||
[367] = "%1d", -- Channel A/G
|
||||
[368] = "%1d", -- Channel B
|
||||
[369] = "%1d", -- Channel C/F
|
||||
[370] = "%1d", -- Channel C2
|
||||
[371] = "%1d", -- Channel D/E
|
||||
---
|
||||
[386] = "%1d", -- FR22 Mode Selector {-1.0,0.0,1.0}
|
||||
[361] = "%1d", -- Base Selector {-1.0,0.0,1.0}
|
||||
[360] = "%1d", -- Group Selector {-1.0,0.0,1.0}
|
||||
---
|
||||
[382] = "%1d", -- Ground Intercom
|
||||
-- Weapons system
|
||||
-- trigger safety bracket
|
||||
[8] = "%1d", -- Trigger Safety Bracket
|
||||
[260] = "%1d", -- Weapon Emergency Release Cover
|
||||
[261] = "%1d", -- Weapon Emergency Release Button
|
||||
[262] = "%1d", -- External Tank Release Cover
|
||||
[263] = "%1d", -- External Tank Release Button
|
||||
[264] = "%.1f", -- Weapon Selector Knob - J/A Valjare {0.0,0.1,0.2,0.3,0.4,0.5}
|
||||
[265] = "%.1f", -- Weapon Interval Selector Mode Knob - Siktningvaljare {0.0,0.1,0.2,...,0.9,1.0}
|
||||
[266] = "%1d", -- Weapon Release Mode Switch - Fallsattomkopplare
|
||||
[267] = "%1d", -- RB-04/RB-15/BK Release Mode Switch - MALVAL/PREP
|
||||
-- IFF panel
|
||||
[308] = "%1d", -- IFF Power
|
||||
[309] = "%.1f", -- IFF Code {0.0,0.1,0.2,...,0.9,1.0}
|
||||
-- CB Circuit breakers
|
||||
[302] = "%1d", -- CB Autopilot SA
|
||||
[303] = "%1d", -- CB High Alpha Warning
|
||||
[304] = "%1d", -- CB Trim System
|
||||
[305] = "%1d", -- CB CI/SI
|
||||
[306] = "%1d", -- CB Ejection System
|
||||
[307] = "%1d", -- CB CB Engine
|
||||
-- Radar
|
||||
[217] = "%.1f", -- Anti Jamming Mode (AS) Selector {0.0,0.1,0.2,...,0.6,0.7}
|
||||
[214] = "%1d", -- Lin/Log Radar Gain Switch
|
||||
[218] = "%1d", -- Pulse Normal/Short Switch
|
||||
[216] = "%1d", -- Passive Recce On/Off Switch
|
||||
[391] = "%.3f", -- Radar Brightness (Axis) {0.0,1.0} in 0.001 steps
|
||||
-- Cabin air
|
||||
-- Var
|
||||
[286] = "%.3f", -- Windscreen De-Ice (Axis) {0.0,1.0} in 0.001 steps
|
||||
[675] = "%.3f", -- Maintenance Testing Mode (Axis) {0.0,1.0} in 0.001 steps
|
||||
[1006] = "%1d", -- Radar/EL Maintenance Test
|
||||
[1200] = "%1d", -- Magnetic Declination Cover
|
||||
[396] = "%.3f", -- Drysuit Ventilation Adjustment (Axis) {0.0,1.0} in 0.001 steps
|
||||
[395] = "%1d", -- Ignition Coils
|
||||
[1206] = "%1d", -- DME Selector
|
||||
[1203] = "%1d", -- IFF/Transponder Power
|
||||
[1204] = "%1d", -- IFF Channel Selector
|
||||
[1205] = "%1d", -- IFF Identification
|
||||
[384] = "%1d", -- Flight Recorder {-1.0,0.0,1.0}
|
||||
[385] = "%.5f", -- Radio Volume (Axis) {0.0,1.0} in 0.00001 steps
|
||||
--??[4200] = "%1d", -- Insert/Remove Data Cartridge
|
||||
[300] = "%1d", -- Rensa Button Cover
|
||||
[301] = "%1d", -- CK37 Rensa (Clear)
|
||||
--
|
||||
[398] = "%1d", -- Cabin Air Valve
|
||||
[493] = "%1d", -- Autopilot Yaw Trim Cover
|
||||
[211] = "%.2f", -- Autopilot yaw correction RENFLYGN (Axis) {0.0,1.0} in 0.01 steps
|
||||
[400] = "%1d", -- Missile Select Button
|
||||
[399] = "%.3f", -- Master Volume / Sidewinder Tone (Axis) {0.0,1.0} in 0.001 steps
|
||||
[1201] = "%.1f", -- Magnetic Declination Correction (Axis) {0.0,1.0} in 0.1 steps
|
||||
-- Clock
|
||||
[135] = "%.3f", -- Clock Setting
|
||||
}
|
||||
|
||||
-----------------------------
|
||||
-- HIGH IMPORTANCE EXPORTS --
|
||||
-- done every export event --
|
||||
-----------------------------
|
||||
|
||||
-- Pointed to by ProcessIkarusDCSHighImportance
|
||||
function ExportScript.ProcessIkarusDCSConfigHighImportance(mainPanelDevice)
|
||||
--[[
|
||||
every frame export to Ikarus
|
||||
Example from A-10C
|
||||
Get Radio Frequencies
|
||||
get data from device
|
||||
local lUHFRadio = GetDevice(54)
|
||||
ExportScript.Tools.SendData("ExportID", "Format")
|
||||
ExportScript.Tools.SendData(2000, string.format("%7.3f", lUHFRadio:get_frequency()/1000000)) -- <- special function for get frequency data
|
||||
ExportScript.Tools.SendData(2000, ExportScript.Tools.RoundFreqeuncy((UHF_RADIO:get_frequency()/1000000))) -- ExportScript.Tools.RoundFreqeuncy(frequency (MHz|KHz), format ("7.3"), PrefixZeros (false), LeastValue (0.025))
|
||||
]]
|
||||
end
|
||||
|
||||
function ExportScript.ProcessDACConfigHighImportance(mainPanelDevice)
|
||||
--[[
|
||||
every frame export to DAC
|
||||
Example from A-10C
|
||||
Get Radio Frequencies
|
||||
get data from device
|
||||
local UHF_RADIO = GetDevice(54)
|
||||
ExportScript.Tools.SendDataDAC("ExportID", "Format")
|
||||
ExportScript.Tools.SendDataDAC("ExportID", "Format", HardwareConfigID)
|
||||
ExportScript.Tools.SendDataDAC("2000", string.format("%7.3f", UHF_RADIO:get_frequency()/1000000))
|
||||
ExportScript.Tools.SendDataDAC("2000", ExportScript.Tools.RoundFreqeuncy((UHF_RADIO:get_frequency()/1000000))) -- ExportScript.Tools.RoundFreqeuncy(frequency (MHz|KHz), format ("7.3"), PrefixZeros (false), LeastValue (0.025))
|
||||
]]
|
||||
end
|
||||
|
||||
-----------------------------------------------------
|
||||
-- LOW IMPORTANCE EXPORTS --
|
||||
-- done every gExportLowTickInterval export events --
|
||||
-----------------------------------------------------
|
||||
|
||||
-- Pointed to by ExportScript.ProcessIkarusDCSConfigLowImportance
|
||||
function ExportScript.ProcessIkarusDCSConfigLowImportance(mainPanelDevice)
|
||||
--[[
|
||||
export in low tick interval to Ikarus
|
||||
Example from A-10C
|
||||
Get Radio Frequencies
|
||||
get data from device
|
||||
local lUHFRadio = GetDevice(54)
|
||||
ExportScript.Tools.SendData("ExportID", "Format")
|
||||
ExportScript.Tools.SendData(2000, string.format("%7.3f", lUHFRadio:get_frequency()/1000000)) -- <- special function for get frequency data
|
||||
ExportScript.Tools.SendData(2000, ExportScript.Tools.RoundFreqeuncy((UHF_RADIO:get_frequency()/1000000))) -- ExportScript.Tools.RoundFreqeuncy(frequency (MHz|KHz), format ("7.3"), PrefixZeros (false), LeastValue (0.025))
|
||||
]]
|
||||
|
||||
local lFR22Radio = GetDevice(31)
|
||||
--ExportScript.Tools.SendData(2500, string.format("%7.3f", lFR22Radio:get_frequency()/1000000)) -- full frequency
|
||||
ExportScript.Tools.SendData(2500, ExportScript.Tools.RoundFreqeuncy(lFR22Radio:get_frequency()/1000000)) -- full frequency
|
||||
local lMHz = string.format("%0.0f", lFR22Radio:get_frequency()/1000000)
|
||||
local lKHz = string.sub(string.format("%0.3f", string.format("%.3f", lFR22Radio:get_frequency()/1000000) - lMHz), 3)
|
||||
ExportScript.Tools.SendData(2501, lMHz) -- slice frequency MHz
|
||||
ExportScript.Tools.SendData(2502, lKHz) -- slice frequency KHz
|
||||
|
||||
local TotalMhz = string.format(lMHz .. ".".. lKHz)
|
||||
ExportScript.Tools.SendData(2503, TotalMhz) -- Total Frequency Bailey
|
||||
|
||||
-- 1,2,3 Lamps
|
||||
--[405] = "%.1f", -- Afterburner zone indicator 0.0=off, >= 0.3=1, >= 0.6=2, >= 0.9=3
|
||||
local lAfterburnerZoneIndicator = mainPanelDevice:get_argument_value(405)
|
||||
|
||||
if lAfterburnerZoneIndicator >= 0.9 then
|
||||
ExportScript.Tools.SendData(2510, 1) -- Afterburner 1
|
||||
ExportScript.Tools.SendData(2511, 1) -- Afterburner 2
|
||||
ExportScript.Tools.SendData(2512, 1) -- Afterburner 3
|
||||
elseif lAfterburnerZoneIndicator >= 0.6 then
|
||||
ExportScript.Tools.SendData(2510, 1)
|
||||
ExportScript.Tools.SendData(2511, 1)--ExportScript.Tools.SendDataDAC(2511, 2)
|
||||
ExportScript.Tools.SendData(2512, 0)
|
||||
elseif lAfterburnerZoneIndicator >= 0.3 then
|
||||
ExportScript.Tools.SendData(2510, 1)
|
||||
ExportScript.Tools.SendData(2511, 0)
|
||||
ExportScript.Tools.SendData(2512, 0)
|
||||
else
|
||||
ExportScript.Tools.SendData(2510, 0)
|
||||
ExportScript.Tools.SendData(2511, 0)
|
||||
ExportScript.Tools.SendData(2512, 0)
|
||||
end
|
||||
|
||||
-- Cockpit Light
|
||||
ExportScript.Tools.IkarusCockpitLights(mainPanelDevice, {392, 393, 394})
|
||||
-- Panel Lights, Flood Lights, Instrument Lights
|
||||
|
||||
--AoA in Units Bailey
|
||||
local AoaUnitValue = 30 * mainPanelDevice:get_argument_value(120)
|
||||
AoaUnitValue = string.format("%0.1f", AoaUnitValue)
|
||||
AoaUnitValue= string.format("AoA" .. "\n" .. AoaUnitValue)
|
||||
ExportScript.Tools.SendData(2520, AoaUnitValue) -- AoA in Units
|
||||
|
||||
end
|
||||
|
||||
function ExportScript.ProcessDACConfigLowImportance(mainPanelDevice)
|
||||
--[[
|
||||
export in low tick interval to DAC
|
||||
Example from A-10C
|
||||
Get Radio Frequencies
|
||||
get data from device
|
||||
local UHF_RADIO = GetDevice(54)
|
||||
ExportScript.Tools.SendDataDAC("ExportID", "Format")
|
||||
ExportScript.Tools.SendDataDAC("ExportID", "Format", HardwareConfigID)
|
||||
ExportScript.Tools.SendDataDAC("2000", string.format("%7.3f", UHF_RADIO:get_frequency()/1000000))
|
||||
ExportScript.Tools.SendDataDAC("2000", ExportScript.Tools.RoundFreqeuncy((UHF_RADIO:get_frequency()/1000000))) -- ExportScript.Tools.RoundFreqeuncy(frequency (MHz|KHz), format ("7.3"), PrefixZeros (false), LeastValue (0.025))
|
||||
]]
|
||||
|
||||
local lFR22Radio = GetDevice(31)
|
||||
--ExportScript.Tools.SendData(2500, string.format("%7.3f", lFR22Radio:get_frequency()/1000000)) -- full frequency
|
||||
ExportScript.Tools.SendData(2500, ExportScript.Tools.RoundFreqeuncy(lFR22Radio:get_frequency()/1000000)) -- full frequency
|
||||
local lMHz = string.format("%0.0f", lFR22Radio:get_frequency()/1000000)
|
||||
local lKHz = string.sub(string.format("%0.3f", string.format("%.3f", lFR22Radio:get_frequency()/1000000) - lMHz), 3)
|
||||
ExportScript.Tools.SendData(2501, lMHz) -- slice frequency MHz
|
||||
ExportScript.Tools.SendData(2502, lKHz) -- slice frequency KHz
|
||||
|
||||
local TotalMhz = string.format(lMHz .. ".".. lKHz)
|
||||
ExportScript.Tools.SendData(2503, TotalMhz) -- Total Frequency Bailey
|
||||
|
||||
-- 1,2,3 Lamps
|
||||
--[405] = "%.1f", -- Afterburner zone indicator 0.0=off, >= 0.3=1, >= 0.6=2, >= 0.9=3
|
||||
local lAfterburnerZoneIndicator = mainPanelDevice:get_argument_value(405)
|
||||
|
||||
if lAfterburnerZoneIndicator >= 0.9 then
|
||||
ExportScript.Tools.SendDataDAC(2510, 1) -- Afterburner 1
|
||||
ExportScript.Tools.SendDataDAC(2511, 1) -- Afterburner 2
|
||||
ExportScript.Tools.SendDataDAC(2512, 1) -- Afterburner 3
|
||||
elseif lAfterburnerZoneIndicator >= 0.6 then
|
||||
ExportScript.Tools.SendDataDAC(2510, 1)
|
||||
ExportScript.Tools.SendDataDAC(2511, 1)--ExportScript.Tools.SendDataDAC(2511, 2)
|
||||
ExportScript.Tools.SendDataDAC(2512, 0)
|
||||
elseif lAfterburnerZoneIndicator >= 0.3 then
|
||||
ExportScript.Tools.SendDataDAC(2510, 1)
|
||||
ExportScript.Tools.SendDataDAC(2511, 0)
|
||||
ExportScript.Tools.SendDataDAC(2512, 0)
|
||||
else
|
||||
ExportScript.Tools.SendDataDAC(2510, 0)
|
||||
ExportScript.Tools.SendDataDAC(2511, 0)
|
||||
ExportScript.Tools.SendDataDAC(2512, 0)
|
||||
end
|
||||
|
||||
--AoA in Units Bailey
|
||||
local AoaUnitValue = 30 * mainPanelDevice:get_argument_value(120)
|
||||
AoaUnitValue = string.format("%0.1f", AoaUnitValue)
|
||||
AoaUnitValue= string.format("AoA" .. "\n" .. AoaUnitValue)
|
||||
ExportScript.Tools.SendData(2520, AoaUnitValue) -- AoA in Units
|
||||
|
||||
--=====================================================================================
|
||||
--[[
|
||||
ExportScript.Tools.WriteToLog('list_cockpit_params(): '..ExportScript.Tools.dump(list_cockpit_params()))
|
||||
ExportScript.Tools.WriteToLog('CMSP: '..ExportScript.Tools.dump(list_indication(7)))
|
||||
|
||||
-- list_indication get tehe value of cockpit displays
|
||||
local ltmp1 = 0
|
||||
for ltmp2 = 0, 20, 1 do
|
||||
ltmp1 = list_indication(ltmp2)
|
||||
ExportScript.Tools.WriteToLog(ltmp2..': '..ExportScript.Tools.dump(ltmp1))
|
||||
end
|
||||
]]
|
||||
--[[
|
||||
-- getmetatable get function name from devices
|
||||
local ltmp1 = 0
|
||||
for ltmp2 = 1, 70, 1 do
|
||||
ltmp1 = GetDevice(ltmp2)
|
||||
ExportScript.Tools.WriteToLog(ltmp2..': '..ExportScript.Tools.dump(ltmp1))
|
||||
ExportScript.Tools.WriteToLog(ltmp2..' (metatable): '..ExportScript.Tools.dump(getmetatable(ltmp1)))
|
||||
end
|
||||
]]
|
||||
end
|
||||
|
||||
-----------------------------
|
||||
-- Custom functions --
|
||||
-----------------------------
|
||||
117
ExportsModules/Empty-DCS.lua
Normal file
117
ExportsModules/Empty-DCS.lua
Normal file
@@ -0,0 +1,117 @@
|
||||
-- Module Name Export
|
||||
|
||||
ExportScript.FoundDCSModule = true
|
||||
ExportScript.Version.<ModuleName> = "1.2.X"
|
||||
|
||||
ExportScript.ConfigEveryFrameArguments =
|
||||
{
|
||||
--[[
|
||||
every frames arguments
|
||||
based of "mainpanel_init.lua"
|
||||
Example (http://www.lua.org/manual/5.1/manual.html#pdf-string.format)
|
||||
[DeviceID] = "Format"
|
||||
[4] = "%.4f", <- floating-point number with 4 digits after point
|
||||
[19] = "%0.1f", <- floating-point number with 1 digit after point
|
||||
[129] = "%1d", <- decimal number
|
||||
[5] = "%.f", <- floating point number rounded to a decimal number
|
||||
]]
|
||||
}
|
||||
ExportScript.ConfigArguments =
|
||||
{
|
||||
--[[
|
||||
arguments for export in low tick interval
|
||||
based on "clickabledata.lua"
|
||||
]]
|
||||
}
|
||||
|
||||
-----------------------------
|
||||
-- HIGH IMPORTANCE EXPORTS --
|
||||
-- done every export event --
|
||||
-----------------------------
|
||||
|
||||
-- Pointed to by ProcessIkarusDCSHighImportance
|
||||
function ExportScript.ProcessIkarusDCSConfigHighImportance(mainPanelDevice)
|
||||
--[[
|
||||
every frame export to Ikarus
|
||||
Example from A-10C
|
||||
Get Radio Frequencies
|
||||
get data from device
|
||||
local lUHFRadio = GetDevice(54)
|
||||
ExportScript.Tools.SendData("ExportID", "Format")
|
||||
ExportScript.Tools.SendData(2000, string.format("%7.3f", lUHFRadio:get_frequency()/1000000)) -- <- special function for get frequency data
|
||||
ExportScript.Tools.SendData(2000, ExportScript.Tools.RoundFreqeuncy((UHF_RADIO:get_frequency()/1000000))) -- ExportScript.Tools.RoundFreqeuncy(frequency (MHz|KHz), format ("7.3"), PrefixZeros (false), LeastValue (0.025))
|
||||
]]
|
||||
end
|
||||
|
||||
function ExportScript.ProcessDACConfigHighImportance(mainPanelDevice)
|
||||
--[[
|
||||
every frame export to DAC
|
||||
Example from A-10C
|
||||
Get Radio Frequencies
|
||||
get data from device
|
||||
local UHF_RADIO = GetDevice(54)
|
||||
ExportScript.Tools.SendDataDAC("ExportID", "Format")
|
||||
ExportScript.Tools.SendDataDAC("ExportID", "Format", HardwareConfigID)
|
||||
ExportScript.Tools.SendDataDAC("2000", string.format("%7.3f", UHF_RADIO:get_frequency()/1000000))
|
||||
ExportScript.Tools.SendDataDAC("2000", ExportScript.Tools.RoundFreqeuncy((UHF_RADIO:get_frequency()/1000000))) -- ExportScript.Tools.RoundFreqeuncy(frequency (MHz|KHz), format ("7.3"), PrefixZeros (false), LeastValue (0.025))
|
||||
]]
|
||||
end
|
||||
|
||||
-----------------------------------------------------
|
||||
-- LOW IMPORTANCE EXPORTS --
|
||||
-- done every gExportLowTickInterval export events --
|
||||
-----------------------------------------------------
|
||||
|
||||
-- Pointed to by ExportScript.ProcessIkarusDCSConfigLowImportance
|
||||
function ExportScript.ProcessIkarusDCSConfigLowImportance(mainPanelDevice)
|
||||
--[[
|
||||
export in low tick interval to Ikarus
|
||||
Example from A-10C
|
||||
Get Radio Frequencies
|
||||
get data from device
|
||||
local lUHFRadio = GetDevice(54)
|
||||
ExportScript.Tools.SendData("ExportID", "Format")
|
||||
ExportScript.Tools.SendData(2000, string.format("%7.3f", lUHFRadio:get_frequency()/1000000)) -- <- special function for get frequency data
|
||||
ExportScript.Tools.SendData(2000, ExportScript.Tools.RoundFreqeuncy((UHF_RADIO:get_frequency()/1000000))) -- ExportScript.Tools.RoundFreqeuncy(frequency (MHz|KHz), format ("7.3"), PrefixZeros (false), LeastValue (0.025))
|
||||
]]
|
||||
end
|
||||
|
||||
function ExportScript.ProcessDACConfigLowImportance(mainPanelDevice)
|
||||
--[[
|
||||
export in low tick interval to DAC
|
||||
Example from A-10C
|
||||
Get Radio Frequencies
|
||||
get data from device
|
||||
local UHF_RADIO = GetDevice(54)
|
||||
ExportScript.Tools.SendDataDAC("ExportID", "Format")
|
||||
ExportScript.Tools.SendDataDAC("ExportID", "Format", HardwareConfigID)
|
||||
ExportScript.Tools.SendDataDAC("2000", string.format("%7.3f", UHF_RADIO:get_frequency()/1000000))
|
||||
ExportScript.Tools.SendDataDAC("2000", ExportScript.Tools.RoundFreqeuncy((UHF_RADIO:get_frequency()/1000000))) -- ExportScript.Tools.RoundFreqeuncy(frequency (MHz|KHz), format ("7.3"), PrefixZeros (false), LeastValue (0.025))
|
||||
]]
|
||||
|
||||
--=====================================================================================
|
||||
--[[
|
||||
ExportScript.Tools.WriteToLog('list_cockpit_params(): '..ExportScript.Tools.dump(list_cockpit_params()))
|
||||
ExportScript.Tools.WriteToLog('CMSP: '..ExportScript.Tools.dump(list_indication(7)))
|
||||
|
||||
-- list_indication get tehe value of cockpit displays
|
||||
local ltmp1 = 0
|
||||
for ltmp2 = 0, 20, 1 do
|
||||
ltmp1 = list_indication(ltmp2)
|
||||
ExportScript.Tools.WriteToLog(ltmp2..': '..ExportScript.Tools.dump(ltmp1))
|
||||
end
|
||||
]]
|
||||
--[[
|
||||
-- getmetatable get function name from devices
|
||||
local ltmp1 = 0
|
||||
for ltmp2 = 1, 70, 1 do
|
||||
ltmp1 = GetDevice(ltmp2)
|
||||
ExportScript.Tools.WriteToLog(ltmp2..': '..ExportScript.Tools.dump(ltmp1))
|
||||
ExportScript.Tools.WriteToLog(ltmp2..' (metatable): '..ExportScript.Tools.dump(getmetatable(ltmp1)))
|
||||
end
|
||||
]]
|
||||
end
|
||||
|
||||
-----------------------------
|
||||
-- Custom functions --
|
||||
-----------------------------
|
||||
1448
ExportsModules/F-14B.lua
Normal file
1448
ExportsModules/F-14B.lua
Normal file
File diff suppressed because it is too large
Load Diff
1212
ExportsModules/F-16C_50.lua
Normal file
1212
ExportsModules/F-16C_50.lua
Normal file
File diff suppressed because it is too large
Load Diff
717
ExportsModules/F-5E-3.lua
Normal file
717
ExportsModules/F-5E-3.lua
Normal file
@@ -0,0 +1,717 @@
|
||||
-- F-5E-3
|
||||
|
||||
ExportScript.FoundDCSModule = true
|
||||
ExportScript.Version.F5E3 = "1.2.1"
|
||||
|
||||
ExportScript.ConfigEveryFrameArguments =
|
||||
{
|
||||
--[[
|
||||
every frames arguments
|
||||
based of "mainpanel_init.lua"
|
||||
Example (http://www.lua.org/manual/5.1/manual.html#pdf-string.format)
|
||||
[DeviceID] = "Format"
|
||||
[4] = "%.4f", <- floating-point number with 4 digits after point
|
||||
[19] = "%0.1f", <- floating-point number with 1 digit after point
|
||||
[129] = "%1d", <- decimal number
|
||||
[5] = "%.f", <- floating point number rounded to a decimal number
|
||||
]]
|
||||
-- Gear System
|
||||
[97] = "%.4f", -- AlterReleaseRods
|
||||
-- Cockpit mechanics
|
||||
[712] = "%.4f", -- CanopyHandle
|
||||
-- WEAPONS ----------------------------------------------------
|
||||
-- CMDS
|
||||
[401] = "%.4f", -- ChaffDrumCounter_10 {0.0, 1.0} {0.0, 10.0}
|
||||
[402] = "%.4f", -- ChaffDrumCounter_1 {0.0, 1.0} {0.0, 10.0}
|
||||
[405] = "%.4f", -- FlareDrumCounter_10 {0.0, 1.0} {0.0, 10.0}
|
||||
[406] = "%.4f", -- FlareDrumCounter_1 {0.0, 1.0} {0.0, 10.0}
|
||||
-- AN/ASG-31 Sight
|
||||
[43] = "%.4f", -- RetDepressionDrum_100 {0.0, 1.0} {0.0, 10.0}
|
||||
[44] = "%.4f", -- RetDepressionDrum_10 {0.0, 1.0} {0.0, 10.0}
|
||||
[45] = "%.4f", -- RetDepressionDrum_1 {0.0, 1.0} {0.0, 10.0}
|
||||
-- Slipball
|
||||
[3] = "%.4f", -- Slipball {-1.0, 1.0}
|
||||
-- Sight Camera
|
||||
[85] = "%.4f", -- MotorRunKnob {1.0, 0.0}
|
||||
-- AN/APQ-159 Radar
|
||||
-- Range scale lights
|
||||
[155] = "%.4f", -- RangeScale_5
|
||||
[156] = "%.4f", -- RangeScale_10
|
||||
[157] = "%.4f", -- RangeScale_20
|
||||
[158] = "%.4f", -- RangeScale_40
|
||||
[159] = "%.f", -- InRangeLight
|
||||
[160] = "%.f", -- FailLight
|
||||
[161] = "%.f", -- LockOnLight
|
||||
[162] = "%.f", -- ExcessGLight
|
||||
[163] = "%.4f", -- ScaleBrightness
|
||||
-- INSTRUMENTS ------------------------------------------------
|
||||
-- Angle-of-attack Indicator
|
||||
[7] = "%.4f", -- AOA_Units {0.0, 1.0} {0.0, 30.0}
|
||||
[704] = "%.f", -- AOA_poweroff_flag
|
||||
-- Accelerometer
|
||||
[6] = "%.4f", -- Accelerometer { 0.0, 0.323, 0.653, 1.0} {-5.0, 0.0, 5.0, 10.0}
|
||||
[902] = "%.4f", -- AccelerometerMin { 0.0, 0.323, 0.653, 1.0} {-5.0, 0.0, 5.0, 10.0}
|
||||
[903] = "%.4f", -- AccelerometerMax { 0.0, 0.323, 0.653, 1.0} {-5.0, 0.0, 5.0, 10.0}
|
||||
-- AirSpeed/Mach Indicator
|
||||
[8] = "%.4f", -- Airspeed {0.0, 0.0435, 0.1, 0.318, 0.3745, 0.397, 0.4495, 0.482, 0.54, 0.553, 0.6145, 0.658, 0.668, 0.761, 0.801, 0.877, 0.909, 0.942, 0.972, 1.0} {0.0, 80.0, 100.0, 170.0, 190.0, 200.0, 230.0, 250.0, 290.0, 300.0, 350.0, 390.0, 400.0, 500.0, 550.0, 650.0, 700.0, 750.0, 800.0, 850.0}
|
||||
[178] = "%.4f", -- MaxAirspeed {0.0, 0.0435, 0.1, 0.318, 0.3745, 0.397, 0.4495, 0.482, 0.54, 0.553, 0.6145, 0.658, 0.668, 0.761, 0.801, 0.877, 0.909, 0.942, 0.972, 1.0} {0.0, 80.0, 100.0, 170.0, 190.0, 200.0, 230.0, 250.0, 290.0, 300.0, 350.0, 390.0, 400.0, 500.0, 550.0, 650.0, 700.0, 750.0, 800.0, 850.0}
|
||||
[177] = "%.4f", -- SetAirspeed
|
||||
[179] = "%.4f", -- MachIndicator {1.0, 0.957, 0.92, 0.631, 0.386} {0.0, 0.5, 1.0, 1.8, 2.5}
|
||||
-- Vertical Velocity Indicator
|
||||
[24] = "%.4f", -- Variometer {-1.0, -0.64, -0.5, -0.29, 0.0, 0.29, 0.5, 0.64, 1.0} {-6000.0, -3000.0, -2000.0, -1000.0, 0.0, 1000.0, 2000.0, 3000.0, 6000.0}
|
||||
-- Altimeter AAU-34/A
|
||||
[10] = "%.4f", -- Altimeter_100_footPtr {0.0, 1.0} {0.0, 1000.0}
|
||||
[11] = "%.4f", -- Altimeter_10000_footCount {0.0, 1.0} {0.0, 10.0}
|
||||
[520] = "%.4f", -- Altimeter_1000_footCount {0.0, 1.0} {0.0, 10.0}
|
||||
[521] = "%.4f", -- Altimeter_100_footCount {0.0, 1.0} {0.0, 10.0}
|
||||
[59] = "%.4f", -- pressure_setting_0 {0.0, 1.0} {0.0, 10.0}
|
||||
[58] = "%.4f", -- pressure_setting_1 {0.0, 1.0} {0.0, 10.0}
|
||||
[57] = "%.4f", -- pressure_setting_2 {0.0, 1.0} {0.0, 10.0}
|
||||
[56] = "%.4f", -- pressure_setting_3 {0.0, 1.0} {0.0, 10.0}
|
||||
[9] = "%.4f", -- AAU34_PNEU_flag {0.0, 1.0} {0.0, 0.4}
|
||||
-- Attitude Indicator ARU-20
|
||||
[81] = "%.4f", -- AI_Pitch {-0.507, 0.0, 0.507} {-rad_(90.0), 0.0, rad_(90.0)}
|
||||
[30] = "%.4f", -- AI_Bank {-1.0, 1.0} { 0.0, math.pi * 2.0}
|
||||
[149] = "%.4f", -- AI_OFF_flag
|
||||
-- Horizontal Situation Indicator
|
||||
[32] = "%.4f", -- HSI_CompassCard
|
||||
[139] = "%.4f", -- HSI_BearingPtr
|
||||
[35] = "%.4f", -- HSI_CourseArrow
|
||||
[36] = "%.4f", -- HSI_CourseDevInd {-1.0, 1.0}
|
||||
[144] = "%.4f", -- HSI_HeadingMark
|
||||
[268] = "%.4f", -- HSI_Range_100 {0.0, 1.0} {0.0, 10.0}
|
||||
[269] = "%.4f", -- HSI_Range_10 {0.0, 1.0} {0.0, 10.0}
|
||||
[270] = "%.4f", -- HSI_Range_1 {0.0, 1.0} {0.0, 10.0}
|
||||
[142] = "%.4f", -- HSI_Range_flag
|
||||
[275] = "%.4f", -- HSI_CourseSel_100 {0.0, 1.0} {0.0, 10.0}
|
||||
[276] = "%.4f", -- HSI_CourseSel_10 {0.0, 1.0} {0.0, 10.0}
|
||||
[277] = "%.4f", -- HSI_CourseSel_1 {0.0, 1.0} {0.0, 10.0}
|
||||
[146] = "%.4f", -- HSI_ToFrom
|
||||
[143] = "%.4f", -- HSI_OFF_flag
|
||||
[141] = "%.4f", -- HSI_DevDF_Win
|
||||
-- Standby Attitude Indicator
|
||||
[438] = "%.4f", -- SAI_Pitch {-0.665, -0.581, -0.5, 0.0, 0.5, 0.581, 0.676, 0.735} {-rad_(78.0), -rad_(60.0), -rad_(42.0), 0.0, rad_(42.0), rad_(60.0), rad_(80.0), rad_(92.0)}
|
||||
[439] = "%.4f", -- SAI_Bank {1.0, -1.0} {-math.pi, math.pi}
|
||||
[440] = "%.4f", -- SAI_OFF_flag
|
||||
--[443] = "%.4f", -- SAI_knob_arrow {-1.0, 1.0} {0.0, 1.0}
|
||||
-- Clock
|
||||
[19] = "%.4f", -- CLOCK_currtime_hours
|
||||
[18] = "%.4f", -- CLOCK_currtime_minutes
|
||||
[509] = "%.4f", -- CLOCK_elapsed_time_minutes
|
||||
[37] = "%.4f", -- CLOCK_elapsed_time_seconds
|
||||
-- Pitch Trim Indicator
|
||||
[52] = "%.4f", -- Pitch_Trim {1.0, 0.0, -0.1} {-10.0, 0.0, 1.0}
|
||||
-- Flap Indicator
|
||||
[51] = "%.4f", -- Flap_Indicator {0.0, 0.4} {0.0, 4.0}
|
||||
-- Hydraulic Pressure Indicators
|
||||
[109] = "%.4f", -- Utility_Pressure {0.0, 1.0} {0.0, 4000.0}
|
||||
[110] = "%.4f", -- Flight_Pressure {0.0, 1.0} {0.0, 4000.0}
|
||||
-- Engine Tachometers
|
||||
[16] = "%.4f", -- Tachometer_Left {0.008, 0.475, 0.84, 0.94, 1.0} {0.0, 50.0, 90.0, 100.0, 107.0}
|
||||
[425] = "%.4f", -- Tachometer_percent_Left {0.0, 1.0} {0.0, 10.0}
|
||||
[17] = "%.4f", -- Tachometer_Right {0.008, 0.475, 0.84, 0.94, 1.0} {0.0, 50.0, 90.0, 100.0, 107.0}
|
||||
[426] = "%.4f", -- Tachometer_percent_Right {0.0, 1.0} {0.0, 10.0}
|
||||
-- Exhaust Gas Temperature Indicators
|
||||
[12] = "%.4f", -- EGT_Left {0.0, 0.03, 0.1, 0.274, 0.78, 1.0} {0.0, 140.0, 200.0, 500.0, 800.0, 1200.0}
|
||||
[14] = "%.4f", -- EGT_Right {0.0, 0.03, 0.1, 0.274, 0.78, 1.0} {0.0, 140.0, 200.0, 500.0, 800.0, 1200.0}
|
||||
-- Aux Intake Doors Indicator
|
||||
[111] = "%.4f", -- AuxIntakeDoors {0.0, 0.2} {0.0, 2.0}
|
||||
-- Oil Pressure Indicator (Dual)
|
||||
[112] = "%.4f", -- OilPressure_Left {0.0, 1.0} {0.0, 100.0}
|
||||
[113] = "%.4f", -- OilPressure_Right {0.0, 1.0} {0.0, 100.0}
|
||||
-- Nozzle Position Indicators
|
||||
[107] = "%.4f", -- NozzlePos_Left {0.0, 1.0} {0.0, 100.0}
|
||||
[108] = "%.4f", -- NozzlePos_Right {0.0, 1.0} {0.0, 100.0}
|
||||
-- Cabin Pressure Altimeter
|
||||
[114] = "%.4f", -- CabinPressure {0.0, 1.0} {0.0, 50.0}
|
||||
-- Fuel Flow Indicator (Dual)
|
||||
[525] = "%.4f", -- FuelFlow_Left {0.0, 0.67, 0.75, 0.83, 1.0} {0.0, 4000.0, 7000.0, 10000.0, 15000.0}
|
||||
[526] = "%.4f", -- FuelFlow_Right {0.0, 0.67, 0.75, 0.83, 1.0} {0.0, 4000.0, 7000.0, 10000.0, 15000.0}
|
||||
-- Fuel Quantity Indicator (Dual)
|
||||
[22] = "%.4f", -- FuelQuantity_Left {0.0, 1.0} {0.0, 2500.0}
|
||||
[23] = "%.4f", -- FuelQuantity_Right {0.0, 1.0} {0.0, 2500.0}
|
||||
-- Oxygen Quantity Indicator
|
||||
[390] = "%.4f", -- OxygenQuantity {0.0, 1.0} {0.0, 5.0}
|
||||
-- Oxygen Flow Pressure Indicator
|
||||
[604] = "%.4f", -- FlowPressure {0.0, 0.5, 1.0} {0.0, 100.0, 500.0}
|
||||
-- Oxygen Flow Indicator
|
||||
[600] = "%.4f", -- FlowBlinker
|
||||
-- RADIO ------------------------------------------------------
|
||||
-- UHF Radio AN/ARC-164
|
||||
[326] = "%.2f", -- UHFRadioChannel
|
||||
[302] = "%.1f", -- UHFRadio100MHz
|
||||
[303] = "%.1f", -- UHFRadio10MHz {1.0, 0.0} {0.0, 1.0}
|
||||
[304] = "%.1f", -- UHFRadio1MHz {1.0, 0.0} {0.0, 1.0}
|
||||
[305] = "%.1f", -- UHFRadio01MHz {1.0, 0.0} {0.0, 1.0}
|
||||
[306] = "%.1f", -- UHFRadio0025MHz {1.0, 0.0} {0.0, 1.0}
|
||||
-- IFF/SIF APX72
|
||||
[197] = "%.4f", -- IFF_Code4Sw_Pull
|
||||
[198] = "%.4f", -- IFF_MasterSw_Pull
|
||||
-- TACAN
|
||||
[263] = "%.4f", -- TACAN_window_wheel.hundreds {0.0, 1.0} {0.0, 10.0}
|
||||
[264] = "%.4f", -- TACAN_window_wheel.tens {0.0, 1.0} {0.0, 10.0}
|
||||
[265] = "%.4f", -- TACAN_window_wheel.ones {0.0, 1.0} {0.0, 10.0}
|
||||
--[266] = "%.4f", -- XYwheel
|
||||
[260] = "%.f", -- TACAN_test_light
|
||||
-- LAMPS
|
||||
-- Engine Fire Lights
|
||||
[167] = "%.f", -- lamp_LeftFire
|
||||
[168] = "%.f", -- lamp_RightFire
|
||||
-- AOA Indexer Lights
|
||||
[48] = "%.f", -- lamp_AOA_Red
|
||||
[49] = "%.f", -- lamp_AOA_Green
|
||||
[50] = "%.f", -- lamp_AOA_Yellow
|
||||
-- Landing Gear Lights
|
||||
[96] = "%.f", -- lamp_GearWarning
|
||||
[54] = "%.f", -- lamp_GearNose
|
||||
[53] = "%.f", -- lamp_GearLeft
|
||||
[55] = "%.f", -- lamp_GearRight
|
||||
-- Hook Light
|
||||
[90] = "%.f", -- lamp_Hook
|
||||
-- Caution Lights panel
|
||||
[530] = "%.f", -- lamp_LeftGenerator
|
||||
[531] = "%.f", -- lamp_Canopy
|
||||
[532] = "%.f", -- lamp_RightGenerator
|
||||
[533] = "%.f", -- lamp_UtilityHyd
|
||||
[534] = "%.f", -- lamp_Spare1
|
||||
[535] = "%.f", -- lamp_FlightHyd
|
||||
[536] = "%.f", -- lamp_ExtTanksEmpty
|
||||
[537] = "%.f", -- lamp_IFF
|
||||
[538] = "%.f", -- lamp_Oxygen
|
||||
[539] = "%.f", -- lamp_LeftFuelLow
|
||||
[540] = "%.f", -- lamp_EngineAntiIce
|
||||
[541] = "%.f", -- lamp_RightFuelLow
|
||||
[542] = "%.f", -- lamp_LeftFuelPress
|
||||
[543] = "%.f", -- lamp_INS
|
||||
[544] = "%.f", -- lamp_RightFuelPress
|
||||
[545] = "%.f", -- lamp_AOA_Flaps
|
||||
[546] = "%.f", -- lamp_AirDataComputer
|
||||
[547] = "%.f", -- lamp_DirGyro
|
||||
[548] = "%.f", -- lamp_Spare2
|
||||
[549] = "%.f", -- lamp_DC_Overload
|
||||
[550] = "%.f", -- lamp_Spare3
|
||||
-- Master Caution Light
|
||||
[169] = "%.f", -- lamp_MasterCaution
|
||||
--IFF Panel lamps
|
||||
[216] = "%.f", -- IFF_reply_lamp
|
||||
[218] = "%.f", -- IFF_test_lamp
|
||||
-- Internal Lights
|
||||
[801] = "%.f", -- light_Flight
|
||||
[802] = "%.f", -- light_Engine
|
||||
[803] = "%.f", -- light_Console
|
||||
[804] = "%.f", -- light_Compass
|
||||
[805] = "%.f", -- light_Flood
|
||||
[806] = "%.f", -- light_Sight
|
||||
[807] = "%.f", -- light_Armt
|
||||
[810] = "%.f", -- light_Tstorm
|
||||
-- RWR button lights
|
||||
[576] = "%.f", -- rwr_Power
|
||||
[572] = "%.f", -- rwr_Ship_unkn
|
||||
[571] = "%.f", -- rwr_Ship_U
|
||||
[568] = "%.f", -- rwr_Sys_On
|
||||
[569] = "%.f", -- rwr_Sys
|
||||
[565] = "%.f", -- rwr_Sep_Up
|
||||
[566] = "%.f", -- rwr_Sep_Down
|
||||
[563] = "%.f", -- rwr_Alt
|
||||
[562] = "%.f", -- rwr_Alt_Low
|
||||
[557] = "%.f", -- rwr_Hand_Up
|
||||
[558] = "%.f", -- rwr_Hand_H
|
||||
[555] = "%.f", -- rwr_Search
|
||||
[553] = "%.f", -- rwr_Mode_Open
|
||||
[552] = "%.f", -- rwr_Mode_Pri
|
||||
-- Brightness regulation
|
||||
[808] = "%.f", -- brtRadarScale
|
||||
[815] = "%.f", -- brtRwrLights
|
||||
[816] = "%.f", -- brtFireLights
|
||||
[817] = "%.f", -- brtMainLights
|
||||
[818] = "%.f", -- brtIFFLights
|
||||
[819] = "%.f" -- brtRadarLights
|
||||
}
|
||||
ExportScript.ConfigArguments =
|
||||
{
|
||||
--[[
|
||||
arguments for export in low tick interval
|
||||
based on "clickabledata.lua"
|
||||
]]
|
||||
-- Control System
|
||||
[323] = "%1d", -- Yaw Damper Switch, YAW/OFF
|
||||
[322] = "%1d", -- Pitch Damper Switch, PITCH/OFF
|
||||
[324] = "%.4f", -- Rudder Trim Knob (Axis) {-1.0, 1.0} in 0.15 Steps
|
||||
[116] = "%1d", -- Flaps Lever, EMER UP/THUMB SW/FULL {-1.0, 0.0, 1.0}
|
||||
[132] = "%1d", -- Pitch Damper Cutoff Switch - Push to cutoff
|
||||
[101] = "%1d", -- Speed Brake Switch, OUT/OFF/IN {-1.0, 0.0, 1.0}
|
||||
[115] = "%1d", -- Auto Flap System Thumb Switch, UP/FIXED/AUTO {-1.0, 0.0, 1.0}
|
||||
--[125] = "%1d", -- Trimmer Switch, PUSH(DESCEND) {0.0, 1.0}
|
||||
--[125] = "%1d", -- Trimmer Switch, PULL(CLIMB) {-1.0, 0.0}
|
||||
--[126] = "%1d", -- Trimmer Switch, LEFT WING DOWN {0.0, 1.0}
|
||||
--[126] = "%1d", -- Trimmer Switch, RIGHT WING DOWN {-1.0, 0.0}
|
||||
[125] = "%1d", -- Trimmer Switch, PUSH(DESCEND)/PULL(CLIMB) {1.0, 0.0, -1.0}
|
||||
[126] = "%1d", -- Trimmer Switch, LEFT WING DOWN/RIGHT WING DOWN {1.0, 0.0, -1.0}
|
||||
[278] = "%1d", -- Rudder Pedal Adjust T-Handle, PULL/STOW
|
||||
-- Electric system
|
||||
[387] = "%1d", -- attery Switch, BATT/OFF
|
||||
[388] = "%1d", -- Left Generator Switch, L GEN/OFF/RESET {-1.0, 0.0, 1.0}
|
||||
[389] = "%1d", -- Right Generator Switch, R GEN/OFF/RESET {-1.0, 0.0, 1.0}
|
||||
[375] = "%1d", -- Pitot Anti-Ice Switch, PITOT/OFF
|
||||
[230] = "%1d", -- Fuel & Oxygen Switch, GAGE TEST/OFF/QTY CHECK {-1.0, 0.0, 1.0}
|
||||
-- Fuel System
|
||||
[360] = "%1d", -- Left Fuel Shutoff Switch, OPEN/CLOSED
|
||||
[362] = "%1d", -- Right Fuel Shutoff Switch, OPEN/CLOSED
|
||||
[377] = "%1d", -- Ext Fuel Cl Switch, ON/OFF
|
||||
[378] = "%1d", -- Ext Fuel Pylons Switch, ON/OFF
|
||||
[380] = "%1d", -- Left Boost Pump Switch, ON/OFF
|
||||
[381] = "%1d", -- Crossfeed Switch, OPEN/CLOSED
|
||||
[382] = "%1d", -- Right Boost Pump Switch, ON/OFF
|
||||
[383] = "%1d", -- Autobalance Switch, LEFT/NEUT/RIGHT {-1.0, 0.0, 1.0}
|
||||
-- Engines
|
||||
[357] = "%1d", -- Left Engine Start Button - Push to start
|
||||
[358] = "%1d", -- Right Engine Start Button - Push to start
|
||||
[376] = "%1d", -- Engine Anti-Ice Switch, ENGINE/OFF {1.0, -1.0}
|
||||
-- Gear System
|
||||
[83] = "%1d", -- Landing Gear Lever, LG UP/LG DOWN
|
||||
[95] = "%1d", -- Landing Gear Alternate Release Handle, Pull and Hold
|
||||
[98] = "%1d", -- Gear Alternate Release Reset Control, OFF/RESET
|
||||
[88] = "%1d", -- Landing Gear Downlock Override Button - Push and hold to override locking solenoid
|
||||
[87] = "%1d", -- Landing Gear And Flap Warning Silence Button
|
||||
[250] = "%1d", -- Nose Strut Switch, EXTEND/RETRACT {1.0, -1.0}
|
||||
[131] = "%1d", -- Nosewheel Steering Button - Press and Hold to engage nosewheel control
|
||||
[92] = "%1d", -- Left Landing Gear Lamp - Press to test(LMB)
|
||||
[93] = "%1d", -- Nose Landing Gear Lamp - Press to test(LMB)
|
||||
[94] = "%1d", -- Right Landing Gear Lamp - Press to test(LMB)
|
||||
[89] = "%1d", -- Arresting Hook Button
|
||||
-- Oxygen System
|
||||
[603] = "%1d", -- Oxygen Supply Lever, ON/OFF {1.0, -1.0}
|
||||
[602] = "%1d", -- Diluter Lever
|
||||
[601] = "%1d", -- Emergency Lever, EMERGENCY/NORMAL/TEST MASK {-1.0, 0.0, 1.0}
|
||||
-- EC System
|
||||
[371] = "%1d", -- Cabin Press Switch, DEFOG ONLY/NORMAL/RAM DUMP {0.0, 0.5, 1.0}
|
||||
[372] = "%1d", -- Cabin Temp Switch, AUTO/CENTER/MAN COLD/MAN HOT {0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6}
|
||||
[373] = "%.2f", -- Cabin Temp Knob (Axis) {-1.0, 1.0} in 0.15 Steps
|
||||
[374] = "%.2f", -- Canopy Defog Knob (Axis) {0.0, 1.0} in 0.15 Steps
|
||||
[386] = "%.2f", -- Cockpit Air Inlet (Horizontal) (Axis) {-1.0, 1.0} in 0.1 Steps
|
||||
[385] = "%.2f", -- Cockpit Air Inlet (Vertical) (Axis) {-1.0, 1.0} in 0.1 Steps
|
||||
-- Cockpit Mechanics
|
||||
--[0] = "%1d", -- Canopy Handle, OPEN/CLOSE
|
||||
[772] = "%1d", -- Seat Adjust Switch, DOWN/NEUTRAL/UP {-1.0, 0.0, 1.0}
|
||||
[384] = "%1d", -- Canopy Jettison T-Handle, PULL/PUSH
|
||||
[91] = "%.1f", -- Drag Chute T-Handle, PULL/PUSH {0.1, -0.1}
|
||||
-- External Lights
|
||||
[227] = "%.2f", -- Navigation Lights Knob (Axis) {0.0, 1.0} in 0.15 Steps
|
||||
[228] = "%.2d", -- Formation Lights Knob (Axis) {0.0, 1.0} in 0.15 Steps
|
||||
[229] = "%1d", -- Beacon Switch, BEACON/OFF
|
||||
[353] = "%1d", -- Landing & Taxi Light Switch, ON/OFF
|
||||
-- Internal Lights
|
||||
[46] = "%1d", -- AN/ASG-31 Sight Panel Light Button, ON/OFF
|
||||
[613] = "%1d", -- Magnetic Compass Light Switch, LIGHT/OFF
|
||||
[221] = "%.2f", -- Flood Lights Knob (Axis) {0.0, 1.0} in 0.15 Steps
|
||||
[222] = "%.2f", -- Flight Instruments Lights Knob (Axis) {0.0, 1.0} in 0.15 Steps
|
||||
[223] = "%.2f", -- Engine Instruments Lights Knob (Axis) {0.0, 1.0} in 0.15 Steps
|
||||
[224] = "%.2f", -- Console Lights Knob (Axis) {0.0, 1.0} in 0.15 Steps
|
||||
[363] = "%.2f", -- Armament Panel Lights Knob (Axis) {0.0, 1.0} in 0.15 Steps
|
||||
[172] = "%1d", -- Master Caution Button - Push to reset
|
||||
[226] = "%1d", -- Warning Test Switch, Press to test
|
||||
[225] = "%1d", -- Bright/Dim Switch, BRT/NEUT/DIM {-1.0, 0.0, 1.0}
|
||||
-- Countermeasures Dispensing System
|
||||
[400] = "%1d", -- Chaff Mode Selector, OFF/SINGLE/PRGM/MULT {0.0, 0.1, 0.2, 0.3}
|
||||
[404] = "%1d", -- Flare Mode Selector, OFF/SINGLE/PRGM {0.0, 0.1, 0.2}
|
||||
[409] = "%1d", -- Flare Jettison Switch, OFF/UP
|
||||
[403] = "%1d", -- Chaff Counter Reset Button - Push to reset
|
||||
[407] = "%1d", -- Flare Counter Reset Button - Push to reset
|
||||
[117] = "%1d", -- Flare-Chaff Button - Push to dispense
|
||||
-- IFF
|
||||
[199] = "%1d", -- IFF MODE 4 CODE Selector, ZERO(use MW to pull switch)/B/A/HOLD
|
||||
[197] = "%1d", -- IFF MODE 4 CODE Selector, ZERO(use MW to pull switch)/B/A/HOLD
|
||||
[200] = "%1d", -- IFF MASTER Control Selector, EMER(use MW to pull switch)/NORM/LOW/STBY/OFF
|
||||
[198] = "%1d", -- IFF MASTER Control Selector, EMER(use MW to pull switch)/NORM/LOW/STBY/OFF
|
||||
[201] = "%1d", -- IFF MODE 4 Monitor Control Switch, AUDIO/OUT/LIGHT {-1.0, 0.0, 1.0}
|
||||
[202] = "%1d", -- IFF Mode Select/TEST Switch, M-1 /ON/OUT {-1.0, 0.0, 1.0}
|
||||
[203] = "%1d", -- IFF Mode Select/TEST Switch, M-2 /ON/OUT {-1.0, 0.0, 1.0}
|
||||
[204] = "%1d", -- IFF Mode Select/TEST Switch, M-3/A /ON/OUT {-1.0, 0.0, 1.0}
|
||||
[205] = "%1d", -- IFF Mode Select/TEST Switch, M-C /ON/OUT {-1.0, 0.0, 1.0}
|
||||
[206] = "%1d", -- IFF RAD TEST/MON Switch, RAD TEST/OUT/MON {-1.0, 0.0, 1.0}
|
||||
[207] = "%1d", -- IFF Identification of Position (IP) Switch, IDENT/OUT/MIC {-1.0, 0.0, 1.0}
|
||||
[208] = "%1d", -- IFF MODE 4 Control Switch, ON/OUT
|
||||
[209] = "%.1f", -- IFF MODE 1 Code Selector Wheel 1 {0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7}
|
||||
[210] = "%.1f", -- IFF MODE 1 Code Selector Wheel 2 {0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7}
|
||||
[211] = "%.1f", -- IFF MODE 3/A Code Selector Wheel 1 {0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7}
|
||||
[212] = "%.1f", -- IFF MODE 3/A Code Selector Wheel 2 {0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7}
|
||||
[213] = "%.1f", -- IFF MODE 3/A Code Selector Wheel 3 {0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7}
|
||||
[214] = "%.1f", -- IFF MODE 3/A Code Selector Wheel 4 {0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7}
|
||||
[217] = "%1d", -- MODE 4 REPLY Light - Press to test(LMB)
|
||||
[215] = "%1d", -- Radiation TEST and Monitor Light - Press to test(LMB)
|
||||
-- Jettison System
|
||||
[365] = "%1d", -- Emergency All Jettison Button - Push to jettison
|
||||
[367] = "%1d", -- Select Jettison Switch, SELECT POSITION/OFF/ALL PYLONS {-1.0, 0.0, 1.0}
|
||||
[366] = "%1d", -- Select Jettison Button - Push to jettison
|
||||
-- Weapons Control
|
||||
[346] = "%1d", -- Armament Position Selector Switch - LEFT WINGTIP, ON/OFF
|
||||
[347] = "%1d", -- Armament Position Selector Switch - LEFT OUTBD, ON/OFF
|
||||
[348] = "%1d", -- Armament Position Selector Switch - LEFT INBD, ON/OFF
|
||||
[349] = "%1d", -- Armament Position Selector Switch - CENTERLINE, ON/OFF
|
||||
[350] = "%1d", -- Armament Position Selector Switch - RIGHT INBD, ON/OFF
|
||||
[351] = "%1d", -- Armament Position Selector Switch - RIGHT OUTBD, ON/OFF
|
||||
[352] = "%1d", -- Armament Position Selector Switch - RIGHT WINGTIP, ON/OFF
|
||||
[340] = "%1d", -- Interval Switch [sec], .06/.10/.14 {-1.0, 0.0, 1.0}
|
||||
[341] = "%1d", -- Bombs Arm Switch, SAFE/TAIL/NOSE & TAIL/NOSE {0.0, 0.1, 0.2, 0.3}
|
||||
[343] = "%1d", -- Guns, Missile and Camera Switch, GUNS MSL & CAMR/OFF/CAMR ONLY {-1.0, 0.0, 1.0}
|
||||
[344] = "%.1f", -- External Stores Selector, RIPL/BOMB/SAFE/RKT DISP {0.0,0.1,0.2,0.3}
|
||||
[345] = "%.2f", -- Missile Volume Knob - Rotate to adjust volume (Axis) {0.0, 1.0} in 0.15 Steps
|
||||
[128] = "%1d", -- Weapon Release Button - Press to release (Stick)
|
||||
[137] = "%1d", -- Missile Uncage Switch - Press and hold to uncage missile seeker head
|
||||
-- Trigger
|
||||
[127] = "%1d", -- Trigger Button, FIRST DETENT(LMB) {0.0, 0.5}
|
||||
[127] = "%1d", -- Trigger Button, SECOND DETENT(RMB) {0.0, 1.0}
|
||||
-- AHRS
|
||||
[166] = "%1d", -- Fast Erect Button - Push to erect
|
||||
[220] = "%1d", -- Compass Switch, DIR GYRO/MAG/FAST SLAVE
|
||||
[273] = "%.1f", -- Nav Mode Selector Switch, DF/TACAN {0.1,-0.1}
|
||||
-- AN/APQ-159 Radar Control Panel
|
||||
[65] = "%.2f", -- AN/APQ-159 Radar Scale Knob - Rotate to adjust scale brightness (Axis) {0.0, 1.0} in 0.15 Steps
|
||||
[321] = "%.2f", -- AN/APQ-159 Radar Elevation Antenna Tilt Control Knob - Rotate to adjust antenna elevation (Axis) {-1.0, 1.0} in 0.15 Steps
|
||||
[315] = "%.1f", -- AN/APQ-159 Radar Range Selector Switch [nm], 5/10/20/40 {0.0, 0.1, 0.2, 0.3}
|
||||
[316] = "%.1f", -- AN/APQ-159 Radar Mode Selector Switch, OFF/STBY/OPER/TEST {0.0, 0.1, 0.2, 0.3}
|
||||
[317] = "%1d", -- AN/APQ-159 Radar Acquisition Button
|
||||
[70] = "%.2f", -- AN/APQ-159 Radar Bright Knob - Rotate to adjust brightness (Axis) {0.0, 1.0} in 0.15 Steps
|
||||
[69] = "%.2f", -- AN/APQ-159 Radar Persistence Knob - Rotate to adjust persistence (Axis) {0.0, 1.0} in 0.15 Steps
|
||||
[68] = "%.2f", -- AN/APQ-159 Radar Video Knob - Rotate to adjust video intensity (Axis) {0.0, 1.0} in 0.15 Steps
|
||||
[67] = "%.2f", -- AN/APQ-159 Radar Cursor Knob - Rotate to adjust indication brightness (Axis) {0.0, 1.0} in 0.15 Steps
|
||||
[66] = "%.2f", -- AN/APQ-159 Radar Pitch Knob - Rotate to adjust horizon bar (Axis) {-0.75, 0.75} in 0.1 Steps
|
||||
-- AN/ASG-31 Sight
|
||||
[40] = "%.1f", -- AN/ASG-31 Sight Mode Selector, OFF/MSL/A/A1 GUNS/A/A2 GUNS/MAN {0.0, 0.1, 0.2, 0.3, 0.4}
|
||||
[42] = "%.2f", -- AN/ASG-31 Sight Reticle Depression Knob - Rotate to adjust manual mode depression angle (Axis) {0.0, 1.0} in 0.10 Steps
|
||||
[41] = "%.2f", -- AN/ASG-31 Sight Reticle Intensity Knob - Rotate to adjust brightness (Axis) {0.0, 1.0} in 0.15 Steps
|
||||
[136] = "%1d", -- AN/ASG-31 Sight Cage Switch - Press and hold to cage
|
||||
-- RWR-IC
|
||||
[551] = "%1d", -- RWR Indicator Control MODE Button
|
||||
[554] = "%1d", -- RWR Indicator Control SEARCH Button
|
||||
[556] = "%1d", -- RWR Indicator Control HANDOFF Button
|
||||
[559] = "%1d", -- RWR Indicator Control LAUNCH Button
|
||||
[561] = "%1d", -- RWR Indicator Control ALTITUDE Button
|
||||
[564] = "%1d", -- RWR Indicator Control T Button
|
||||
[567] = "%1d", -- RWR Indicator Control SYS TEST Button
|
||||
[570] = "%1d", -- RWR Indicator Control UNKNOWN SHIP Button
|
||||
[573] = "%1d", -- RWR Indicator Control ACT/PWR Button
|
||||
[575] = "%1d", -- RWR Indicator Control POWER Button {1.0,0.0,-1.0}
|
||||
[577] = "%.1f", -- RWR Indicator Control AUDIO Knob (Axis) {0.0, 1.0} in 0.1 Steps
|
||||
[578] = "%.1f", -- RWR Indicator Control DIM Knob (Axis) {0.0, 1.0} in 0.1 Steps
|
||||
-- AN/ALR-87 RWR
|
||||
[140] = "%.2f", -- Adjust Display Brightness (Axis) {0.15, 0.85} in 0.1 Steps
|
||||
-- Instruments --------------------------
|
||||
-- Accelerometer
|
||||
[904] = "%1d", -- Accelerometer - Push to set
|
||||
-- AirSpeed/Mach Indicator
|
||||
[180] = "%.2f", -- Index Setting Pointer Knob (Axis) {0.0, 1.0} in 0.15 Steps
|
||||
-- Altimeter AAU-34/A
|
||||
[62] = "%.2f", -- Zero Setting Knob (Axis) {0.0, 1.0} in 0.04 Steps
|
||||
[60] = "%1d", -- Altimeter Mode Control Lever, ELECT(rical)/PNEU(matic) {-1.0, 0.0, 1.0}
|
||||
-- Attitude Indicator ARU-20
|
||||
[150] = "%.3f", -- AI Pitch Trim Knob (Axis) {0.0, 1.0} in 0.083 Steps
|
||||
-- Horizontal Situation Indicator
|
||||
[272] = "%.5f", -- HSI Course Set Knob (Axis) {0.0, 1.0} in 0.05818 Steps
|
||||
[271] = "%.5f", -- HSI Heading Set Knob (Axis) {0.0, 1.0} in 0.05818 Steps
|
||||
-- Standby Attitude Indicator
|
||||
[441] = "%1d", -- Cage/Pitch Trim (Button)
|
||||
[442] = "%.1f", -- Cage/Pitch Trim Knob (Axis) {0.0, 1.0} in 0.5 Steps
|
||||
-- Clock
|
||||
[511] = "%1d", -- ABU-11 Clock Winding and Setting knob (Button)
|
||||
[510] = "%1d", -- ABU-11 Clock Winding and Setting Knob (Axis) {0.0, 1.0} in 0.6 Steps
|
||||
[512] = "%1d", -- ABU-11 Clock Elapsed Time Knob
|
||||
-- Electric system - CB Front Panel
|
||||
[280] = "%1d", -- CB WPN PWR LEFT INBD, ON/OFF {1.0, 0.0}
|
||||
[281] = "%1d", -- CB WPN PWR CENTER LINE, ON/OFF {1.0, 0.0}
|
||||
[282] = "%1d", -- CB WPN PWR RIGHT INBD, ON/OFF {1.0, 0.0}
|
||||
[283] = "%1d", -- CB WPN PWR LEFT OUTBD, ON/OFF {1.0, 0.0}
|
||||
[284] = "%1d", -- CB WPN ARMING, ON/OFF {1.0, 0.0}
|
||||
[285] = "%1d", -- CB WPN PWR RIGHT OUTBD, ON/OFF {1.0, 0.0}
|
||||
[286] = "%1d", -- CB JETTISON CONTROL, ON/OFF {1.0, 0.0}
|
||||
[287] = "%1d", -- CB WPN RELEASE, ON/OFF {1.0, 0.0}
|
||||
[288] = "%1d", -- CB WPN MODE SEL & AIM-9-INTLK, ON/OFF {1.0, 0.0}
|
||||
[289] = "%1d", -- CB EMERGENCY ALL JETTISON, ON/OFF {1.0, 0.0}
|
||||
[290] = "%1d", -- CB LEFT AIM-9 CONT, ON/OFF {1.0, 0.0}
|
||||
[291] = "%1d", -- CB RIGHT AIM-9 CONT, ON/OFF {1.0, 0.0}
|
||||
-- Electric system - CB Left Panel
|
||||
[450] = "%1d", -- CB LEFT AIM-9 POWER, ON/OFF {1.0, 0.0}
|
||||
[451] = "%1d", -- CB LEFT GUN FIRING, ON/OFF {1.0, 0.0}
|
||||
[453] = "%1d", -- CB 26 VOLT AC POWER, ON/OFF {1.0, 0.0}
|
||||
[454] = "%1d", -- CB ATTD & HDG REF SYS A, ON/OFF {1.0, 0.0}
|
||||
[455] = "%1d", -- CB CENTRAL AIR DATA COMPUTER, ON/OFF {1.0, 0.0}
|
||||
[456] = "%1d", -- CB ENG IGN L ENG INST & HYD IND, ON/OFF {1.0, 0.0}
|
||||
[457] = "%1d", -- CB RIGHT AIM-9 POWER, ON/OFF {1.0, 0.0}
|
||||
[458] = "%1d", -- CB RIGHT GUN FIRING, ON/OFF {1.0, 0.0}
|
||||
[460] = "%1d", -- CB TRIM CONTROL, ON/OFF {1.0, 0.0}
|
||||
[461] = "%1d", -- CB ATTD & HDG REF SYS B, ON/OFF {1.0, 0.0}
|
||||
[462] = "%1d", -- CB TOTAL TEMP PROBE HTR, ON/OFF {1.0, 0.0}
|
||||
[463] = "%1d", -- CB L ENG AUX DOOR, ON/OFF {1.0, 0.0}
|
||||
[464] = "%1d", -- CB CABIN COND, ON/OFF {1.0, 0.0}
|
||||
[467] = "%1d", -- CB FUEL QTY PRIMARY, ON/OFF {1.0, 0.0}
|
||||
[468] = "%1d", -- CB ATTD & HDG REF SYS C, ON/OFF {1.0, 0.0}
|
||||
[469] = "%1d", -- CB TACAN, ON/OFF {1.0, 0.0}
|
||||
[471] = "%1d", -- CB PYLON TANK FUEL CONT, ON/OFF {1.0, 0.0}
|
||||
[472] = "%1d", -- CB L BOOST CL & TIP TANK FUEL CONT, ON/OFF {1.0, 0.0}
|
||||
[473] = "%1d", -- CB IGNITION INVERTER POWER, ON/OFF {1.0, 0.0}
|
||||
[474] = "%1d", -- CB L ENG START & AB CONT, ON/OFF {1.0, 0.0}
|
||||
[475] = "%1d", -- CB R ENG START & AB CONT, ON/OFF {1.0, 0.0}
|
||||
[476] = "%1d", -- CB UHF COMMAND RADIO, ON/OFF {1.0, 0.0}
|
||||
[477] = "%1d", -- CB LEFT LE FLAP CONT, ON/OFF {1.0, 0.0}
|
||||
[478] = "%1d", -- CB RIGHT LE FLAP CONT, ON/OFF {1.0, 0.0}
|
||||
[479] = "%1d", -- CB LEFT TE FLAP CONT, ON/OFF {1.0, 0.0}
|
||||
[480] = "%1d", -- CB RIGHT TE FLAP CONT & IND, ON/OFF {1.0, 0.0}
|
||||
-- Electric system - CB Right Panel
|
||||
[231] = "%1d", -- CB PITOT HEATER, ON/OFF {1.0, 0.0}
|
||||
[233] = "%1d", -- CB R OIL & HYD IND FUEL QTY SEL, ON/OFF {1.0, 0.0}
|
||||
[234] = "%1d", -- CB CABIN AIR VALVES, ON/OFF {1.0, 0.0}
|
||||
[238] = "%1d", -- CB INST LIGHTS, ON/OFF {1.0, 0.0}
|
||||
[239] = "%1d", -- CB R ENG AUX DOORS, ON/OFF {1.0, 0.0}
|
||||
[244] = "%1d", -- CB CAUTION & WARN LIGHTS-DIM, ON/OFF {1.0, 0.0}
|
||||
[245] = "%1d", -- CB OXY QTY & CANOPY SEAL, ON/OFF {1.0, 0.0}
|
||||
[246] = "%1d", -- CB LDG-TAXI LAMP PWR, ON/OFF {1.0, 0.0}
|
||||
--UHF Radio AN/ARC-164
|
||||
[300] = "%.2f", -- AN/ARC-164, UHF Radio Preset Channel Selector Knob {0.0, 0.1, 0.2, 0.3, 0.4, ... 0.15, 0.16, 0.17, 0.18, 0.19}
|
||||
--[327] = "%.1f", -- AN/ARC-164, UHF Radio 100 MHz Frequency Selector Knob {0.0, 0.1, 0.2, 0.3}
|
||||
--[328] = "%.1f", -- AN/ARC-164, UHF Radio 10 MHz Frequency Selector Knob {0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9}
|
||||
--[329] = "%.1f", -- AN/ARC-164, UHF Radio 1 MHz Frequency Selector Knob {0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9}
|
||||
--[330] = "%.1f", -- AN/ARC-164, UHF Radio 0.1 MHz Frequency Selector Knob {0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9}
|
||||
--[331] = "%.2f", -- AN/ARC-164, UHF Radio 0.025 MHz Frequency Selector Knob {0.0, 0.25, 0.5, 0.75}
|
||||
[307] = "%.1f", -- AN/ARC-164, UHF Radio Frequency Mode Selector Switch, MANUAL/PRESET/GUARD {0.0, 0.1, 0.2}
|
||||
[311] = "%.1f", -- AN/ARC-164, UHF Radio Function Selector Switch, OFF/MAIN/BOTH/ADF {0.0, 0.1, 0.2}
|
||||
[310] = "%1d", -- AN/ARC-164, UHF Radio Tone Button
|
||||
[308] = "%1d", -- AN/ARC-164, UHF Radio Squelch Switch, ON/OFF
|
||||
[309] = "%.1f", -- AN/ARC-164, UHF Radio Volume Knob (Axis) {0.0, 1.0} in 0.1 Steps
|
||||
[336] = "%.1f", -- AN/ARC-164, UHF Radio Antenna Selector Switch, UPPER/AUTO/LOWER {0.0, 0.5, 1.0}
|
||||
[135] = "%1d", -- AN/ARC-164, UHF Radio Microphone Button
|
||||
--TACAN
|
||||
[256] = "%.1f", -- TACAN Channel Selector (Tens) - Rotate mouse wheel to select (Axis) {0.0, 1.0} in 0.1 Steps
|
||||
[257] = "%.1f", -- TACAN Channel Selector (Ones) / X/Y Mode - Right mouse click to select X/Y. Rotate mouse wheel to make channel selection (Axis) {0.0, 1.0} in 0.1 Steps
|
||||
[258] = "%.2f", -- TACAN Channel Selector (Ones) / X/Y Mode - Right mouse click to select X/Y. Rotate mouse wheel to make channel selection (Button) {0.87, 0.93}
|
||||
[259] = "%1d", -- TACAN Signal on HSI Test Button
|
||||
[261] = "%1d", -- TACAN Signal Volume Knob (Axis) {0.0, 1.0} in 0.1 Steps
|
||||
[262] = "%.1f", -- TACAN Mode Selector Switch {0.0, 0.1, 0.2, 0.3, 0.4}
|
||||
-- Sight Camera
|
||||
[82] = "%.1f", -- Sight Camera Lens f-Stop Selector, 2.8(dull)..22(bright) (Axis) {0.0, 0.3} in 0.1 Steps
|
||||
[80] = "%1d", -- Sight Camera FPS Select Switch, 24/48
|
||||
[84] = "%.1f", -- Sight Camera Overrun Selector, 0/3/10/20 {0.0, 0.1, 0.2, 0.3}
|
||||
[79] = "%1d" -- Sight Camera Run (Test) Switch, ON/OFF
|
||||
}
|
||||
|
||||
-----------------------------
|
||||
-- HIGH IMPORTANCE EXPORTS --
|
||||
-- done every export event --
|
||||
-----------------------------
|
||||
|
||||
-- Pointed to by ProcessIkarusDCSHighImportance
|
||||
function ExportScript.ProcessIkarusDCSConfigHighImportance(mainPanelDevice)
|
||||
--[[
|
||||
every frame export to Ikarus
|
||||
Example from A-10C
|
||||
Get Radio Frequencies
|
||||
get data from device
|
||||
local lUHFRadio = GetDevice(54)
|
||||
ExportScript.Tools.SendData("ExportID", "Format")
|
||||
ExportScript.Tools.SendData(2000, string.format("%7.3f", lUHFRadio:get_frequency()/1000000)) -- <- special function for get frequency data
|
||||
ExportScript.Tools.SendData(2000, ExportScript.Tools.RoundFreqeuncy((UHF_RADIO:get_frequency()/1000000))) -- ExportScript.Tools.RoundFreqeuncy(frequency (MHz|KHz), format ("7.3"), PrefixZeros (false), LeastValue (0.025))
|
||||
]]
|
||||
|
||||
--[443] = "%.4f", -- SAI_knob_arrow {-1.0, 1.0} {0.0, 1.0}
|
||||
ExportScript.Tools.SendData(443, ExportScript.Tools.negate(mainPanelDevice:get_argument_value(443)))
|
||||
end
|
||||
|
||||
function ExportScript.ProcessDACConfigHighImportance(mainPanelDevice)
|
||||
--[[
|
||||
every frame export to DAC
|
||||
Example from A-10C
|
||||
Get Radio Frequencies
|
||||
get data from device
|
||||
local UHF_RADIO = GetDevice(54)
|
||||
ExportScript.Tools.SendDataDAC("ExportID", "Format")
|
||||
ExportScript.Tools.SendDataDAC("ExportID", "Format", HardwareConfigID)
|
||||
ExportScript.Tools.SendDataDAC("2000", string.format("%7.3f", UHF_RADIO:get_frequency()/1000000))
|
||||
ExportScript.Tools.SendDataDAC("2000", ExportScript.Tools.RoundFreqeuncy((UHF_RADIO:get_frequency()/1000000))) -- ExportScript.Tools.RoundFreqeuncy(frequency (MHz|KHz), format ("7.3"), PrefixZeros (false), LeastValue (0.025))
|
||||
]]
|
||||
end
|
||||
|
||||
-----------------------------------------------------
|
||||
-- LOW IMPORTANCE EXPORTS --
|
||||
-- done every gExportLowTickInterval export events --
|
||||
-----------------------------------------------------
|
||||
|
||||
-- Pointed to by ExportScript.ProcessIkarusDCSConfigLowImportance
|
||||
function ExportScript.ProcessIkarusDCSConfigLowImportance(mainPanelDevice)
|
||||
--[[
|
||||
export in low tick interval to Ikarus
|
||||
Example from A-10C
|
||||
Get Radio Frequencies
|
||||
get data from device
|
||||
local lUHFRadio = GetDevice(54)
|
||||
ExportScript.Tools.SendData("ExportID", "Format")
|
||||
ExportScript.Tools.SendData(2000, string.format("%7.3f", lUHFRadio:get_frequency()/1000000)) -- <- special function for get frequency data
|
||||
ExportScript.Tools.SendData(2000, ExportScript.Tools.RoundFreqeuncy((UHF_RADIO:get_frequency()/1000000))) -- ExportScript.Tools.RoundFreqeuncy(frequency (MHz|KHz), format ("7.3"), PrefixZeros (false), LeastValue (0.025))
|
||||
]]
|
||||
--AN/ARC-164 UHF
|
||||
---------------------------------------------------
|
||||
local lUHFRadio = GetDevice(23)
|
||||
if lUHFRadio:is_on() then
|
||||
--ExportScript.Tools.SendData(2000, string.format("%.3f", lUHFRadio:get_frequency()/1000000))
|
||||
ExportScript.Tools.SendData(2000, ExportScript.Tools.RoundFreqeuncy(lUHFRadio:get_frequency()/1000000))
|
||||
|
||||
local lUHFRadio_PRESET = {[0]="01",[0.05]="02",[0.1]="03",[0.15]="04",[0.2]="05",[0.25]="06",[0.3]="07",[0.35]="08",[0.4]="09",[0.45]="10",[0.5]="11",[0.55]="12",[0.6]="13",[0.65]="14",[0.7]="15",[0.75]="16",[0.80]="17",[0.85]="18",[0.90]="19",[0.95]="20"}
|
||||
ExportScript.Tools.SendData(2001, lUHFRadio_PRESET[ExportScript.Tools.round(mainPanelDevice:get_argument_value(300), 2)])
|
||||
end
|
||||
|
||||
--[327] = "%.1f", -- AN/ARC-164, UHF Radio 100 MHz Frequency Selector Knob {0.0, 0.1, 0.2, 0.3}
|
||||
--[328] = "%.1f", -- AN/ARC-164, UHF Radio 10 MHz Frequency Selector Knob {0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9}
|
||||
--[329] = "%.1f", -- AN/ARC-164, UHF Radio 1 MHz Frequency Selector Knob {0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9}
|
||||
--[330] = "%.1f", -- AN/ARC-164, UHF Radio 0.1 MHz Frequency Selector Knob {0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9}
|
||||
--[331] = "%.2f", -- AN/ARC-164, UHF Radio 0.025 MHz Frequency Selector Knob {0.0, 0.25, 0.5, 0.75}
|
||||
--F5E_UHF
|
||||
--327: 0.0=A, 0.1=3, 0.2=2, 0.3=T
|
||||
--1: 0.0=A, 0.1=T, 0.2=2, 0.3=3
|
||||
|
||||
--328: 0.0=0, 0.1=9, 0.2=8, 0.3=7, 0.4=6, 0.5=5, 0.6=4, 0.7=3, 0.8=2, 0.9=1, 1.0=0
|
||||
--2: 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=0
|
||||
|
||||
--329: 0.0=0, 0.1=9, 0.2=8, 0.3=7, 0.4=6, 0.5=5, 0.6=4, 0.7=3, 0.8=2, 0.9=1, 1.0=0
|
||||
--3: 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=0
|
||||
|
||||
--330: 0.0=0, 0.1=9, 0.2=8, 0.3=7, 0.4=6, 0.5=5, 0.6=4, 0.7=3, 0.8=2, 0.9=1, 1.0=0
|
||||
--4: 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=0
|
||||
|
||||
--331: 0.0=00, 0.25=75, 0.5=50, 0.75=25, 1.0=00
|
||||
--5: 0.0=00, 0.25=25, 0.5=50, 0.75=75
|
||||
|
||||
local lTmp327 = tonumber(string.format("%0.1f", mainPanelDevice:get_argument_value(327)))
|
||||
local lTmp327_2 = lTmp327
|
||||
if lTmp327 == 0.0 then lTmp327_2 = 0.0
|
||||
elseif lTmp327 == 0.1 then lTmp327_2 = 0.3
|
||||
elseif lTmp327 == 0.2 then lTmp327_2 = 0.2
|
||||
elseif lTmp327 == 0.3 then lTmp327_2 = 0.1
|
||||
else lTmp327_2 = lTmp327 end
|
||||
|
||||
local lTmp328_2 = 1 - mainPanelDevice:get_argument_value(328)
|
||||
local lTmp329_2 = 1 - mainPanelDevice:get_argument_value(329)
|
||||
local lTmp330_2 = 1 - mainPanelDevice:get_argument_value(330)
|
||||
|
||||
local lTmp331 = mainPanelDevice:get_argument_value(331)
|
||||
local lTmp331_2 = 0
|
||||
if lTmp331 == 0.0 then lTmp331_2 = 0.0
|
||||
elseif lTmp331 == 0.25 then lTmp331_2 = 0.75
|
||||
elseif lTmp331 == 0.5 then lTmp331_2 = 0.5
|
||||
elseif lTmp331 == 0.75 then lTmp331_2 = 0.25
|
||||
else lTmp331_2 = lTmp331 end
|
||||
|
||||
ExportScript.Tools.SendData(327, lTmp327_2)
|
||||
ExportScript.Tools.SendData(328, lTmp328_2)
|
||||
ExportScript.Tools.SendData(329, lTmp329_2)
|
||||
ExportScript.Tools.SendData(330, lTmp330_2)
|
||||
ExportScript.Tools.SendData(331, lTmp331_2)
|
||||
|
||||
|
||||
-- TACAN Channel
|
||||
-------------------------------------------------
|
||||
ExportScript.Tools.SendData(2002, (string.format("%0.2f", (mainPanelDevice:get_argument_value(263))) == "1.00" and "0" or "1")..ExportScript.Tools.round(mainPanelDevice:get_argument_value(264) * 10, 0)..ExportScript.Tools.round(mainPanelDevice:get_argument_value(265) * 10, 0)..(string.format("%1d", (mainPanelDevice:get_argument_value(266))) == "0" and "X" or "Y"))
|
||||
--[266] = "%.4f", -- XYwheel
|
||||
ExportScript.Tools.SendData(266, mainPanelDevice:get_argument_value(266) == 0 and 0 or 1)
|
||||
|
||||
end
|
||||
|
||||
function ExportScript.ProcessDACConfigLowImportance(mainPanelDevice)
|
||||
--[[
|
||||
export in low tick interval to DAC
|
||||
Example from A-10C
|
||||
Get Radio Frequencies
|
||||
get data from device
|
||||
local UHF_RADIO = GetDevice(54)
|
||||
ExportScript.Tools.SendDataDAC("ExportID", "Format")
|
||||
ExportScript.Tools.SendDataDAC("ExportID", "Format", HardwareConfigID)
|
||||
ExportScript.Tools.SendDataDAC("2000", string.format("%7.3f", UHF_RADIO:get_frequency()/1000000))
|
||||
ExportScript.Tools.SendDataDAC("2000", ExportScript.Tools.RoundFreqeuncy((UHF_RADIO:get_frequency()/1000000))) -- ExportScript.Tools.RoundFreqeuncy(frequency (MHz|KHz), format ("7.3"), PrefixZeros (false), LeastValue (0.025))
|
||||
]]
|
||||
|
||||
--AN/ARC-164 UHF
|
||||
---------------------------------------------------
|
||||
local lUHFRadio = GetDevice(23)
|
||||
if lUHFRadio:is_on() then
|
||||
--ExportScript.Tools.SendDataDAC(2000, string.format("%.3f", lUHFRadio:get_frequency()/1000000))
|
||||
ExportScript.Tools.SendDataDAC(2000, ExportScript.Tools.RoundFreqeuncy(lUHFRadio:get_frequency()/1000000))
|
||||
|
||||
local lUHFRadio_PRESET = {[0]="01",[0.05]="02",[0.1]="03",[0.15]="04",[0.2]="05",[0.25]="06",[0.3]="07",[0.35]="08",[0.4]="09",[0.45]="10",[0.5]="11",[0.55]="12",[0.6]="13",[0.65]="14",[0.7]="15",[0.75]="16",[0.80]="17",[0.85]="18",[0.90]="19",[0.95]="20"}
|
||||
ExportScript.Tools.SendDataDAC(2001, lUHFRadio_PRESET[ExportScript.Tools.round(mainPanelDevice:get_argument_value(300), 2)])
|
||||
end
|
||||
|
||||
-- TACAN Channel
|
||||
-------------------------------------------------
|
||||
ExportScript.Tools.SendDataDAC(2002, (string.format("%0.2f", (mainPanelDevice:get_argument_value(263))) == "1.00" and "0" or "1")..ExportScript.Tools.round(mainPanelDevice:get_argument_value(264) * 10, 0)..ExportScript.Tools.round(mainPanelDevice:get_argument_value(265) * 10, 0)..(string.format("%1d", (mainPanelDevice:get_argument_value(266))) == "0" and "X" or "Y"))
|
||||
|
||||
-- Fuel Quantity Indicator (Dual)
|
||||
local lLeftFuel = ExportScript.Tools.round(mainPanelDevice:get_argument_value(22) * 2500, 0)
|
||||
local lRightFuel = ExportScript.Tools.round(mainPanelDevice:get_argument_value(23) * 2500, 0)
|
||||
|
||||
ExportScript.Tools.SendDataDAC(2003, lLeftFuel)
|
||||
ExportScript.Tools.SendDataDAC(2004, lRightFuel)
|
||||
ExportScript.Tools.SendDataDAC(2005, lLeftFuel + lRightFuel)
|
||||
|
||||
-- generic Radio display and frequency rotarys
|
||||
-------------------------------------------------
|
||||
-- genericRadioConf
|
||||
ExportScript.genericRadioConf = {}
|
||||
ExportScript.genericRadioConf['maxRadios'] = 1 -- numbers of aviables/supported radios
|
||||
ExportScript.genericRadioConf[1] = {} -- first radio
|
||||
ExportScript.genericRadioConf[1]['Name'] = "AN/ARC-164 UHF" -- name of radio
|
||||
ExportScript.genericRadioConf[1]['DeviceID'] = 23 -- DeviceID for GetDevice from device.lua
|
||||
ExportScript.genericRadioConf[1]['setFrequency'] = true -- change frequency active
|
||||
ExportScript.genericRadioConf[1]['FrequencyMultiplicator'] = 1000000 -- Multiplicator from Hz to MHz
|
||||
ExportScript.genericRadioConf[1]['FrequencyFormat'] = "%7.3f" -- frequency view format LUA style
|
||||
ExportScript.genericRadioConf[1]['FrequencyStep'] = 25 -- minimal step for frequency change
|
||||
ExportScript.genericRadioConf[1]['minFrequency'] = 220.000 -- lowest frequency
|
||||
ExportScript.genericRadioConf[1]['maxFrequency'] = 399.975 -- highest frequency
|
||||
ExportScript.genericRadioConf[1]['Power'] = {} -- power button active
|
||||
ExportScript.genericRadioConf[1]['Power']['ButtonID'] = 3008 -- power button id from cklickable.lua
|
||||
ExportScript.genericRadioConf[1]['Power']['ValueOn'] = 0.1 -- power on value from cklickable.lua
|
||||
ExportScript.genericRadioConf[1]['Power']['ValueOff'] = 0.0 -- power off value from cklickable.lua
|
||||
ExportScript.genericRadioConf[1]['Volume'] = {} -- volume knob active
|
||||
ExportScript.genericRadioConf[1]['Volume']['ButtonID'] = 3011 -- volume button id from cklickable.lua
|
||||
ExportScript.genericRadioConf[1]['Preset'] = {} -- preset knob active
|
||||
ExportScript.genericRadioConf[1]['Preset']['ArgumentID'] = 300 -- ManualPreset argument id from cklickable.lua
|
||||
ExportScript.genericRadioConf[1]['Preset']['ButtonID'] = 3001 -- preset button id from cklickable.lua
|
||||
-- Preset based on switchlogic on clickabledata.lua
|
||||
ExportScript.genericRadioConf[1]['Preset']['List'] = {[0.0]="01",[0.1]="02",[0.2]="03",[0.3]="04",[0.4]="05",[0.5]="06",[0.6]="07",[0.7]="08",[0.8]="09",[0.9]="10",[0.10]="11",[0.11]="12",[0.12]="13",[0.13]="14",[0.14]="15",[0.15]="16",[0.16]="17",[0.17]="18",[0.18]="19",[0.19]="20"}
|
||||
ExportScript.genericRadioConf[1]['Preset']['Step'] = 0.1 -- minimal step for preset change
|
||||
ExportScript.genericRadioConf[1]['Squelch'] = {} -- squelch switch active
|
||||
ExportScript.genericRadioConf[1]['Squelch']['ArgumentID'] = 308 -- ManualPreset argument id from cklickable.lua
|
||||
ExportScript.genericRadioConf[1]['Squelch']['ButtonID'] = 3010 -- squelch button id from cklickable.lua
|
||||
ExportScript.genericRadioConf[1]['Squelch']['ValueOn'] = 0.0 -- squelch on value from cklickable.lua
|
||||
ExportScript.genericRadioConf[1]['Squelch']['ValueOff'] = 1.0 -- squelch off value from cklickable.lua
|
||||
--ExportScript.genericRadioConf[1]['Load'] = {} -- load button preset
|
||||
--ExportScript.genericRadioConf[1]['Load']['ButtonID'] = 3015 -- load button id from cklickable.lua
|
||||
ExportScript.genericRadioConf[1]['ManualPreset'] = {} -- switch manual or preset active
|
||||
ExportScript.genericRadioConf[1]['ManualPreset']['ArgumentID'] = 307 -- ManualPreset argument id from cklickable.lua
|
||||
ExportScript.genericRadioConf[1]['ManualPreset']['ButtonID'] = 3007 -- ManualPreset button id from cklickable.lua
|
||||
ExportScript.genericRadioConf[1]['ManualPreset']['ValueManual'] = 0.0-- ManualPreset Manual value from cklickable.lua
|
||||
ExportScript.genericRadioConf[1]['ManualPreset']['ValuePreset'] = 0.1-- ManualPreset Preset value from cklickable.lua
|
||||
|
||||
|
||||
--=====================================================================================
|
||||
--[[
|
||||
ExportScript.Tools.WriteToLog('list_cockpit_params(): '..ExportScript.Tools.dump(list_cockpit_params()))
|
||||
ExportScript.Tools.WriteToLog('CMSP: '..ExportScript.Tools.dump(list_indication(7)))
|
||||
|
||||
-- list_indication get tehe value of cockpit displays
|
||||
local ltmp1 = 0
|
||||
for ltmp2 = 0, 20, 1 do
|
||||
ltmp1 = list_indication(ltmp2)
|
||||
ExportScript.Tools.WriteToLog(ltmp2..': '..ExportScript.Tools.dump(ltmp1))
|
||||
end
|
||||
]]
|
||||
--[[
|
||||
-- getmetatable get function name from devices
|
||||
local ltmp1 = 0
|
||||
for ltmp2 = 1, 70, 1 do
|
||||
ltmp1 = GetDevice(ltmp2)
|
||||
ExportScript.Tools.WriteToLog(ltmp2..': '..ExportScript.Tools.dump(ltmp1))
|
||||
ExportScript.Tools.WriteToLog(ltmp2..' (metatable): '..ExportScript.Tools.dump(getmetatable(ltmp1)))
|
||||
end
|
||||
]]
|
||||
end
|
||||
|
||||
-----------------------------
|
||||
-- Custom functions --
|
||||
-----------------------------
|
||||
746
ExportsModules/FA-18C_hornet.lua
Normal file
746
ExportsModules/FA-18C_hornet.lua
Normal file
@@ -0,0 +1,746 @@
|
||||
-- F/A-18C Export
|
||||
|
||||
ExportScript.FoundDCSModule = true
|
||||
ExportScript.Version.FA18C_hornet = "1.2.1"
|
||||
|
||||
ExportScript.ConfigEveryFrameArguments =
|
||||
{
|
||||
--[[
|
||||
every frames arguments
|
||||
based of "mainpanel_init.lua"
|
||||
Example (http://www.lua.org/manual/5.1/manual.html#pdf-string.format)
|
||||
[DeviceID] = "Format"
|
||||
[4] = "%.4f", <- floating-point number with 4 digits after point
|
||||
[19] = "%0.1f", <- floating-point number with 1 digit after point
|
||||
[129] = "%1d", <- decimal number
|
||||
[5] = "%.f", <- floating point number rounded to a decimal number
|
||||
]]
|
||||
-- Controlls
|
||||
--[71] = "%.4f", -- StickPitch {-1, 0, 0.137, 0.5} {1, 0.12, 0, -0.726}
|
||||
--[74] = "%.4f", -- StickRoll {-1, 1}
|
||||
--[500] = "%.4f", -- Rudder {-1, 1}
|
||||
--[501] = "%.4f", -- LeftWheelBrake
|
||||
--[502] = "%.4f", -- RightWheelBrake
|
||||
--[104] = "%.4f", -- LeftThrottle
|
||||
--[105] = "%.4f", -- RightThrottle
|
||||
--[495] = "%.4f", -- LeftFingerLift
|
||||
--[496] = "%.4f", -- RightFingerLift
|
||||
-- Electric Interface
|
||||
[400] = "%.4f", -- VoltmeterU {16.0, 30.0}{0.0, 1.0}
|
||||
[401] = "%.4f", -- VoltmeterE {16.0, 30.0}{0.0, 1.0}
|
||||
-- Hydraulic Interface
|
||||
[310] = "%.4f", -- HydIndLeft {0.0, 5000.0} {0.0, 1.0}
|
||||
[311] = "%.4f", -- HydIndRight {0.0, 5000.0} {0.0, 1.0}
|
||||
[242] = "%.4f", -- HydIndBrake {0.0, 1000.0, 2000.0, 3000.0, 4000.0, 5000.0}{0.0, 0.036, 0.338, 0.636, 0.924, 1.0}
|
||||
-- Gear Interface
|
||||
[228] = "%.4f", -- EmergGearDownHandle
|
||||
-- [240] = "%.4f", -- EmergParkBrakeHandle delete
|
||||
-- Instruments --------------------------
|
||||
-- Standby Pressure Altimeter AAU-52/A
|
||||
[218] = "%.4f", -- Altimeter_100_footPtr {0.0, 1000.0} {0.0, 1.0}
|
||||
[220] = "%.4f", -- Altimeter_10000_footCount {0.0, 9.0} {0.0, 1.0}
|
||||
[219] = "%.4f", -- Altimeter_1000_footCount {0.0, 9.0} {0.0, 1.0}
|
||||
[221] = "%.4f", -- pressure_setting_0 {0.0, 10.0} {0.0, 1.0}
|
||||
[222] = "%.4f", -- pressure_setting_1 {0.0, 10.0} {0.0, 1.0}
|
||||
[223] = "%.4f", -- pressure_setting_2 {0.0, 10.0} {0.0, 1.0}
|
||||
-- Indicated Airspeed Indicator AVU-35/A
|
||||
[217] = "%.4f", -- Airspeed {0.0, 60.0, 100.0, 150.0, 200.0, 250.0, 300.0, 350.0, 400.0, 450.0, 500.0, 550.0, 600.0, 650.0, 700.0, 750.0, 800.0, 850.0} {0.0, 0.0445, 0.15, 0.348, 0.586, 0.636, 0.673, 0.715, 0.748, 0.782, 0.819, 0.849, 0.870, 0.898, 0.922, 0.950, 0.976, 1.0}
|
||||
-- Vertical Speed Indicator AVU-53/A
|
||||
[225] = "%.4f", -- Variometer {-6000.0, -4000.0, -3000.0, -2000.0, -1000.0, -500.0, 0.0, 500.0, 1000.0, 2000.0, 3000.0, 4000.0, 6000.0} { -1.0, -0.83, -0.73, -0.605, -0.40, -0.22, 0.0, 0.22, 0.40, 0.605, 0.73, 0.83, 1.0}
|
||||
-- Clock
|
||||
[278] = "%.4f", -- CLOCK_currtime_hour {0.0, 12.0} {0.0, 1.0}
|
||||
[279] = "%.4f", -- CLOCK_currtime_minutes {0.0, 60.0} {0.0, 1.0}
|
||||
[281] = "%.4f", -- CLOCK_elapsed_time_minutes {0.0, 60.0} {0.0, 1.0}
|
||||
[280] = "%.4f", -- CLOCK_elapsed_time_seconds {0.0, 60.0} {0.0, 1.0}
|
||||
-- ID-2163/A
|
||||
[287] = "%.4f", -- Min_Height_Indicator_ID2163A {-0.03, 0.0, 0.5, 0.8, 1.0} {0.0, 0.031, 0.525, 0.802, 0.982}
|
||||
[286] = "%.4f", -- Altitude_Pointer_ID2163A {-10.0, 0.0, 100.0, 200.0, 300.0, 400.0, 600.0, 800.0, 1000.0, 3000.0, 5000.0, 5100.0} {0.0, 0.048, 0.171, 0.296, 0.416, 0.530, 0.616, 0.706, 0.799, 0.886, 0.974, 0.98}
|
||||
[288] = "%.4f", -- OFF_Flag_ID2163A
|
||||
[290] = "%1d", -- Red_Lamp_ID2163A
|
||||
[289] = "%1d", -- Green_Lamp_ID2163A
|
||||
-- SAI
|
||||
[205] = "%.4f", -- SAI_Pitch {-1.0, 1.0}
|
||||
[206] = "%.4f", -- SAI_Bank {-1.0, 1.0}
|
||||
[209] = "%.4f", -- SAI_attitude_warning_flag
|
||||
[210] = "%.4f", -- SAI_manual_pitch_adjustment {0.0, 1.0} {-1.0, 1.0}
|
||||
[207] = "%.4f", -- SAI_SlipBall {-1.0, 1.0}
|
||||
[208] = "%.4f", -- SAI_RateOfTurn {-3.0, 3.0} {-1.0, 1.0}
|
||||
[211] = "%.4f", -- SAI_vertical_pointer {-1.0, 1.0}
|
||||
[212] = "%.4f", -- SAI_horisontal_pointer {-1.0, 1.0}
|
||||
-- Cockpit Pressure Altimeter
|
||||
[285] = "%.4f", -- CockpitPressureAltimeter {0.0, 5000.0, 10000.0, 15000.0, 20000.0, 25000.0, 30000.0, 35000.0, 40000.0, 45000.0, 50000.0} {0.0, 0.117, 0.2245, 0.3225, 0.411, 0.506, 0.609, 0.717, 0.823, 0.914, 1.0}
|
||||
-- Caution Light Indicator Panel
|
||||
[298] = "%1d", -- CPT_LTS_CK_SEAT
|
||||
[299] = "%1d", -- CPT_LTS_APU_ACC
|
||||
[300] = "%1d", -- CPT_LTS_BATT_SW
|
||||
[301] = "%1d", -- CPT_LTS_FCS_HOT
|
||||
[302] = "%1d", -- CPT_LTS_GEN_TIE
|
||||
[303] = "%1d", -- CPT_LTS_SPARE_CTN1
|
||||
[304] = "%1d", -- CPT_LTS_FUEL_LO
|
||||
[305] = "%1d", -- CPT_LTS_FCES
|
||||
[306] = "%1d", -- CPT_LTS_SPARE_CTN2
|
||||
[307] = "%1d", -- CPT_LTS_L_GEN
|
||||
[308] = "%1d", -- CPT_LTS_R_GEN
|
||||
[309] = "%1d", -- CPT_LTS_SPARE_CTN3
|
||||
-- LH Advisory and Threat Warning Indicator Panel
|
||||
[13] = "%1d", -- CPT_LTS_MASTER_CAUTION
|
||||
[10] = "%1d", -- CPT_LTS_FIRE_LEFT
|
||||
[15] = "%1d", -- CPT_LTS_GO
|
||||
[16] = "%1d", -- CPT_LTS_NO_GO
|
||||
[17] = "%1d", -- CPT_LTS_L_BLEED
|
||||
[18] = "%1d", -- CPT_LTS_R_BLEED
|
||||
[19] = "%1d", -- CPT_LTS_SPD_BRK
|
||||
[20] = "%1d", -- CPT_LTS_STBY
|
||||
[21] = "%1d", -- CPT_LTS_L_BAR_RED
|
||||
[22] = "%1d", -- CPT_LTS_REC
|
||||
[23] = "%1d", -- CPT_LTS_L_BAR_GREEN
|
||||
[24] = "%1d", -- CPT_LTS_XMIT
|
||||
[25] = "%1d", -- CPT_LTS_ASPJ_OH
|
||||
-- RH Advisory and Threat Warning Indicator Panel
|
||||
[29] = "%1d", -- CPT_LTS_FIRE_APU
|
||||
[26] = "%1d", -- CPT_LTS_FIRE_RIGHT
|
||||
[31] = "%1d", -- CPT_LTS_RCDR_ON
|
||||
[32] = "%1d", -- CPT_LTS_DISP
|
||||
[38] = "%1d", -- CPT_LTS_SAM
|
||||
[39] = "%1d", -- CPT_LTS_AI
|
||||
[40] = "%1d", -- CPT_LTS_AAA
|
||||
[41] = "%1d", -- CPT_LTS_CW
|
||||
[33] = "%1d", -- CPT_LTS_SPARE_RH1
|
||||
[34] = "%1d", -- CPT_LTS_SPARE_RH2
|
||||
[35] = "%1d", -- CPT_LTS_SPARE_RH3
|
||||
[36] = "%1d", -- CPT_LTS_SPARE_RH4
|
||||
[37] = "%1d", -- CPT_LTS_SPARE_RH5
|
||||
-- Flaps, Landing Gear and Stores Indicator Panel
|
||||
[152] = "%1d", -- CPT_LTS_CTR
|
||||
[154] = "%1d", -- CPT_LTS_LI
|
||||
[156] = "%1d", -- CPT_LTS_LO
|
||||
[158] = "%1d", -- CPT_LTS_RI
|
||||
[160] = "%1d", -- CPT_LTS_RO
|
||||
[166] = "%1d", -- CPT_LTS_NOSE_GEAR
|
||||
[165] = "%1d", -- CPT_LTS_LEFT_GEAR
|
||||
[167] = "%1d", -- CPT_LTS_RIGHT_GEAR
|
||||
[163] = "%1d", -- CPT_LTS_HALF_FLAPS
|
||||
[164] = "%1d", -- CPT_LTS_FULL_FLAPS
|
||||
[162] = "%1d", -- CPT_LTS_FLAPS
|
||||
-- Lock/Shoot Light Assy
|
||||
[1] = "%1d", -- CPT_LTS_LOCK
|
||||
[2] = "%1d", -- CPT_LTS_SHOOT
|
||||
[3] = "%1d", -- CPT_LTS_SHOOT_STROBE
|
||||
-- Master Arm Control
|
||||
[47] = "%1d", -- CPT_LTS_AA
|
||||
[48] = "%1d", -- CPT_LTS_AG
|
||||
[45] = "%1d", -- CPT_LTS_DISCH
|
||||
[44] = "%1d", -- CPT_LTS_READY
|
||||
-- Arresting Hook Control Handle
|
||||
[294] = "%1d", -- CPT_LTS_HOOK
|
||||
-- Landing Gear
|
||||
--[] = "%1d", -- CPT_LTS_LDG_GEAR_HANDLE
|
||||
-- APU Control Panel
|
||||
[376] = "%1d", -- CPT_LTS_APU_READY
|
||||
-- ECM Control Panel Assy
|
||||
--[] = "%1d", -- CPT_LTS_SEL
|
||||
-- Map Gain Control Panel Assy
|
||||
[137] = "%1d", -- CPT_LTS_SPN
|
||||
-- Height Indicator
|
||||
[290] = "%1d", -- CPT_LTS_LOW_ALT_WARN
|
||||
-- AoA Indexer Lights
|
||||
[4] = "%1d", -- CPT_LTS_AOA_HIGH
|
||||
[5] = "%1d", -- CPT_LTS_AOA_CENTER
|
||||
[6] = "%1d", -- CPT_LTS_AOA_LOW
|
||||
-- Internal Lights
|
||||
--[460] = "%.1f", -- Console
|
||||
--[461] = "%.1f", -- Flood
|
||||
--[462] = "%.1f", -- NvgFlood
|
||||
--[464] = "%.1f", -- EmerInstr
|
||||
--[465] = "%.1f", -- EngInstFlood
|
||||
--[466] = "%.1f", -- Instrument
|
||||
--[467] = "%.1f", -- StbyCompass
|
||||
--[810] = "%.1f", -- Utility
|
||||
--[463] = "%.1f", -- Chart
|
||||
-- WCAGroupLightness
|
||||
--[521] = "%.1f", -- WCAGroupLightness 1
|
||||
--[522] = "%.1f", -- WCAGroupLightness 2
|
||||
--[523] = "%.1f", -- WCAGroupLightness 3
|
||||
-- IFEI
|
||||
[468] = "%1d", -- IFEI
|
||||
[469] = "%1d", -- IFEI_buttons
|
||||
-- RWR
|
||||
[276] = "%1d", -- Lower
|
||||
[273] = "%1d", -- Limit
|
||||
[274] = "%1d", -- Display
|
||||
--[270] = "%1d", -- SpecialEn
|
||||
[271] = "%1d", -- Special
|
||||
[267] = "%1d", -- Enable
|
||||
[268] = "%1d", -- Offset
|
||||
[264] = "%1d", -- Fail
|
||||
[265] = "%1d", -- Bit
|
||||
[520] = "%.1f", -- RwrLightsBrightness
|
||||
-- CMDS
|
||||
[516] = "%1d", -- ecmJett
|
||||
-- Magnetic compas
|
||||
[149] = "%.4f", -- heading
|
||||
[150] = "%.4f", -- pitch
|
||||
[151] = "%.4f", -- bank
|
||||
}
|
||||
ExportScript.ConfigArguments =
|
||||
{
|
||||
--[[
|
||||
arguments for export in low tick interval
|
||||
based on "clickabledata.lua"
|
||||
]]
|
||||
-- Control System
|
||||
[345] = "%.2f", -- RUD TRIM Control (Axis) {-1.0, 1.0} in 0.05 Steps
|
||||
[346] = "%1d", -- T/O TRIM Button
|
||||
[349] = "%1d", -- FCS RESET Button
|
||||
[347] = "%1d", -- GAIN Switch, NORM/ORIDE
|
||||
[234] = "%1d", -- FLAP Switch, AUTO/HALF/FULL {-1.0,0.0,1.0}
|
||||
[138] = "%1d", -- Spin Recovery Switch, RCVY/NORM
|
||||
[470] = "%1d", -- FCS BIT Switch
|
||||
[295] = "%1d", -- Wing Fold Control Handle, (RMB)CW/(LMB)CCW
|
||||
[296] = "%1d", -- Wing Fold Control Handle, (MW)PULL/STOW
|
||||
[504] = "%.1f", -- Throttles Friction Adjusting Lever (Axis) {0.0, 1.0} in 0.1 Steps
|
||||
-- Electric system
|
||||
[404] = "%1d", -- Battery Switch, ON/OFF/ORIDE {-1.0,0.0,1.0}
|
||||
[402] = "%1d", -- Left Generator Control Switch, NORM/OFF
|
||||
[403] = "%1d", -- Right Generator Control Switch, NORM/OFF
|
||||
[378] = "%1d", -- Generator TIE Control Switch, NORM/RESET
|
||||
[336] = "%1d", -- External Power Switch, RESET/NORM/OFF {-1.0,0.0,1.0}
|
||||
[332] = "%1d", -- Ground Power Switch 1, A ON/AUTO/B ON {-1.0,0.0,1.0}
|
||||
[333] = "%1d", -- Ground Power Switch 2, A ON/AUTO/B ON {-1.0,0.0,1.0}
|
||||
[334] = "%1d", -- Ground Power Switch 3, A ON/AUTO/B ON {-1.0,0.0,1.0}
|
||||
[335] = "%1d", -- Ground Power Switch 4, A ON/AUTO/B ON {-1.0,0.0,1.0}
|
||||
-- Anti-Ice
|
||||
[409] = "%1d", -- Pitot Heater Switch, ON/AUTO
|
||||
[410] = "%1d", -- Engine Anti-Ice Switch, ON/OFF/TEST {-1.0,0.0,1.0}
|
||||
-- CB
|
||||
[381] = "%1d", -- CB FCS CHAN 1, ON/OFF
|
||||
[382] = "%1d", -- CB FCS CHAN 2, ON/OFF
|
||||
[383] = "%1d", -- CB SPD BRK, ON/OFF
|
||||
[384] = "%1d", -- CB LAUNCH BAR, ON/OFF
|
||||
[454] = "%1d", -- CB FCS CHAN 3, ON/OFF
|
||||
[455] = "%1d", -- CB FCS CHAN 4, ON/OFF
|
||||
[456] = "%1d", -- CB HOOK, ON/OFF
|
||||
[457] = "%1d", -- CB LG, ON/OFF
|
||||
--
|
||||
[368] = "%1d", -- MC Switch, 1 OFF/NORM/2 OFF {-1.0,0.0,1.0}
|
||||
-- Power Plant
|
||||
[375] = "%1d", -- APU Control Switch, ON/OFF
|
||||
[377] = "%1d", -- Engine Crank Switch, LEFT/OFF/RIGHT {-1.0,0.0,1.0}
|
||||
[331] = "%1d", -- Fire and Bleed Air Test Switch, (RMB) TEST A/(LMB) TEST B {-1.0,0.0,1.0}
|
||||
-- Hydraulic system
|
||||
[369] = "%1d", -- Hydraulic Isolate Override Switch, NORM/ORIDE
|
||||
-- Gear system
|
||||
[226] = "%1d", -- Landing Gear Control Handle, (RMB)UP/(LMB)DOWN {-1.0,0.0} ???
|
||||
[228] = "%1d", -- Landing Gear Control Handle, (MW)EMERGENCY DOWN {0.0,1.0} ???
|
||||
[229] = "%1d", -- Down Lock Override Button - Push to unlock
|
||||
[238] = "%1d", -- Anti Skid Switch, ON/OFF
|
||||
[240] = "%.3f", -- Emergency/Parking Brake Handle, (MW)Pull-Stow {0.0,1.0} in 0.001 Steps ???
|
||||
[241] = "%.3f", -- Emergency/Parking Brake Handle, (LMB)Rotate Left/(RMB)Rotate Right ???
|
||||
[233] = "%1d", -- Launch Bar Control Switch, EXTEND/RETRACT
|
||||
[293] = "%1d", -- Arresting Hook Handle, UP/DOWN
|
||||
-- Fuel system
|
||||
[340] = "%1d", -- Internal Wing Tank Fuel Control Switch, INHIBIT/NORM
|
||||
[341] = "%1d", -- Probe Control Switch, EXTEND/RETRACT/EMERG EXTD {-1.0,0.0}
|
||||
[344] = "%1d", -- Fuel Dump Switch, ON/OFF
|
||||
[343] = "%1d", -- External Centerline Tank Fuel Control Switch, STOP/NORM/ORIDE {-1.0,0.0}
|
||||
[342] = "%1d", -- External Wing Tanks Fuel Control Switch, STOP/NORM/ORIDE {-1.0,0.0}
|
||||
-- Cockpit Mechanics
|
||||
[453] = "%1d", -- Canopy Control Switch, OPEN/HOLD/CLOSE {-1.0,0.0,1.0}
|
||||
[43] = "%1d", -- Canopy Jettison Handle Unlock Button - Press to unlock
|
||||
[42] = "%1d", -- Canopy Jettison Handle - Pull to jettison
|
||||
[510] = "%1d", -- Ejection Control Handle (3 times)
|
||||
[511] = "%1d", -- Ejection Seat SAFE/ARMED Handle, SAFE/ARMED
|
||||
[512] = "%1d", -- Ejection Seat Manual Override Handle, PULL/PUSH
|
||||
[513] = "%1d", -- Shoulder Harness Control Handle, LOCK/UNLOCK
|
||||
[514] = "%1d", -- Seat Height Adjustment Switch, UP/HOLD/DOWN {-1.0,0.0,1.0}
|
||||
[260] = "%1d", -- Rudder Pedal Adjust Lever
|
||||
[575] = "%1d", -- Hide Stick toggle
|
||||
-- Exterior Lights
|
||||
[338] = "%.2f", -- POSITION Lights Dimmer Control {0.0,1.0} in 0.15 Steps
|
||||
[337] = "%.2f", -- FORMATION Lights Dimmer Control {0.0,1.0} in 0.15 Steps
|
||||
[339] = "%1d", -- STROBE Lights Switch, BRT/OFF/DIM {-1.0,0.0,1.0}
|
||||
[237] = "%1d", -- LDG/TAXI LIGHT Switch, ON/OFF
|
||||
-- Cockpit Lights
|
||||
[413] = "%.2f", -- CONSOLES Lights Dimmer Control {0.0,1.0} in 0.15 Steps
|
||||
[414] = "%.2f", -- INST PNL Dimmer Control {0.0,1.0} in 0.15 Steps
|
||||
[415] = "%.2f", -- FLOOD Light Dimmer Control {0.0,1.0} in 0.15 Steps
|
||||
[419] = "%1d", -- MODE Switch, NVG/NITE/DAY {-1.0,0.0,1.0}
|
||||
[418] = "%.2f", -- CHART Light Dimmer Control {0.0,1.0} in 0.15 Steps
|
||||
[417] = "%.2f", -- WARN/CAUTION Dimmer Control {0.0,1.0} in 0.15 Steps
|
||||
[416] = "%1d", -- Lights Test Switch, TEST/OFF
|
||||
[14] = "%1d", -- MASTER CAUTION Reset Button - Press to reset
|
||||
[239] = "%1d", -- HOOK BYPASS Switch, FIELD/CARRIER
|
||||
-- Oxygen System
|
||||
[365] = "%1d", -- OBOGS Control Switch, ON/OFF
|
||||
[366] = "%.2f", -- OXY Flow Knob {0.0,1.0} in 0.5 Steps
|
||||
-- ECS
|
||||
[411] = "%.1f", -- Bleed Air Knob, R OFF/NORM/L OFF/OFF {0.0,0.1,0.2,0.3}
|
||||
[412] = "%1d", -- Bleed Air Knob, AUG PULL
|
||||
[405] = "%1d", -- ECS Mode Switch, AUTO/MAN/ OFF/RAM {-1.0,0.0,1.0}
|
||||
[408] = "%1d", -- Cabin Pressure Switch, NORM/DUMP/ RAM/DUMP {-1.0,0.0,1.0}
|
||||
[451] = "%.2f", -- Defog Handle {0.0,1.0} in 0.1 Steps
|
||||
[407] = "%.2f", -- Cabin Temperature Knob {0.0,1.0} in 0.1 Steps
|
||||
[406] = "%.2f", -- Suit Temperature Knob {0.0,1.0} in 0.1 Steps
|
||||
[297] = "%1d", -- AV COOL Switch, NORM/EMERG
|
||||
[452] = "%1d", -- Windshield Anti-Ice/Rain Switch, ANTI ICE/OFF/RAIN {-1.0,0.0,1.0}
|
||||
[505] = "%.2f", -- Left Louver {0.0,1.0} in 0.1 Steps
|
||||
[506] = "%.2f", -- Right Louver {0.0,1.0} in 0.1 Steps
|
||||
-- HOTAS
|
||||
[494] = "%1d", -- Exterior Lights Switch, ON/OFF
|
||||
-- Master Arm Panel
|
||||
[458] = "%1d", -- Master Mode Button, A/A
|
||||
[459] = "%1d", -- Master Mode Button, A/G
|
||||
[49] = "%1d", -- Master Arm Switch, ARM/SAFE
|
||||
[50] = "%1d", -- Emergency Jettison Button
|
||||
[258] = "%1d", -- Auxiliary Release Switch, ENABLE/NORM
|
||||
[153] = "%1d", -- Station Jettison Select Button, CENTER
|
||||
[155] = "%1d", -- Station Jettison Select Button, LEFT IN
|
||||
[157] = "%1d", -- Station Jettison Select Button, LEFT OUT
|
||||
[159] = "%1d", -- Station Jettison Select Button, RIGHT IN
|
||||
[161] = "%1d", -- Station Jettison Select Button, RIGHT OUT
|
||||
[235] = "%1d", -- Selective Jettison Pushbutton
|
||||
[236] = "%1d", -- Selective Jettison Knob, L FUS MSL/SAFE/R FUS MSL/ RACK/LCHR /STORES {0.0,0.1,0.2,0.3,0.4}
|
||||
[135] = "%.1f", -- IR Cooling Switch, ORIDE/NORM/OFF {0.0,0.1,0.2}
|
||||
-- Fire Systems
|
||||
[46] = "%1d", -- Fire Extinguisher Pushbutton
|
||||
[30] = "%1d", -- APU Fire Warning/Extinguisher Light
|
||||
[11] = "%1d", -- Left Engine/AMAD Fire Warning/Extinguisher Light - (LMB) depress
|
||||
[12] = "%1d", -- Left Engine/AMAD Fire Warning/Extinguisher Light - (RMB) cover control
|
||||
[27] = "%1d", -- Right Engine/AMAD Fire Warning/Extinguisher Light - (LMB) depress
|
||||
[28] = "%1d", -- Right Engine/AMAD Fire Warning/Extinguisher Light - (RMB) cover control
|
||||
-- Multipurpose Display Group -----------
|
||||
-- Head-Up Display
|
||||
[140] = "%1d", -- HUD Symbology Reject Switch, NORM/REJ 1/REJ 2 {0.0,0.1,0.2}
|
||||
[141] = "%.2f", -- HUD Symbology Brightness Control Knob {0.0,1.0} in 0.1 Steps
|
||||
[142] = "%1d", -- HUD Symbology Brightness Selector Knob, DAY/NIGHT
|
||||
[143] = "%.2f", -- HUD Black Level Control Knob {0.0,1.0} in 0.1 Steps
|
||||
[144] = "%1d", -- HUD Video Control Switch, W/B /VID/OFF {0.0,0.1,0.2}
|
||||
[145] = "%.2f", -- HUD Balance Control Knob {0.0,1.0} in 0.1 Steps
|
||||
[146] = "%.2f", -- HUD AOA Indexer Control Knob {0.0,1.0} in 0.1 Steps
|
||||
[147] = "%1d", -- HUD Altitude Switch, BARO/RDR
|
||||
[148] = "%1d", -- HUD Attitude Selector Switch, INS/AUTO/STBY {-1.0,0.0,1.0}
|
||||
-- Left MDI
|
||||
[51] = "%1d", -- Left MDI Brightness Selector Knob, OFF/NIGHT/DAY {0.0,0.1,0.2}
|
||||
[52] = "%.2f", -- Left MDI Brightness Control Knob {0.0,1.0} in 0.1 Steps
|
||||
[53] = "%.2f", -- Left MDI Contrast Control Knob {0.0,1.0} in 0.1 Steps
|
||||
[54] = "%1d", -- Left MDI PB 1
|
||||
[55] = "%1d", -- Left MDI PB 2
|
||||
[56] = "%1d", -- Left MDI PB 3
|
||||
[57] = "%1d", -- Left MDI PB 4
|
||||
[58] = "%1d", -- Left MDI PB 5
|
||||
[59] = "%1d", -- Left MDI PB 6
|
||||
[60] = "%1d", -- Left MDI PB 7
|
||||
[61] = "%1d", -- Left MDI PB 8
|
||||
[62] = "%1d", -- Left MDI PB 9
|
||||
[63] = "%1d", -- Left MDI PB 10
|
||||
[64] = "%1d", -- Left MDI PB 11
|
||||
[65] = "%1d", -- Left MDI PB 12
|
||||
[66] = "%1d", -- Left MDI PB 13
|
||||
[67] = "%1d", -- Left MDI PB 14
|
||||
[68] = "%1d", -- Left MDI PB 15
|
||||
[69] = "%1d", -- Left MDI PB 16
|
||||
[70] = "%1d", -- Left MDI PB 17
|
||||
[72] = "%1d", -- Left MDI PB 18
|
||||
[73] = "%1d", -- Left MDI PB 19
|
||||
[75] = "%1d", -- Left MDI PB 20
|
||||
[312] = "%1d", -- Heading Set Switch
|
||||
[313] = "%1d", -- Course Set Switch
|
||||
-- Right MDI
|
||||
[76] = "%.1f", -- Right MDI Brightness Selector Knob, OFF/NIGHT/DAY {0.0,0.1,0.2}
|
||||
[77] = "%.2f", -- Right MDI Brightness Control Knob {0.0,1.0} in 0.1 Steps
|
||||
[78] = "%.2f", -- Right MDI Contrast Control Knob {0.0,1.0} in 0.1 Steps
|
||||
[79] = "%1d", -- Right MDI PB 1
|
||||
[80] = "%1d", -- Right MDI PB 2
|
||||
[81] = "%1d", -- Right MDI PB 3
|
||||
[82] = "%1d", -- Right MDI PB 4
|
||||
[83] = "%1d", -- Right MDI PB 5
|
||||
[84] = "%1d", -- Right MDI PB 6
|
||||
[85] = "%1d", -- Right MDI PB 7
|
||||
[86] = "%1d", -- Right MDI PB 8
|
||||
[87] = "%1d", -- Right MDI PB 9
|
||||
[88] = "%1d", -- Right MDI PB 10
|
||||
[89] = "%1d", -- Right MDI PB 11
|
||||
[90] = "%1d", -- Right MDI PB 12
|
||||
[91] = "%1d", -- Right MDI PB 13
|
||||
[92] = "%1d", -- Right MDI PB 14
|
||||
[93] = "%1d", -- Right MDI PB 15
|
||||
[94] = "%1d", -- Right MDI PB 16
|
||||
[95] = "%1d", -- Right MDI PB 17
|
||||
[96] = "%1d", -- Right MDI PB 18
|
||||
[97] = "%1d", -- Right MDI PB 19
|
||||
[98] = "%1d", -- Right MDI PB 20
|
||||
-- AMPCD
|
||||
[203] = "%.2f", -- AMPCD Off/Brightness Control Knob {0.0,1.0} in 0.1 Steps
|
||||
[177] = "%1d", -- AMPCD Night/Day Brightness Selector, DAY/NGT {1.0,0.0,-1.0}
|
||||
[179] = "%1d", -- AMPCD Symbology Control Switch, UP/DOWN {1.0,0.0,-1.0}
|
||||
[182] = "%1d", -- AMPCD Contrast Control Switch, UP/DOWN {1.0,0.0,-1.0}
|
||||
[180] = "%1d", -- AMPCD Gain Control Switch, UP/DOWN {1.0,0.0,-1.0}
|
||||
[183] = "%1d", -- AMPCD PB 1
|
||||
[184] = "%1d", -- AMPCD PB 2
|
||||
[185] = "%1d", -- AMPCD PB 3
|
||||
[186] = "%1d", -- AMPCD PB 4
|
||||
[187] = "%1d", -- AMPCD PB 5
|
||||
[188] = "%1d", -- AMPCD PB 6
|
||||
[189] = "%1d", -- AMPCD PB 7
|
||||
[190] = "%1d", -- AMPCD PB 8
|
||||
[191] = "%1d", -- AMPCD PB 9
|
||||
[192] = "%1d", -- AMPCD PB 10
|
||||
[193] = "%1d", -- AMPCD PB 11
|
||||
[194] = "%1d", -- AMPCD PB 12
|
||||
[195] = "%1d", -- AMPCD PB 13
|
||||
[196] = "%1d", -- AMPCD PB 14
|
||||
[197] = "%1d", -- AMPCD PB 15
|
||||
[198] = "%1d", -- AMPCD PB 16
|
||||
[199] = "%1d", -- AMPCD PB 17
|
||||
[200] = "%1d", -- AMPCD PB 18
|
||||
[201] = "%1d", -- AMPCD PB 19
|
||||
[202] = "%1d", -- AMPCD PB 20
|
||||
-- Instruments --------------------------
|
||||
-- Standby Pressure Altimeter AAU-52/A
|
||||
[224] = "%.2f", -- AAU-52 Altimeter Pressure Setting Knob {0.0,1.0} in 0.04 Steps
|
||||
-- Radar Altimeter Height Indicator
|
||||
[291] = "%.2f", -- Push to Test Switch, (MW) rotate clockwise to apply power and set low altitude index pointer {0.0,1.0} in 0.1 Steps
|
||||
[292] = "%1d", -- Push to Test Switch, (LMB) activate BIT checks
|
||||
[213] = "%1d", -- SAI Cage Knob, (LMB) Pull to cage
|
||||
[214] = "%.2f", -- SAI Cage Knob, (MW) Adjust miniature airplane {0.0,1.0} in 0.1 Steps
|
||||
[215] = "%1d", -- SAI Test Button - Push to test
|
||||
-- Integrated Fuel/Engine Indicator (IFEI)
|
||||
[168] = "%1d", -- IFEI Mode Button
|
||||
[169] = "%1d", -- IFEI QTY Button
|
||||
[170] = "%1d", -- IFEI Up Arrow Button
|
||||
[171] = "%1d", -- IFEI Down Arrow Button
|
||||
[172] = "%1d", -- IFEI ZONE Button
|
||||
[173] = "%1d", -- IFEI ET Button
|
||||
[174] = "%.2f", -- IFEI Brightness Control Knob {0.0,1.0} in 0.1 Steps
|
||||
-- Sensor panel
|
||||
[440] = "%.1f", -- RADAR Switch (MW to pull), OFF/STBY/OPR/EMERG(PULL) {0.0,1.0} {0.0,0.1,0.2,0.3}
|
||||
[443] = "%.1f", -- INS Switch, OFF/CV/GND/NAV/IFA/GYRO/GB/TEST {0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7}
|
||||
-- UFC
|
||||
[128] = "%1d", -- UFC Function Selector Pushbutton, A/P
|
||||
[129] = "%1d", -- UFC Function Selector Pushbutton, IFF
|
||||
[130] = "%1d", -- UFC Function Selector Pushbutton, TCN
|
||||
[131] = "%1d", -- UFC Function Selector Pushbutton, ILS
|
||||
[132] = "%1d", -- UFC Function Selector Pushbutton, D/L
|
||||
[133] = "%1d", -- UFC Function Selector Pushbutton, BCN
|
||||
[134] = "%1d", -- UFC Function Selector Pushbutton, ON/OFF
|
||||
[100] = "%1d", -- UFC Option Select Pushbutton 1
|
||||
[101] = "%1d", -- UFC Option Select Pushbutton 2
|
||||
[102] = "%1d", -- UFC Option Select Pushbutton 3
|
||||
[103] = "%1d", -- UFC Option Select Pushbutton 4
|
||||
[106] = "%1d", -- UFC Option Select Pushbutton 5
|
||||
[111] = "%1d", -- UFC Keyboard Pushbutton, 1
|
||||
[112] = "%1d", -- UFC Keyboard Pushbutton, 2
|
||||
[113] = "%1d", -- UFC Keyboard Pushbutton, 3
|
||||
[114] = "%1d", -- UFC Keyboard Pushbutton, 4
|
||||
[115] = "%1d", -- UFC Keyboard Pushbutton, 5
|
||||
[116] = "%1d", -- UFC Keyboard Pushbutton, 6
|
||||
[117] = "%1d", -- UFC Keyboard Pushbutton, 7
|
||||
[118] = "%1d", -- UFC Keyboard Pushbutton, 8
|
||||
[119] = "%1d", -- UFC Keyboard Pushbutton, 9
|
||||
[120] = "%1d", -- UFC Keyboard Pushbutton, 0
|
||||
[121] = "%1d", -- UFC Keyboard Pushbutton, CLR
|
||||
[122] = "%1d", -- UFC Keyboard Pushbutton, ENT
|
||||
[99] = "%1d", -- UFC I/P Pushbutton
|
||||
[110] = "%1d", -- UFC Emission Control Pushbutton
|
||||
[107] = "%1d", -- UFC ADF Function Select Switch, 1/OFF/2 {-1.0,0.0,1.0}
|
||||
[108] = "%.2f", -- UFC COMM 1 Volume Control Knob {0.0,1.0} in 0.1 Steps
|
||||
[123] = "%.2f", -- UFC COMM 2 Volume Control Knob {0.0,1.0} in 0.1 Steps
|
||||
[109] = "%.2f", -- UFC Brightness Control Knob {0.0,1.0} in 0.1 Steps
|
||||
[125] = "%1d", -- UFC COMM 1 Channel Selector Knob
|
||||
[124] = "%.2f", -- UFC COMM 1 Channel Selector Knob {0.0,1.0} in 0.2 Steps
|
||||
[127] = "%1d", -- UFC COMM 2 Channel Selector Knob
|
||||
[126] = "%.2f", -- UFC COMM 2 Channel Selector Knob {0.0,1.0} in 0.2 Steps
|
||||
-- intercom
|
||||
[357] = "%.2f", -- VOX Volume Control Knob {0.0,1.0} in 0.1 Steps
|
||||
[358] = "%.2f", -- ICS Volume Control Knob {0.0,1.0} in 0.1 Steps
|
||||
[359] = "%.2f", -- RWR Volume Control Knob {0.0,1.0} in 0.1 Steps
|
||||
[360] = "%.2f", -- WPN Volume Control Knob {0.0,1.0} in 0.1 Steps
|
||||
[361] = "%.2f", -- MIDS B Volume Control Knob {0.0,1.0} in 0.1 Steps
|
||||
[362] = "%.2f", -- MIDS A Volume Control Knob {0.0,1.0} in 0.1 Steps
|
||||
[363] = "%.2f", -- TACAN Volume Control Knob {0.0,1.0} in 0.1 Steps
|
||||
[364] = "%.2f", -- AUX Volume Control Knob {0.0,1.0} in 0.1 Steps
|
||||
[350] = "%1d", -- Comm Relay Switch, CIPHER/OFF/PLAIN {-1.0,0.0,1.0}
|
||||
[351] = "%1d", -- COMM G XMT Switch, COMM 1/OFF/COMM 2 {-1.0,0.0,1.0}
|
||||
[356] = "%1d", -- IFF Master Switch, EMER/NORM
|
||||
[355] = "%1d", -- IFF Mode 4 Switch, DIS/AUD /DIS/OFF {-1.0,0.0,1.0}
|
||||
[354] = "%1d", -- CRYPTO Switch, HOLD/NORM/ZERO {-1.0,0.0,1.0}
|
||||
[353] = "%1d", -- ILS UFC/MAN Switch, UFC/MAN
|
||||
[352] = "%.2f", -- ILS Channel Selector Switch {0.0,0.05,0.10,0.15,0.20,0.25,0.30,0.35,0.40,0.45,0.50,0.55,0.60,0.65,0.70,0.75,0.80,0.85,0.90,0.95}
|
||||
[230] = "%1d", -- Warning Tone Silence Button - Push to silence
|
||||
-- KY-58
|
||||
[444] = "%.1f", -- KY-58 Mode Select Knob, P/C/LD/RV {0.0,0.1,0.2,0.3}
|
||||
[445] = "%.2f", -- KY-58 Volume Control Knob {0.0,1.0} in 0.1 Steps
|
||||
[446] = "%.1f", -- KY-58 Fill Select Knob, Z 1-5/1/2/3/4/5/6/Z ALL {0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7}
|
||||
[447] = "%.1f", -- KY-58 Power Select Knob, OFF/ON/TD {0.0,0.1,0.2}
|
||||
-- antenna selector
|
||||
[373] = "%1d", -- COMM 1 Antenna Selector Switch, UPPER/AUTO/LOWER {-1.0,0.0,1.0}
|
||||
[374] = "%1d", -- IFF Antenna Selector Switch, UPPER/BOTH/LOWER {-1.0,0.0,1.0}
|
||||
-- RWR
|
||||
[277] = "%1d", -- ALR-67 POWER Pushbutton
|
||||
[275] = "%1d", -- ALR-67 DISPLAY Pushbutton
|
||||
[272] = "%1d", -- ALR-67 SPECIAL Pushbutton
|
||||
[269] = "%1d", -- ALR-67 OFFSET Pushbutton
|
||||
[266] = "%1d", -- ALR-67 BIT Pushbutton
|
||||
[263] = "%.2f", -- ALR-67 DMR Control Knob {0.0,1.0} in 0.1 Steps
|
||||
[262] = "%.2f", -- ALR-67 AUDIO Control Knob (no function){0.0,1.0} in 0.1 Steps
|
||||
[261] = "%.1f", -- ALR-67 DIS TYPE Switch, N/I/A/U/F {0.0,0.1,0.2,0.3,0.4}
|
||||
[216] = "%.2f", -- ALR-67 RWR Intensity Knob {0.0,1.0} in 0.1 Steps
|
||||
-- CMDS
|
||||
[380] = "%1d", -- Dispense Button - Push to dispense flares and chaff
|
||||
[517] = "%.1f", -- DISPENSER Switch, BYPASS/ON/OFF {0.0,0.1,0.2}
|
||||
[515] = "%1d", -- ECM JETT JETT SEL Button - Push to jettison
|
||||
-- ICMCP
|
||||
[248] = "%.1f", -- ECM Mode Switch, XMIT/REC/BIT/STBY/OFF {0.0,0.1,0.2,0.3,0.4}
|
||||
-- Helmet
|
||||
[136] = "%.2f", -- HMD OFF/BRT Knob {0.0,0.75} in 0.01 Steps
|
||||
-- Targeting Pod, FLIR
|
||||
[439] = "%.1f", -- FLIR Switch, ON/STBY/OFF {0.0,0.5,1.0}
|
||||
[441] = "%.1f", -- LTD/R Switch, ARM/SAFE/AFT {0.0,0.5,1.0}
|
||||
}
|
||||
|
||||
-----------------------------
|
||||
-- HIGH IMPORTANCE EXPORTS --
|
||||
-- done every export event --
|
||||
-----------------------------
|
||||
|
||||
-- Pointed to by ProcessIkarusDCSHighImportance
|
||||
function ExportScript.ProcessIkarusDCSConfigHighImportance(mainPanelDevice)
|
||||
--[[
|
||||
every frame export to Ikarus
|
||||
Example from A-10C
|
||||
Get Radio Frequencies
|
||||
get data from device
|
||||
local lUHFRadio = GetDevice(54)
|
||||
ExportScript.Tools.SendData("ExportID", "Format")
|
||||
ExportScript.Tools.SendData(2000, string.format("%7.3f", lUHFRadio:get_frequency()/1000000)) <- special function for get frequency data
|
||||
]]
|
||||
end
|
||||
|
||||
function ExportScript.ProcessDACConfigHighImportance(mainPanelDevice)
|
||||
--[[
|
||||
every frame export to DAC
|
||||
Example from A-10C
|
||||
Get Radio Frequencies
|
||||
get data from device
|
||||
local UHF_RADIO = GetDevice(54)
|
||||
ExportScript.Tools.SendDataDAC("ExportID", "Format")
|
||||
ExportScript.Tools.SendDataDAC("ExportID", "Format", HardwareConfigID)
|
||||
ExportScript.Tools.SendDataDAC("2000", string.format("%7.3f", UHF_RADIO:get_frequency()/1000000))
|
||||
ExportScript.Tools.SendDataDAC("2000", string.format("%7.3f", UHF_RADIO:get_frequency()/1000000), 2) -- export to Hardware '2' Config
|
||||
]]
|
||||
end
|
||||
|
||||
-----------------------------------------------------
|
||||
-- LOW IMPORTANCE EXPORTS --
|
||||
-- done every gExportLowTickInterval export events --
|
||||
-----------------------------------------------------
|
||||
|
||||
-- Pointed to by ExportScript.ProcessIkarusDCSConfigLowImportance
|
||||
function ExportScript.ProcessIkarusDCSConfigLowImportance(mainPanelDevice)
|
||||
--[[
|
||||
export in low tick interval to Ikarus
|
||||
Example from A-10C
|
||||
Get Radio Frequencies
|
||||
get data from device
|
||||
local lUHFRadio = GetDevice(54)
|
||||
ExportScript.Tools.SendData("ExportID", "Format")
|
||||
ExportScript.Tools.SendData(2000, string.format("%7.3f", lUHFRadio:get_frequency()/1000000)) <- special function for get frequency data
|
||||
]]
|
||||
|
||||
--ExportScript.Tools.WriteToLog('list_cockpit_params(): '..ExportScript.Tools.dump(list_cockpit_params()))
|
||||
|
||||
-- IFEI - Engine, Fuel and Clock informations
|
||||
local lEngineFuelClock = ExportScript.Tools.getListIndicatorValue(5)
|
||||
if ExportScript.Config.Debug then
|
||||
ExportScript.Tools.WriteToLog('EngineFuelClock: '..ExportScript.Tools.dump(lEngineFuelClock))
|
||||
end
|
||||
|
||||
if lEngineFuelClock ~= nil and lEngineFuelClock.txt_RPM_R ~= nil then
|
||||
-- Engine informations 3 character
|
||||
ExportScript.Tools.SendData(2000, ExportScript.Tools.DisplayFormat(lEngineFuelClock.txt_RPM_R, 3)) -- right RPM
|
||||
ExportScript.Tools.SendData(2001, ExportScript.Tools.DisplayFormat(lEngineFuelClock.txt_RPM_L, 3)) -- left RPM
|
||||
ExportScript.Tools.SendData(2002, ExportScript.Tools.DisplayFormat(lEngineFuelClock.txt_TEMP_R, 3)) -- right TEMP
|
||||
ExportScript.Tools.SendData(2003, ExportScript.Tools.DisplayFormat(lEngineFuelClock.txt_TEMP_L, 3)) -- left TEMP
|
||||
ExportScript.Tools.SendData(2004, ExportScript.Tools.DisplayFormat(lEngineFuelClock.txt_FF_R, 3)) -- right Fuel flow
|
||||
ExportScript.Tools.SendData(2005, ExportScript.Tools.DisplayFormat(lEngineFuelClock.txt_FF_L, 3)) -- left Fuel flow
|
||||
ExportScript.Tools.SendData(2006, ExportScript.Tools.DisplayFormat(lEngineFuelClock.txt_OilPress_R, 3)) -- right OilPress
|
||||
ExportScript.Tools.SendData(2007, ExportScript.Tools.DisplayFormat(lEngineFuelClock.txt_OilPress_L, 3)) -- left OilPress
|
||||
|
||||
-- Fuel informations 6 character
|
||||
ExportScript.Tools.SendData(2008, ExportScript.Tools.DisplayFormat(lEngineFuelClock.txt_FUEL_UP, 6)) -- up Fuel
|
||||
ExportScript.Tools.SendData(2009, ExportScript.Tools.DisplayFormat(lEngineFuelClock.txt_FUEL_DOWN, 6)) -- down Fuel
|
||||
ExportScript.Tools.SendData(2010, ExportScript.Tools.DisplayFormat(lEngineFuelClock.txt_BINGO, 6)) -- BINGO
|
||||
|
||||
-- Clock 8 character
|
||||
ExportScript.Tools.SendData(2011, ExportScript.Tools.DisplayFormat(string.format("%s¦%s¦%s", lEngineFuelClock.txt_CLOCK_H, lEngineFuelClock.txt_CLOCK_M, lEngineFuelClock.txt_CLOCK_S), 8)) -- Clock HH:MM:SS
|
||||
else
|
||||
-- Engine informations 3 character
|
||||
ExportScript.Tools.SendData(2000, " ") -- right RPM
|
||||
ExportScript.Tools.SendData(2001, " ") -- left RPM
|
||||
ExportScript.Tools.SendData(2002, " ") -- right TEMP
|
||||
ExportScript.Tools.SendData(2003, " ") -- left TEMP
|
||||
ExportScript.Tools.SendData(2004, " ") -- right Fuel flow
|
||||
ExportScript.Tools.SendData(2005, " ") -- left Fuel flow
|
||||
ExportScript.Tools.SendData(2006, " ") -- right OilPress
|
||||
ExportScript.Tools.SendData(2007, " ") -- left OilPress
|
||||
|
||||
-- Fuel informations 6 character
|
||||
ExportScript.Tools.SendData(2008, " ") -- up Fuel
|
||||
ExportScript.Tools.SendData(2009, " ") -- down Fuel
|
||||
ExportScript.Tools.SendData(2010, " ") -- BINGO
|
||||
|
||||
-- Clock 8 character
|
||||
ExportScript.Tools.SendData(2011, " ") -- Clock HH:MM:SS
|
||||
end
|
||||
|
||||
-- UFC Displays
|
||||
local lUFCDisplays = ExportScript.Tools.getListIndicatorValue(6)
|
||||
if ExportScript.Config.Debug then
|
||||
ExportScript.Tools.WriteToLog('UFC: '..ExportScript.Tools.dump(lUFCDisplays))
|
||||
end
|
||||
|
||||
if lUFCDisplays ~= nil and lUFCDisplays.UFC_MainDummy ~= nil then
|
||||
-- ScratchPadString Displays
|
||||
lUFCDisplays.UFC_ScratchPadString1Display = string.gsub(lUFCDisplays.UFC_ScratchPadString1Display, "_", "-") -- fix weil das ein - sein sollte
|
||||
lUFCDisplays.UFC_ScratchPadString2Display = string.gsub(lUFCDisplays.UFC_ScratchPadString2Display, "_", "-") -- fix weil das ein - sein sollte
|
||||
lUFCDisplays.UFC_ScratchPadString1Display = string.gsub(lUFCDisplays.UFC_ScratchPadString1Display, "~", "2") -- fix weil das eine 2 sein sollte
|
||||
lUFCDisplays.UFC_ScratchPadString2Display = string.gsub(lUFCDisplays.UFC_ScratchPadString2Display, "~", "2") -- fix weil das eine 2 sein sollte
|
||||
lUFCDisplays.UFC_ScratchPadString1Display = string.gsub(lUFCDisplays.UFC_ScratchPadString1Display, "`", "1") -- fix weil das eine 1 sein sollte
|
||||
lUFCDisplays.UFC_ScratchPadString2Display = string.gsub(lUFCDisplays.UFC_ScratchPadString2Display, "`", "1") -- fix weil das eine 1 sein sollte
|
||||
ExportScript.Tools.SendData(2020, ExportScript.Tools.DisplayFormat(lUFCDisplays.UFC_ScratchPadString1Display, 2)) -- ScratchPadString1Display 2 character
|
||||
ExportScript.Tools.SendData(2021, ExportScript.Tools.DisplayFormat(lUFCDisplays.UFC_ScratchPadString2Display, 2)) -- ScratchPadString2Display 2 character
|
||||
ExportScript.Tools.SendData(2022, ExportScript.Tools.DisplayFormat(lUFCDisplays.UFC_ScratchPadNumberDisplay, 7)) -- ScratchPadNumberDisplay 7 character
|
||||
|
||||
local lTmpCueing = " "
|
||||
-- Option Displays
|
||||
lTmpCueing = (#lUFCDisplays.UFC_OptionCueing1 > 0 and "¦" or " ")
|
||||
ExportScript.Tools.SendData(2023, ExportScript.Tools.DisplayFormat(lTmpCueing..lUFCDisplays.UFC_OptionDisplay1)) -- OptionDisplay1 5 character
|
||||
lTmpCueing = (#lUFCDisplays.UFC_OptionCueing2 > 0 and "¦" or " ")
|
||||
ExportScript.Tools.SendData(2024, ExportScript.Tools.DisplayFormat(lTmpCueing..lUFCDisplays.UFC_OptionDisplay2)) -- OptionDisplay2 5 character
|
||||
lTmpCueing = (#lUFCDisplays.UFC_OptionCueing3 > 0 and "¦" or " ")
|
||||
ExportScript.Tools.SendData(2025, ExportScript.Tools.DisplayFormat(lTmpCueing..lUFCDisplays.UFC_OptionDisplay3)) -- OptionDisplay3 5 character
|
||||
lTmpCueing = (#lUFCDisplays.UFC_OptionCueing4 > 0 and "¦" or " ")
|
||||
ExportScript.Tools.SendData(2026, ExportScript.Tools.DisplayFormat(lTmpCueing..lUFCDisplays.UFC_OptionDisplay4)) -- OptionDisplay4 5 character
|
||||
lTmpCueing = (#lUFCDisplays.UFC_OptionCueing5 > 0 and "¦" or " ")
|
||||
ExportScript.Tools.SendData(2027, ExportScript.Tools.DisplayFormat(lTmpCueing..lUFCDisplays.UFC_OptionDisplay5)) -- OptionDisplay5 5 character
|
||||
|
||||
-- Comm Displays
|
||||
lUFCDisplays.UFC_Comm1Display = string.gsub(lUFCDisplays.UFC_Comm1Display, "~", "2") -- fix weil das eine 2 sein sollte
|
||||
lUFCDisplays.UFC_Comm2Display = string.gsub(lUFCDisplays.UFC_Comm2Display, "~", "2") -- fix weil das eine 2 sein sollte
|
||||
lUFCDisplays.UFC_Comm1Display = string.gsub(lUFCDisplays.UFC_Comm1Display, "`", "1") -- fix weil das eine 1 sein sollte
|
||||
lUFCDisplays.UFC_Comm2Display = string.gsub(lUFCDisplays.UFC_Comm2Display, "`", "1") -- fix weil das eine 1 sein sollte
|
||||
ExportScript.Tools.SendData(2028, ExportScript.Tools.DisplayFormat(lUFCDisplays.UFC_Comm1Display, 2)) -- Comm1Display 2 character
|
||||
ExportScript.Tools.SendData(2029, ExportScript.Tools.DisplayFormat(lUFCDisplays.UFC_Comm2Display, 2)) -- Comm2Display 2 character
|
||||
else
|
||||
-- ScratchPadString Displays
|
||||
ExportScript.Tools.SendData(2020, " ") -- ScratchPadString1Display 2 character
|
||||
ExportScript.Tools.SendData(2021, " ") -- ScratchPadString2Display 2 character
|
||||
ExportScript.Tools.SendData(2022, " ") -- ScratchPadNumberDisplay 7 character
|
||||
|
||||
-- Option Displays
|
||||
ExportScript.Tools.SendData(2023, " ") -- OptionDisplay1 5 character
|
||||
ExportScript.Tools.SendData(2024, " ") -- OptionDisplay2 5 character
|
||||
ExportScript.Tools.SendData(2025, " ") -- OptionDisplay3 5 character
|
||||
ExportScript.Tools.SendData(2026, " ") -- OptionDisplay4 5 character
|
||||
ExportScript.Tools.SendData(2027, " ") -- OptionDisplay5 5 character
|
||||
|
||||
-- Comm Displays
|
||||
ExportScript.Tools.SendData(2028, " ") -- Comm1Display 2 character
|
||||
ExportScript.Tools.SendData(2029, " ") -- Comm2Display 2 character
|
||||
end
|
||||
|
||||
local lUHF1Radio = GetDevice(38)
|
||||
ExportScript.Tools.SendData(2030, ExportScript.Tools.DisplayFormat(ExportScript.Tools.RoundFreqeuncy((lUHF1Radio:get_frequency()/1000000))), 7)
|
||||
|
||||
local lUHF2Radio = GetDevice(39)
|
||||
ExportScript.Tools.SendData(2031, ExportScript.Tools.DisplayFormat(ExportScript.Tools.RoundFreqeuncy((lUHF2Radio:get_frequency()/1000000), "7.3", false, 0.005)), 7)
|
||||
end
|
||||
|
||||
function ExportScript.ProcessDACConfigLowImportance(mainPanelDevice)
|
||||
--[[
|
||||
export in low tick interval to DAC
|
||||
Example from A-10C
|
||||
Get Radio Frequencies
|
||||
get data from device
|
||||
local UHF_RADIO = GetDevice(54)
|
||||
ExportScript.Tools.SendDataDAC("ExportID", "Format")
|
||||
ExportScript.Tools.SendDataDAC("ExportID", "Format", HardwareConfigID)
|
||||
ExportScript.Tools.SendDataDAC("2000", string.format("%7.3f", UHF_RADIO:get_frequency()/1000000))
|
||||
ExportScript.Tools.SendDataDAC("2000", string.format("%7.3f", UHF_RADIO:get_frequency()/1000000), 2) -- export to Hardware '2' Config
|
||||
]]
|
||||
|
||||
-- IFEI - Engine, Fuel and Clock informations
|
||||
local lEngineFuelClock = ExportScript.Tools.getListIndicatorValue(5)
|
||||
if ExportScript.Config.Debug then
|
||||
ExportScript.Tools.WriteToLog('EngineFuelClock: '..ExportScript.Tools.dump(lEngineFuelClock))
|
||||
end
|
||||
|
||||
if lEngineFuelClock ~= nil and lEngineFuelClock.txt_RPM_R ~= nil then
|
||||
-- Engine informations 3 character
|
||||
ExportScript.Tools.SendDataDAC(2000, ExportScript.Tools.DisplayFormat(lEngineFuelClock.txt_RPM_R, 3, "r", true)) -- right RPM
|
||||
ExportScript.Tools.SendDataDAC(2001, ExportScript.Tools.DisplayFormat(lEngineFuelClock.txt_RPM_L, 3, "r", true)) -- left RPM
|
||||
ExportScript.Tools.SendDataDAC(2002, ExportScript.Tools.DisplayFormat(lEngineFuelClock.txt_TEMP_R, 3, "r", true)) -- right TEMP
|
||||
ExportScript.Tools.SendDataDAC(2003, ExportScript.Tools.DisplayFormat(lEngineFuelClock.txt_TEMP_L, 3, "r", true)) -- left TEMP
|
||||
ExportScript.Tools.SendDataDAC(2004, ExportScript.Tools.DisplayFormat(lEngineFuelClock.txt_FF_R, 3, "r", true)) -- right Fuel flow
|
||||
ExportScript.Tools.SendDataDAC(2005, ExportScript.Tools.DisplayFormat(lEngineFuelClock.txt_FF_L, 3, "r", true)) -- left Fuel flow
|
||||
ExportScript.Tools.SendDataDAC(2006, ExportScript.Tools.DisplayFormat(lEngineFuelClock.txt_OilPress_R, 3, "r", true)) -- right OilPress
|
||||
ExportScript.Tools.SendDataDAC(2007, ExportScript.Tools.DisplayFormat(lEngineFuelClock.txt_OilPress_L, 3, "r", true)) -- left OilPress
|
||||
|
||||
-- Fuel informations 6 character
|
||||
ExportScript.Tools.SendDataDAC(2008, ExportScript.Tools.DisplayFormat(lEngineFuelClock.txt_FUEL_UP:match("%d+"), 6, "r", true)) -- up Fuel
|
||||
ExportScript.Tools.SendDataDAC(2009, ExportScript.Tools.DisplayFormat(lEngineFuelClock.txt_FUEL_DOWN:match("%d+"), 6, "r", true)) -- down Fuel
|
||||
ExportScript.Tools.SendDataDAC(2010, ExportScript.Tools.DisplayFormat(lEngineFuelClock.txt_BINGO:match("%d+"), 6, "r", true)) -- BINGO
|
||||
|
||||
-- Clock 8 character
|
||||
ExportScript.Tools.SendDataDAC(2011, ExportScript.Tools.DisplayFormat(string.format("%s.%s.$s", lEngineFuelClock.txt_CLOCK_H, lEngineFuelClock.txt_CLOCK_M, lEngineFuelClock.txt_CLOCK_S)), 8, "r", true) -- Clock HH:MM:SS
|
||||
else
|
||||
-- Engine informations 3 character
|
||||
ExportScript.Tools.SendDataDAC(2000, "-") -- right RPM
|
||||
ExportScript.Tools.SendDataDAC(2001, "-") -- left RPM
|
||||
ExportScript.Tools.SendDataDAC(2002, "-") -- right TEMP
|
||||
ExportScript.Tools.SendDataDAC(2003, "-") -- left TEMP
|
||||
ExportScript.Tools.SendDataDAC(2004, "-") -- right Fuel flow
|
||||
ExportScript.Tools.SendDataDAC(2005, "-") -- left Fuel flow
|
||||
ExportScript.Tools.SendDataDAC(2006, "-") -- right OilPress
|
||||
ExportScript.Tools.SendDataDAC(2007, "-") -- left OilPress
|
||||
|
||||
-- Fuel informations 5 character
|
||||
ExportScript.Tools.SendDataDAC(2008, "-") -- up Fuel
|
||||
ExportScript.Tools.SendDataDAC(2009, "-") -- down Fuel
|
||||
ExportScript.Tools.SendDataDAC(2010, "-") -- BINGO
|
||||
|
||||
-- Clock 8 character
|
||||
ExportScript.Tools.SendDataDAC(2011, "-") -- Clock HH:MM:SS
|
||||
end
|
||||
|
||||
local lUHF1Radio = GetDevice(39)
|
||||
ExportScript.Tools.SendDataDAC(2030, ExportScript.Tools.DisplayFormat(ExportScript.Tools.RoundFreqeuncy((lUHF1Radio:get_frequency()/1000000))), 7)
|
||||
|
||||
local lUHF2Radio = GetDevice(40)
|
||||
ExportScript.Tools.SendDataDAC(2031, ExportScript.Tools.DisplayFormat(ExportScript.Tools.RoundFreqeuncy((lUHF2Radio:get_frequency()/1000000), "7.3", false, 0.005)), 7)
|
||||
|
||||
--=====================================================================================
|
||||
--[[
|
||||
ExportScript.Tools.WriteToLog('list_cockpit_params(): '..ExportScript.Tools.dump(list_cockpit_params()))
|
||||
ExportScript.Tools.WriteToLog('CMSP: '..ExportScript.Tools.dump(list_indication(7)))
|
||||
|
||||
local ltmp1 = 0
|
||||
for ltmp2 = 0, 13, 1 do
|
||||
ltmp1 = list_indication(ltmp2)
|
||||
ExportScript.Tools.WriteToLog(ltmp2..': '..ExportScript.Tools.dump(ltmp1))
|
||||
--ExportScript.Tools.WriteToLog(ltmp2..' (metatable): '..ExportScript.Tools.dump(getmetatable(ltmp1)))
|
||||
end
|
||||
]]
|
||||
--[[
|
||||
local ltmp1 = 0
|
||||
for ltmp2 = 1, 73, 1 do
|
||||
ltmp1 = GetDevice(ltmp2)
|
||||
ExportScript.Tools.WriteToLog(ltmp2..': '..ExportScript.Tools.dump(ltmp1))
|
||||
ExportScript.Tools.WriteToLog(ltmp2..' (metatable): '..ExportScript.Tools.dump(getmetatable(ltmp1)))
|
||||
end
|
||||
]]
|
||||
end
|
||||
|
||||
-----------------------------
|
||||
-- Custom functions --
|
||||
-----------------------------
|
||||
453
ExportsModules/JF-17.lua
Normal file
453
ExportsModules/JF-17.lua
Normal file
@@ -0,0 +1,453 @@
|
||||
-- JF-17 Export Module Revision CKN200515A
|
||||
-- Feel free to use, modify and repost in any way you desire.
|
||||
|
||||
ExportScript.FoundDCSModule = true
|
||||
ExportScript.Version.JF17 = "1.2.1"
|
||||
|
||||
ExportScript.ConfigEveryFrameArguments =
|
||||
{
|
||||
[130] = "%1d", -- Master Warning Light, OFF/ON {0,1}
|
||||
[131] = "%1d", -- Fire Warning Light, OFF/ON {0,1}
|
||||
[132] = "%1d", -- FCS Warning Light, OFF/ON {0,1}
|
||||
[242] = "%1d", -- OXY BLINK Warning Light, OFF/ON {0,1}
|
||||
[250] = "%.2f", -- Stick Pitch Position, MIN..MAX {0..1}
|
||||
[251] = "%.2f", -- Stick Bank Position, MIN..MAX {0..1}
|
||||
[254] = "%.2f", -- Throttle Position, MIN..MAX {-1..1}
|
||||
[256] = "%.2f", -- Left Toe Brake Position, MIN..MAX {0..1}
|
||||
[257] = "%.2f", -- Right Toe Brake Position, MIN..MAX {0..1}
|
||||
[259] = "%.2f", -- Rudder Pedal Left-Right Position, MIN..MAX {-1..1}
|
||||
[290] = "%.2f", -- Oxygen Gauge Needle Position, MIN..MAX {0..1}
|
||||
[291] = "%.2f", -- Pneumatic Gauge M Needle Position, MIN..MAX {0..1}
|
||||
[292] = "%.2f", -- Pneumatic Gauge E Needle Position, MIN..MAX {0..1}
|
||||
[293] = "%.4f", -- Magnetic Heading Backup Compass, MIN..MAX {0..1}
|
||||
[504] = "%.2f", -- Landing Gear Indicator Light Knob, MIN..MAX {0..1} (0=0, 0.25=90, 0.5=180, 0.75=270)
|
||||
[532] = "%1d", -- Yaw Trim Switch, LEFT/CENTER/RIGHT {-1,0,1}
|
||||
[538] = "%1d", -- Flare Dispense Button, OUT/IN {0,1}
|
||||
--- Radio Panel ---
|
||||
[545] = "%.2f", -- Radio Volume Knob, MIN..MAX {0..1}
|
||||
[547] = "%.1f", -- Radio Mode Selector, OFF/TR/TR+G/ADF/GD/SET {0,0.2,0.4,0.6,0.8,1}
|
||||
[549] = "%1d", -- Radio 1/TONE Button, OUT/IN {0,1}
|
||||
[550] = "%1d", -- Radio 2/- Button, OUT/IN {0,1}
|
||||
[551] = "%1d", -- Radio 3/+ Button, OUT/IN {0,1}
|
||||
[552] = "%1d", -- Radio 4/H Button, OUT/IN {0,1}
|
||||
[553] = "%1d", -- Radio 5/A Button, OUT/IN {0,1}
|
||||
[554] = "%1d", -- Radio 6/M Button, OUT/IN {0,1}
|
||||
[555] = "%1d", -- Radio 7/P Button, OUT/IN {0,1}
|
||||
[556] = "%1d", -- Radio 8/C Button, OUT/IN {0,1}
|
||||
[557] = "%1d", -- Radio 9/T Button, OUT/IN {0,1}
|
||||
[558] = "%1d", -- Radio <-/MAN Button, OUT/IN {0,1}
|
||||
[559] = "%1d", -- Radio 0/PRE Button, OUT/IN {0,1}
|
||||
[560] = "%1d", -- Radio ->/ENT Button, OUT/IN {0,1}
|
||||
---
|
||||
[570] = "%.2f", -- Throttle Friction Handle, MIN..MAX {0..1}
|
||||
--- UFCP ---
|
||||
[700] = "%1d", -- UFCP PFL/1 Button, OUT/IN {0,1}
|
||||
[701] = "%1d", -- UFCP VRC/2 Button, OUT/IN {0,1}
|
||||
[702] = "%1d", -- UFCP 3 Button, OUT/IN {0,1}
|
||||
[703] = "%1d", -- UFCP L1 Button, OUT/IN {0,1}
|
||||
[704] = "%1d", -- UFCP R1 Button, OUT/IN {0,1}
|
||||
[705] = "%1d", -- UFCP OAP Button, OUT/IN {0,1}
|
||||
[706] = "%1d", -- UFCP MRK Button, OUT/IN {0,1}
|
||||
[707] = "%1d", -- UFCP DST/4 Button, OUT/IN {0,1}
|
||||
[708] = "%1d", -- UFCP TOT/5 Button, OUT/IN {0,1}
|
||||
[709] = "%1d", -- UFCP TOD/6 Button, OUT/IN {0,1}
|
||||
[710] = "%1d", -- UFCP L2 Button, OUT/IN {0,1}
|
||||
[711] = "%1d", -- UFCP R2 Button, OUT/IN {0,1}
|
||||
[712] = "%1d", -- UFCP RU Button, OUT/IN {0,1}
|
||||
[713] = "%1d", -- UFCP HNS Button, OUT/IN {0,1}
|
||||
[714] = "%1d", -- UFCP FUL/7 Button, OUT/IN {0,1}
|
||||
[715] = "%1d", -- UFCP IFF/8 Button, OUT/IN {0,1}
|
||||
[716] = "%1d", -- UFCP 9 Button, OUT/IN {0,1}
|
||||
[717] = "%1d", -- UFCP L3 Button, OUT/IN {0,1}
|
||||
[718] = "%1d", -- UFCP R3 Button, OUT/IN {0,1}
|
||||
[719] = "%1d", -- UFCP A/P Button, OUT/IN {0,1}
|
||||
[720] = "%1d", -- UFCP FPM Button, OUT/IN {0,1}
|
||||
[721] = "%1d", -- UFCP RTN Button, OUT/IN {0,1}
|
||||
[722] = "%1d", -- UFCP 0 Button, OUT/IN {0,1}
|
||||
[723] = "%1d", -- UFCP N/A Button, OUT/IN {0,1}
|
||||
[724] = "%1d", -- UFCP L4 Button, OUT/IN {0,1}
|
||||
[725] = "%1d", -- UFCP R4 Button, OUT/IN {0,1}
|
||||
[726] = "%1d", -- UFCP N/A Button, OUT/IN {0,1}
|
||||
[727] = "%1d", -- UFCP N/A Button, OUT/IN {0,1}
|
||||
[728] = "%.2f", -- HUD Contrast Knob, MIN..MAX {0..1}
|
||||
[729] = "%.2f", -- HUD Brightness Knob, MIN..MAX {0..1}
|
||||
[730] = "%1d", -- UFCP +/- Momentary Switch {1,0,-1}
|
||||
[731] = "%.2f", -- HUD Backup Reticle Knob, MIN..MAX {0..1}
|
||||
[732] = "%.2f", -- UFCP Brightness Knob, MIN..MAX {0..1}
|
||||
--- MFCD ---
|
||||
[734] = "%1d", -- Left MFCD SYM + Button, OUT/IN {0,1}
|
||||
[735] = "%1d", -- Left MFCD SYM - Button, OUT/IN {0,1}
|
||||
[736] = "%1d", -- Left MFCD U1 Button, OUT/IN {0,1}
|
||||
[737] = "%1d", -- Left MFCD U2 Button, OUT/IN {0,1}
|
||||
[738] = "%1d", -- Left MFCD U3 Button, OUT/IN {0,1}
|
||||
[739] = "%1d", -- Left MFCD U4 Button, OUT/IN {0,1}
|
||||
[740] = "%1d", -- Left MFCD U5 Button, OUT/IN {0,1}
|
||||
[741] = "%1d", -- Left MFCD Power Switch, OFF/ON {0,1}
|
||||
[742] = "%1d", -- Left MFCD L1 Button, OUT/IN {0,1}
|
||||
[743] = "%1d", -- Left MFCD L2 Button, OUT/IN {0,1}
|
||||
[744] = "%1d", -- Left MFCD L3 Button, OUT/IN {0,1}
|
||||
[745] = "%1d", -- Left MFCD L4 Button, OUT/IN {0,1}
|
||||
[746] = "%1d", -- Left MFCD L5 Button, OUT/IN {0,1}
|
||||
[747] = "%1d", -- Left MFCD L6 Button, OUT/IN {0,1}
|
||||
[748] = "%1d", -- Left MFCD L7 Button, OUT/IN {0,1}
|
||||
[749] = "%1d", -- Left MFCD L8 Button, OUT/IN {0,1}
|
||||
[750] = "%1d", -- Left MFCD R1 Button, OUT/IN {0,1}
|
||||
[751] = "%1d", -- Left MFCD R2 Button, OUT/IN {0,1}
|
||||
[752] = "%1d", -- Left MFCD R3 Button, OUT/IN {0,1}
|
||||
[753] = "%1d", -- Left MFCD R4 Button, OUT/IN {0,1}
|
||||
[754] = "%1d", -- Left MFCD R5 Button, OUT/IN {0,1}
|
||||
[755] = "%1d", -- Left MFCD R6 Button, OUT/IN {0,1}}
|
||||
[756] = "%1d", -- Left MFCD R7 Button, OUT/IN {0,1}
|
||||
[757] = "%1d", -- Left MFCD R8 Button, OUT/IN {0,1}
|
||||
[758] = "%1d", -- Left MFCD CONT + Button, OUT/IN {0,1}
|
||||
[759] = "%1d", -- Left MFCD CONT - Button, OUT/IN {0,1}
|
||||
[760] = "%1d", -- Left MFCD D1 Button, OUT/IN {0,1}
|
||||
[761] = "%1d", -- Left MFCD D2 Button, OUT/IN {0,1}
|
||||
[762] = "%1d", -- Left MFCD D3 Button, OUT/IN {0,1}
|
||||
[763] = "%1d", -- Left MFCD D4 Button, OUT/IN {0,1}
|
||||
[764] = "%1d", -- Left MFCD D5 Button, OUT/IN {0,1}
|
||||
[765] = "%1d", -- Left MFCD BRT + Button, OUT/IN {0,1}
|
||||
[766] = "%1d", -- Left MFCD BRT - Button, OUT/IN {0,1}
|
||||
[767] = "%1d", -- Center MFCD SYM + Button, OUT/IN {0,1}
|
||||
[768] = "%1d", -- Center MFCD SYM - Button, OUT/IN {0,1}
|
||||
[769] = "%1d", -- Center MFCD U1 Button, OUT/IN {0,1}
|
||||
[770] = "%1d", -- Center MFCD U2 Button, OUT/IN {0,1}
|
||||
[771] = "%1d", -- Center MFCD U3 Button, OUT/IN {0,1}
|
||||
[772] = "%1d", -- Center MFCD U4 Button, OUT/IN {0,1}
|
||||
[773] = "%1d", -- Center MFCD U5 Button, OUT/IN {0,1}
|
||||
[774] = "%1d", -- Center MFCD Power Switch, OFF/ON {0,1}
|
||||
[775] = "%1d", -- Center MFCD L1 Button, OUT/IN {0,1}
|
||||
[776] = "%1d", -- Center MFCD L2 Button, OUT/IN {0,1}
|
||||
[777] = "%1d", -- Center MFCD L3 Button, OUT/IN {0,1}
|
||||
[778] = "%1d", -- Center MFCD L4 Button, OUT/IN {0,1}
|
||||
[779] = "%1d", -- Center MFCD L5 Button, OUT/IN {0,1}
|
||||
[780] = "%1d", -- Center MFCD L6 Button, OUT/IN {0,1}
|
||||
[781] = "%1d", -- Center MFCD L7 Button, OUT/IN {0,1}
|
||||
[782] = "%1d", -- Center MFCD L8 Button, OUT/IN {0,1}
|
||||
[783] = "%1d", -- Center MFCD R1 Button, OUT/IN {0,1}
|
||||
[784] = "%1d", -- Center MFCD R2 Button, OUT/IN {0,1}
|
||||
[785] = "%1d", -- Center MFCD R3 Button, OUT/IN {0,1}
|
||||
[786] = "%1d", -- Center MFCD R4 Button, OUT/IN {0,1}
|
||||
[787] = "%1d", -- Center MFCD R5 Button, OUT/IN {0,1}
|
||||
[788] = "%1d", -- Center MFCD R6 Button, OUT/IN {0,1}
|
||||
[789] = "%1d", -- Center MFCD R7 Button, OUT/IN {0,1}
|
||||
[790] = "%1d", -- Center MFCD R8 Button, OUT/IN {0,1}
|
||||
[791] = "%1d", -- Center MFCD D1 Button, OUT/IN {0,1}
|
||||
[792] = "%1d", -- Center MFCD D2 Button, OUT/IN {0,1}
|
||||
[793] = "%1d", -- Center MFCD D3 Button, OUT/IN {0,1}
|
||||
[794] = "%1d", -- Center MFCD D4 Button, OUT/IN {0,1}
|
||||
[795] = "%1d", -- Center MFCD D5 Button, OUT/IN {0,1}
|
||||
[796] = "%1d", -- Center MFCD CONT + Button, OUT/IN {0,1}
|
||||
[797] = "%1d", -- Center MFCD CONT - Button, OUT/IN {0,1}
|
||||
[798] = "%1d", -- Center MFCD BRT + Button, OUT/IN {0,1}
|
||||
[799] = "%1d", -- Center MFCD BRT - Button, OUT/IN {0,1}
|
||||
[800] = "%1d", -- Right MFCD SYM + Button, OUT/IN {0,1}
|
||||
[801] = "%1d", -- Right MFCD SYM - Button, OUT/IN {0,1}
|
||||
[802] = "%1d", -- Right MFCD U1 Button, OUT/IN {0,1}
|
||||
[803] = "%1d", -- Right MFCD U2 Button, OUT/IN {0,1}
|
||||
[804] = "%1d", -- Right MFCD U3 Button, OUT/IN {0,1}
|
||||
[805] = "%1d", -- Right MFCD U4 Button, OUT/IN {0,1}
|
||||
[806] = "%1d", -- Right MFCD U5 Button, OUT/IN {0,1}
|
||||
[807] = "%1d", -- Right MFCD Power Switch, OFF/ON {0,1}
|
||||
[808] = "%1d", -- Right MFCD L1 Button, OUT/IN {0,1}
|
||||
[809] = "%1d", -- Right MFCD L2 Button, OUT/IN {0,1}
|
||||
[810] = "%1d", -- Right MFCD L3 Button, OUT/IN {0,1}
|
||||
[811] = "%1d", -- Right MFCD L4 Button, OUT/IN {0,1}
|
||||
[812] = "%1d", -- Right MFCD L5 Button, OUT/IN {0,1}
|
||||
[813] = "%1d", -- Right MFCD L6 Button, OUT/IN {0,1}
|
||||
[814] = "%1d", -- Right MFCD L7 Button, OUT/IN {0,1}
|
||||
[815] = "%1d", -- Right MFCD L8 Button, OUT/IN {0,1}
|
||||
[816] = "%1d", -- Right MFCD R1 Button, OUT/IN {0,1}
|
||||
[817] = "%1d", -- Right MFCD R2 Button, OUT/IN {0,1}
|
||||
[818] = "%1d", -- Right MFCD R3 Button, OUT/IN {0,1}
|
||||
[819] = "%1d", -- Right MFCD R4 Button, OUT/IN {0,1}
|
||||
[820] = "%1d", -- Right MFCD R5 Button, OUT/IN {0,1}
|
||||
[821] = "%1d", -- Right MFCD R6 Button, OUT/IN {0,1}
|
||||
[822] = "%1d", -- Right MFCD R7 Button, OUT/IN {0,1}
|
||||
[823] = "%1d", -- Right MFCD R8 Button, OUT/IN {0,1}
|
||||
[824] = "%1d", -- Right MFCD D1 Button, OUT/IN {0,1}
|
||||
[825] = "%1d", -- Right MFCD D2 Button, OUT/IN {0,1}
|
||||
[826] = "%1d", -- Right MFCD D3 Button, OUT/IN {0,1}
|
||||
[827] = "%1d", -- Right MFCD D4 Button, OUT/IN {0,1}
|
||||
[828] = "%1d", -- Right MFCD D5 Button, OUT/IN {0,1}
|
||||
[829] = "%1d", -- Right MFCD CONT + Button, OUT/IN {0,1}
|
||||
[830] = "%1d", -- Right MFCD CONT - Button, OUT/IN {0,1}
|
||||
[831] = "%1d", -- Right MFCD BRT + Button, OUT/IN {0,1}
|
||||
[832] = "%1d", -- Right MFCD BRT - Button, OUT/IN {0,1}
|
||||
---
|
||||
[840] = "%.5f", -- BARO Altitude Setting, MIN..MAX {0..~0.31} ***WARNING - As of 15th May 2020, this crashes DCS if value is outside 0 to ~0.31 range***
|
||||
[841] = "%.2f", -- Emergency Brake Handle, MIN..MAX {0..1}
|
||||
[846] = "%1d", -- Digital Clock Brightness + Button, OUT/IN {0,1}
|
||||
[847] = "%1d", -- Digital Clock Brightness - Button, OUT/IN {0,1}
|
||||
[901] = "%.2f", -- Warning Panel Brightness Knob, MIN..MAX {0..1}
|
||||
[903] = "%.2f", -- Oxygen Indicator Brightness Knob, MIN..MAX {0..1}
|
||||
[909] = "%.2f", -- AAP Brightness Knob, MIN..MAX {0..1}
|
||||
[934] = "%.2f", -- COM1 Volume Knob, MIN..MAX {0..1}
|
||||
[938] = "%.2f", -- COM2 Volume Knob, MIN..MAX {0..1}
|
||||
[939] = "%.2f", -- TCN/ILS Volume Knob, MIN..MAX {0..1}
|
||||
[940] = "%.2f", -- MSL Volume Knob, MIN..MAX {0..1}
|
||||
[941] = "%.2f", -- Air Temp Knob Selector, MIN..MAX {0..0.91666666666667}
|
||||
[944] = "%.2f", -- Inst. Light Knob, MIN..MAX {0..1}
|
||||
[945] = "%.2f", -- Console Light Knob, MIN..MAX {0..1}
|
||||
[946] = "%.2f", -- Flood Light Knob, MIN..MAX {0..1}
|
||||
[959] = "%.2f", -- Canopy Manual Open/Close Crank, MIN..MAX {0..1}
|
||||
[964] = "%.2f", -- AAR Light Brightness Knob, MIN..MAX {0..1}
|
||||
[965] = "%.2f", -- Right Forward Flood Light Direction, MIN..MAX {0..1}
|
||||
[966] = "%.2f", -- Right Aft Light Direction, MIN..MAX {0..1}
|
||||
[967] = "%.2f", -- Left Forward Flood Light Direction, MIN..MAX {0..1}
|
||||
[968] = "%.2f", -- Left Aft Flood Light Direction, MIN..MAX {0..1}
|
||||
[976] = "%.2f", -- Oxygen Supply Valve, MIN..MAX {0..1}
|
||||
}
|
||||
ExportScript.ConfigArguments =
|
||||
{
|
||||
--- Landing Gear Panel Lights
|
||||
[100] = "%1d", -- Landing Gear In Transition Light, OFF/ON {0,1}
|
||||
[101] = "%1d", -- Landing Gear Deployed Left Light, OFF/ON {0,1}
|
||||
[102] = "%1d", -- Landing Gear Deployed Nose Light, OFF/ON {0,1}
|
||||
[103] = "%1d", -- Landing Gear Deployed Right Light, OFF/ON {0,1}
|
||||
[104] = "%1d", -- S/B Deployed Light, OFF/ON {0,1}
|
||||
[105] = "%1d", -- D/CH Deployed Light, OFF/ON {0,1}
|
||||
[106] = "%1d", -- TEF Deployed Light, OFF/ON {0,1}
|
||||
[107] = "%1d", -- Landing Gear Handle Light, OFF/ON {0,1}
|
||||
[108] = "%.2f", -- Landing Gear Indicator Lights Brightness, MIN..MAX {0..1}
|
||||
---
|
||||
[110] = "%1d", -- FCS RESET Light, OFF/ON {0,1}
|
||||
[120] = "%.2f", -- Console Backlight Brightness, MIN..MAX {0..1}
|
||||
[121] = "%.2f", -- Instrument Backlight Brightness, MIN..MAX {0..1}
|
||||
[122] = "%.2f", -- Clock Backlight Brightness, MIN..MAX {0..1}
|
||||
[125] = "%.2f", -- Flood Light Brightness, MIN..MAX {0..1}
|
||||
[140] = "%1d", -- Left MFCD Backlight, OFF/ON {0,1}
|
||||
[141] = "%.2f", -- Left MFCD Backlight Brightness, MIN..MAX {0..1}
|
||||
[142] = "%1d", -- Center MFCD Backlight, OFF/ON {0,1}
|
||||
[143] = "%.2f", -- Center MFCD Backlight Brightness, MIN..MAX {0..1}
|
||||
[144] = "%1d", -- Right MFCD Backlight, OFF/ON {0,1}
|
||||
[145] = "%.2f", -- Right MFCD Backlight Brightness, MIN..MAX {0..1}
|
||||
--- UFCP Lights ---
|
||||
[150] = "%1d", -- UFCP OAP Light, OFF/ON {0,1}
|
||||
[151] = "%1d", -- UFCP MRK Light, OFF/ON {0,1}
|
||||
[152] = "%1d", -- UFCP P.U Light, OFF/ON {0,1}
|
||||
[153] = "%1d", -- UFCP HNS Light, OFF/ON {0,1}
|
||||
[154] = "%1d", -- UFCP AP Light, OFF/ON {0,1}
|
||||
[155] = "%1d", -- UFCP FPM Light, OFF/ON {0,1}
|
||||
[156] = "%1d", -- UFCP NULL1 Light, OFF/ON {0,1}
|
||||
[157] = "%1d", -- UFCP NULL2 Light, OFF/ON {0,1}
|
||||
[158] = "%.2f", -- UFCP Brightness, MIN..MAX {0..1}
|
||||
--- Status Lights Panel ---
|
||||
[160] = "%1d", -- PITCH TRIM Status Light, OFF/ON {0,1}
|
||||
[161] = "%1d", -- ROLL TRIM Status Light, OFF/ON {0,1}
|
||||
[162] = "%1d", -- YAW TRIM Status Light, OFF/ON {0,1}
|
||||
[163] = "%1d", -- A/A Status Light, OFF/ON {0,1}
|
||||
[164] = "%1d", -- A/G1 Status Light, OFF/ON {0,1}
|
||||
[165] = "%1d", -- A/G2 Status Light, OFF/ON {0,1}
|
||||
[166] = "%1d", -- EFCS Status Light, OFF/ON {0,1}
|
||||
[167] = "%1d", -- No.3 TANK Status Light, OFF/ON {0,1}
|
||||
[168] = "%1d", -- No.1 TANK Status Light, OFF/ON {0,1}
|
||||
[169] = "%1d", -- WING D/T Status Light, OFF/ON {0,1}
|
||||
[170] = "%1d", -- CTR D/T Status Light, OFF/ON {0,1}
|
||||
[171] = "%1d", -- NULL Status Light, OFF/ON {0,1}
|
||||
[172] = "%1d", -- START Status Light, OFF/ON {0,1}
|
||||
[173] = "%1d", -- AB Status Light, OFF/ON {0,1}
|
||||
[174] = "%1d", -- COMBAT Status Light, OFF/ON {0,1}
|
||||
[175] = "%1d", -- EMG HYD Status Light, OFF/ON {0,1}
|
||||
[176] = "%1d", -- NWS Status Light, OFF/ON {0,1}
|
||||
[177] = "%1d", -- ADVISORY Status Light, OFF/ON {0,1}
|
||||
[178] = "%.2f", -- Status Lights Brightness, MIN..MAX {0..1}
|
||||
--- Warning Lights Panel ---
|
||||
[200] = "%1d", -- NULL Warning Light, OFF/ON {0,1}
|
||||
[201] = "%1d", -- OXY LOW Warning Light, OFF/ON {0,1}
|
||||
[202] = "%1d", -- CANOPY Warning Light, OFF/ON {0,1}
|
||||
[203] = "%1d", -- HYD LOW Warning Light, OFF/ON {0,1}
|
||||
[204] = "%1d", -- AIR DATA Warning Light, OFF/ON {0,1}
|
||||
[205] = "%1d", -- LOW FUEL Warning Light, OFF/ON {0,1}
|
||||
[206] = "%1d", -- CABIN PRESS Warning Light, OFF/ON {0,1}
|
||||
[207] = "%1d", -- REDUCE RPM Warning Light, OFF/ON {0,1}
|
||||
[208] = "%1d", -- CONFIG Warning Light, OFF/ON {0,1}
|
||||
[209] = "%1d", -- FUEL PUMP Warning Light, OFF/ON {0,1}
|
||||
[210] = "%1d", -- AC SYS Warning Light, OFF/ON {0,1}
|
||||
[211] = "%1d", -- OIL Warning Light, OFF/ON {0,1}
|
||||
[212] = "%1d", -- DL Warning Light, OFF/ON {0,1}
|
||||
[213] = "%1d", -- START PUMP Warning Light, OFF/ON {0,1}
|
||||
[214] = "%1d", -- DC GEN Warning Light, OFF/ON {0,1}
|
||||
[215] = "%1d", -- STARTER Warning Light, OFF/ON {0,1}
|
||||
[216] = "%1d", -- FCS 3 Warning Light, OFF/ON {0,1}
|
||||
[217] = "%1d", -- BRAKE Warning Light, OFF/ON {0,1}
|
||||
[218] = "%1d", -- BATT Warning Light, OFF/ON {0,1}
|
||||
[219] = "%1d", -- ENG TEMP Warning Light, OFF/ON {0,1}
|
||||
[220] = "%1d", -- FCS 2 Warning Light, OFF/ON {0,1}
|
||||
[221] = "%1d", -- ANTI-SKID Warning Light, OFF/ON {0,1}
|
||||
[222] = "%1d", -- TRU Warning Light, OFF/ON {0,1}
|
||||
[223] = "%1d", -- ANTI-SURGE Warning Light, OFF/ON {0,1}
|
||||
[224] = "%1d", -- FCS 1 Warning Light, OFF/ON {0,1}
|
||||
[225] = "%1d", -- NWS Warning Light, OFF/ON {0,1}
|
||||
[226] = "%1d", -- STATIC INV Warning Light, OFF/ON {0,1}
|
||||
[227] = "%1d", -- ANTI-ICING Warning Light, OFF/ON {0,1}
|
||||
[228] = "%1d", -- ROLL CAS Warning Light, OFF/ON {0,1}
|
||||
[229] = "%1d", -- ECS Warning Light, OFF/ON {0,1}
|
||||
[230] = "%1d", -- EMMC Warning Light, OFF/ON {0,1}
|
||||
[231] = "%1d", -- SEC Warning Light, OFF/ON {0,1}
|
||||
[232] = "%1d", -- YAW CAS Warning Light, OFF/ON {0,1}
|
||||
[233] = "%1d", -- EQUIP HOT Warning Light, OFF/ON {0,1}
|
||||
[234] = "%1d", -- LWC Warning Light, OFF/ON {0,1}
|
||||
[235] = "%1d", -- EDU Warning Light, OFF/ON {0,1}
|
||||
[236] = "%1d", -- AUTOPILOT Warning Light, OFF/ON {0,1}
|
||||
[237] = "%1d", -- PITOT HEAT Warning Light, OFF/ON {0,1}
|
||||
[238] = "%1d", -- AVIONS Warning Light, OFF/ON {0,1}
|
||||
[239] = "%1d", -- DEEC Warning Light, OFF/ON {0,1}
|
||||
[240] = "%1d", -- EFCS Warning Light, OFF/ON {0,1}
|
||||
[241] = "%1d", -- SEAT Warning Light, OFF/ON {0,1}
|
||||
[243] = "%.2f", -- Warning Lights Brightness, MIN..MAX {0..1}
|
||||
-- AAP Panel Lights
|
||||
[260] = "%1d", -- AAP ACMI Light, OFF/ON {0,1}
|
||||
[261] = "%1d", -- AAP NULL1 Light, OFF/ON {0,1}
|
||||
[262] = "%1d", -- AAP NULL2 Light, OFF/ON {0,1}
|
||||
[263] = "%1d", -- AAP NULL3 Light, OFF/ON {0,1}
|
||||
[264] = "%1d", -- AAP HMD Light, OFF/ON {0,1}
|
||||
[265] = "%1d", -- AAP SPJ Light, OFF/ON {0,1}
|
||||
[266] = "%1d", -- AAP CLDP Light, OFF/ON {0,1}
|
||||
[267] = "%1d", -- AAP IRST Light, OFF/ON {0,1}
|
||||
[268] = "%1d", -- AAP RDR Light, OFF/ON {0,1}
|
||||
[269] = "%1d", -- AAP SLNK Light, OFF/ON {0,1}
|
||||
[270] = "%1d", -- AAP OESP Light, OFF/ON {0,1}
|
||||
[271] = "%1d", -- AAP RWR Light, OFF/ON {0,1}
|
||||
[272] = "%1d", -- AAP COM1 Light, OFF/ON {0,1}
|
||||
[273] = "%1d", -- AAP COM2 Light, OFF/ON {0,1}
|
||||
[274] = "%1d", -- AAP NAV Light, OFF/ON {0,1}
|
||||
[275] = "%1d", -- AAP IFF Light, OFF/ON {0,1}
|
||||
[276] = "%1d", -- AAP INS Light, OFF/ON {0,1}
|
||||
[277] = "%1d", -- AAP VMMC1 Light, OFF/ON {0,1}
|
||||
[278] = "%1d", -- AAP VMMC2 Light, OFF/ON {0,1}
|
||||
[279] = "%1d", -- AAP SAIU Light, OFF/ON {0,1}
|
||||
[280] = "%1d", -- AAP CMBT Light, OFF/ON {0,1}
|
||||
[281] = "%1d", -- AAP TRAIN Light, OFF/ON {0,1}
|
||||
[282] = "%.2f", -- AAP Buttons Brightness, MIN..MAX {0..1}
|
||||
---
|
||||
[295] = "%1d", -- Radio Panel Error Light, OFF/ON {0,1}
|
||||
[500] = "%.3f", -- Backup SAIU Knob Selector Knob, OFF/BOMB/IR/GUN {0,0.333,0.666,0.999}
|
||||
[501] = "%1d", -- Landing Gear Indicator Light Test Button, OUT/IN {0,1}}
|
||||
[502] = "%1d", -- Landing Gear Override Button Cover, COVERED/UNCOVERED {0,1}
|
||||
[503] = "%1d", -- Landing Gear Override Switch, OFF/ON {0,1}}
|
||||
[505] = "%1d", -- Landing Gear Lever, DOWN/UP {0,1}
|
||||
[506] = "%1d", -- Ground Jettison Switch, OFF/ENABLE {0,1}}
|
||||
[507] = "%1d", -- Emergency Jettison Button Cover, COVERED/UNCOVERED {0,1}
|
||||
[508] = "%1d", -- Emergency Jettison Button, OUT/IN {0,1}
|
||||
[509] = "%1d", -- Master Arm Switch, SIM/OFF/ARM {-1,0,1}
|
||||
[510] = "%1d", -- Brake Test Switch, OFF/ON/TEST {-1,0,1}
|
||||
[511] = "%1d", -- Parking Brake, NORM/PARK {-1,1}
|
||||
[512] = "%1d", -- Light Switch, LAND/OFF/TAXI {-1,0,1}
|
||||
[513] = "%1d", -- Flap Switch, DOWN/UP {-1,1}
|
||||
[514] = "%1d", -- Feed Cut-off Valve Cover, COVERED/UNCOVERED {0,1}
|
||||
[515] = "%1d", -- Feed Cut-off Valve Switch, OFF/ON {0,1}
|
||||
[516] = "%1d", -- Active Fuel Cut-off Valve Cover, COVERED/UNCOVERED {0,1}
|
||||
[517] = "%1d", -- Active Fuel Cut-off Valve Switch, OFF/ON {0,1}
|
||||
[518] = "%1d", -- Fuel Pump Switch, OFF/ON {0,1}
|
||||
[519] = "%1d", -- Engine Control Switch, OFF/ON {0,1}
|
||||
[520] = "%1d", -- Air Start Switch, OFF/ON {0,1}
|
||||
[521] = "%1d", -- Ground Start Button, OUT/IN {0,1}}
|
||||
[522] = "%1d", -- Engine Mode Switch, TRG/C+T/CMBT {-1,0,1}
|
||||
[523] = "%1d", -- SEC EEC Switch, OFF/ON {0,1}
|
||||
[524] = "%1d", -- Afterburner Switch, OFF/ON {0,1}
|
||||
[525] = "%1d", -- Anti-Surge Switch, OFF/ON {0,1}
|
||||
[526] = "%1d", -- Start Mode Selector, ENG COLD/START/STARTER COLD {-1,0,1}
|
||||
[527] = "%1d", -- Record Switch, OUT/IN {0,1}
|
||||
[528] = "%1d", -- EFCS Switch, OFF/AUTO {0,1}
|
||||
[529] = "%1d", -- Yaw/Roll CAS Switch, OFF/ON {0,1}
|
||||
[530] = "%1d", -- Direct Mode Switch, OFF/ON {0,1}
|
||||
[531] = "%1d", -- BIT Switch, OUT/IN {0,1}
|
||||
[533] = "%1d", -- Flight Test I Switch, OFF/ON {0,1}
|
||||
[534] = "%1d", -- Flight Test II Switch, OFF/ON {0,1}
|
||||
[535] = "%1d", -- AG1/AG2 Switch, A-AG2/A-AG1 {0,1}
|
||||
[536] = "%1d", -- AA/AG Switch, A-G/A-A {0,1}
|
||||
[537] = "%1d", -- Flare Dispense Button Cover, COVERED/UNCOVERED {0,1}
|
||||
[539] = "%1d", -- Emergency Hydralic Pump Switch, OFF/ON {0,1}
|
||||
[540] = "%1d", -- SHARS Switch, OFF/ON {0,1}
|
||||
[541] = "%1d", -- Ejection Seat Activate Destruct Switch, DISABLE/ENABLE {0,1}
|
||||
[542] = "%1d", -- Self Destruct Button Cover, COVERED/UNCOVERED {0,1}
|
||||
[543] = "%1d", -- Self Destruct Button, OUT/IN {0,1}}
|
||||
[544] = "%1d", -- FCS Reset Button,???OUT/IN??? {0,1}
|
||||
[546] = "%1d", -- Squelch, SQL-ACKN/OFF {0,1}
|
||||
[548] = "%1d", -- Radio Control Handover Button, OUT/IN {0,1}
|
||||
[561] = "%1d", -- Air Start Button Cover, COVERED/UNCOVERED {0,1}
|
||||
[562] = "%1d", -- CSS Handle, STOVED/PULLED {0,1}
|
||||
[563] = "%1d", -- P.H. Test Switch, AUTO/ON {0,1}
|
||||
[564] = "%1d", -- AAR Switch, INT/OFF/ALL {-1,0,1}
|
||||
[571] = "%1d", -- Throttle Uncage: Stop to Idle, CAGE/IDLE {0,1}
|
||||
[572] = "%1d", -- Throttle Cage: Idle To Stop, IDLE/CAGE {0,1}
|
||||
[573] = "%1d", -- Throttle Emergency Button, OUT/IN {0,1}
|
||||
[733] = "%1d", -- Deploy/Jettison Parachute Switch, JETT/OFF/DEPLOY {-1,0,1}
|
||||
[842] = "%1d", -- Master Warning Button, OUT/IN {0,1}
|
||||
[843] = "%1d", -- Fire Warning Button, OUT/IN {0,1}
|
||||
[844] = "%1d", -- FCS Warning Button, OUT/IN {0,1}
|
||||
[845] = "%1d", -- Digital Clock Switch, OFF/ON {0,1}
|
||||
[848] = "%1d", -- Digital Clock UTC Button, OUT/IN {0,1}
|
||||
[849] = "%1d", -- Digital Clock CHR Button, OUT/IN {0,1}
|
||||
[900] = "%1d", -- Warning Panel Day/Night Switch, NIGHT/DAY {0,1}
|
||||
[902] = "%1d", -- Warning Panel Test Button, OUT/IN {0,1}
|
||||
[904] = "%1d", -- Battery Switch, OFF/ON {0,1}
|
||||
[905] = "%1d", -- Main AC Gen Switch, OFF/ON {0,1}
|
||||
[906] = "%1d", -- Main DC Gen Switch, OFF/ON {0,1}
|
||||
[907] = "%1d", -- HUD/MFCD Day/Night Switch, NIGHT/DAY {0,1}
|
||||
[908] = "%.3f", -- INS Mode Selector Knob, STBY/FAST/NAV/GC {0,0.333,0.666,0.999}
|
||||
[910] = "%1d", -- HUD Symbology Reject, NORM/DCLT {0,1}
|
||||
-- AAP Panel Buttons
|
||||
[911] = "%1d", -- AAP ACMI, OFF/ON {0,1}
|
||||
[912] = "%1d", -- AAP N/A, OFF/ON {0,1}
|
||||
[913] = "%1d", -- AAP N/A, OFF/ON {0,1}
|
||||
[914] = "%1d", -- AAP N/A, OFF/ON {0,1}
|
||||
[915] = "%1d", -- AAP HMD, OFF/ON {0,1}
|
||||
[916] = "%1d", -- AAP SPJ, OFF/ON {0,1}
|
||||
[917] = "%1d", -- AAP CLDP, OFF/ON {0,1}
|
||||
[918] = "%1d", -- AAP IRST, OFF/ON {0,1}
|
||||
[919] = "%1d", -- AAP RDR, OFF/ON {0,1}
|
||||
[920] = "%1d", -- AAP SLNK, OFF/ON {0,1}
|
||||
[921] = "%1d", -- AAP OESP, OFF/ON {0,1}
|
||||
[922] = "%1d", -- AAP RWR, OFF/ON {0,1}
|
||||
[923] = "%1d", -- AAP COM1, OFF/ON {0,1}
|
||||
[924] = "%1d", -- AAP COM2, OFF/ON {0,1}
|
||||
[925] = "%1d", -- AAP NAV, OFF/ON {0,1}
|
||||
[926] = "%1d", -- AAP IFF, OFF/ON {0,1}
|
||||
[927] = "%1d", -- AAP INS, OFF/ON {0,1}
|
||||
[928] = "%1d", -- AAP WMMC1, OFF/ON {0,1}
|
||||
[929] = "%1d", -- AAP WMMC2, OFF/ON {0,1}
|
||||
[930] = "%1d", -- AAP SAIU, OFF/ON {0,1}
|
||||
[931] = "%1d", -- AAP CMBT, OFF/ON {0,1}
|
||||
[932] = "%1d", -- AAP TRAIN, OFF/ON {0,1}
|
||||
[933] = "%1d", -- AAP OFF, OFF/ON {0,1}
|
||||
---
|
||||
[935] = "%1d", -- Intercom Switch, OFF/ON {0,1}
|
||||
[936] = "%1d", -- Radio Top/Bottom Antenna Switch, LOWER/UPPER {0,1}
|
||||
[937] = "%1d", -- Speaker Control Box Channel Antenna Switch, STBY/MAIN {0,1}
|
||||
[942] = "%.3f", -- ECS Mode Knob Selector, DE-SMK/NORM/OFF/RAM {0,0.333,0.666,0.999}
|
||||
[943] = "%1d", -- Defog Button, OUT/IN {0,1}
|
||||
[947] = "%1d", -- Exterior Light Master Switch, NVG/OFF/NORMAL {-1,0,1}
|
||||
[948] = "%.1f", -- Formation Light Knob Selector, OFF/1/2/3/4/BRT {0,0.2,0.4,0.6,0.8,1}
|
||||
[949] = "%.1f", -- Anti-Collision Light Knob Selector, OFF/1/2/3/4/CODE {0,0.2,0.4,0.6,0.8,1}
|
||||
[950] = "%1d", -- Navigation Light Switch, DIM/OFF/BRIGHT {-1,0,1}
|
||||
[951] = "%1d", -- Navigation Light Switch, STEADY/FLASH {-1,1}
|
||||
[952] = "%1d", -- Light Switch, TOW/OFF/ANTI-COLLISION {-1,0,1}
|
||||
[953] = "%1d", -- DTC Card Insertion {0,1}
|
||||
[954] = "%1d", -- Emergency Landing Gear Cover, COVERED/UNCOVERED {0,1}
|
||||
[955] = "%.2f", -- Emergency Landing Gear Handle, STOVED/RELEASED/PARTIAL PULL/TWIST/FULL PULL AND TWIST {0,0.25,0.5,0.75,1}
|
||||
[957] = "%1d", -- Canopy Seal Handle, OFF/SEAL {0,1}
|
||||
[958] = "%.3f", -- Canopy Open/Close Handle, OPEN/HOLD/CLOSE/LOCK {0,0.333,0.666,0.999}
|
||||
[960] = "%.2f", -- Right Mirror Position, MIN..MAX {0..1}
|
||||
[961] = "%.2f", -- Center Mirror Position, MIN..MAX {0..1}
|
||||
[962] = "%.2f", -- Left Mirror Position, MIN..MAX {0..1}
|
||||
[963] = "%1d", -- AAR Light Switch, OFF/ON {-1,1}
|
||||
[969] = "%1d", -- Flash Light, OFF/ON {0,1}
|
||||
[970] = "%1d", -- Stick Show/Hide, HIDDEN/VISIBLE {0,1}
|
||||
[971] = "%1d", -- S7: A/P Disengage Paddle Switch, OUT/IN {0,1}
|
||||
[972] = "%1d", -- Eject Seat Handle, SAFE/ARM {0,1}
|
||||
[973] = "%1d", -- Eject Seat Firing Handle Safety Pin, OUT/IN {0,1}
|
||||
[974] = "%1d", -- DTC Card Ejection Button, OUT/IN {0,1}
|
||||
[975] = "%1d", -- Oxygen Tube Connector, OFF/ON {0,1}
|
||||
[977] = "%1d", -- Oxygen 100% O2 Switch, OFF/ON {0,1}
|
||||
[978] = "%1d", -- Eject Seat Emergency O2 Switch, OFF/ON {0,1}
|
||||
}
|
||||
function ExportScript.ProcessIkarusDCSConfigHighImportance(mainPanelDevice)
|
||||
end
|
||||
function ExportScript.ProcessDACConfigHighImportance(mainPanelDevice)
|
||||
end
|
||||
function ExportScript.ProcessIkarusDCSConfigLowImportance(mainPanelDevice)
|
||||
end
|
||||
function ExportScript.ProcessDACConfigLowImportance(mainPanelDevice)
|
||||
end
|
||||
1358
ExportsModules/Mi-24P.lua
Normal file
1358
ExportsModules/Mi-24P.lua
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user