mirror of
https://github.com/s-d-a/DCS-ExportScripts.git
synced 2026-07-16 22:42:22 +00:00
Compare commits
8 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0df634fb4e | |||
| 873ef44acb | |||
| 674913a0b8 | |||
| da2740fb83 | |||
| c7a3949cd9 | |||
| 9c007dd9c4 | |||
| 8c69898662 | |||
| 21a99beebd |
@@ -6,7 +6,7 @@
|
||||
-- Contact dcs2arcaze.micha@farbpigmente.org
|
||||
|
||||
ExportScript.Config = {}
|
||||
ExportScript.Version.Config = "1.2.0"
|
||||
ExportScript.Version.Config = "1.2.1"
|
||||
|
||||
-- Ikarus a Glass Cockpit Software
|
||||
ExportScript.Config.IkarusExport = true -- false for not use
|
||||
|
||||
@@ -7,7 +7,7 @@
|
||||
-- Main Table
|
||||
ExportScript = {}
|
||||
ExportScript.Version = {}
|
||||
ExportScript.Version.ExportScript = "1.2.0"
|
||||
ExportScript.Version.ExportScript = "1.2.1"
|
||||
-- Simulation id
|
||||
ExportScript.SimID = string.format("%08x*",os.time())
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- A-10A
|
||||
|
||||
ExportScript.FoundFCModule = true
|
||||
ExportScript.Version.A10A = "1.2.0"
|
||||
ExportScript.Version.A10A = "1.2.1"
|
||||
|
||||
-- auxiliary function
|
||||
dofile(ExportScript.Config.ExportModulePath.."FC_AuxiliaryFuntions.lua")
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- A-10C
|
||||
|
||||
ExportScript.FoundDCSModule = true
|
||||
ExportScript.Version.A10C = "1.2.0"
|
||||
ExportScript.Version.A10C = "1.2.1"
|
||||
|
||||
ExportScript.ConfigEveryFrameArguments =
|
||||
{
|
||||
@@ -67,6 +67,7 @@ ExportScript.ConfigEveryFrameArguments =
|
||||
[64] = "%.4f", -- Standby Attitude Indicator bank
|
||||
[65] = "%0.1f", -- Standby Attitude Indicator warning flag
|
||||
[715] = "%.4f", -- Standby Attitude Indicator manual pitch adjustment
|
||||
[717] = "%.4f", -- Standby Attitude Indicator knob arrow
|
||||
-- Engine Gauges
|
||||
[70] = "%.4f", -- Left Engine Temperature
|
||||
[71] = "%.4f", -- Left Engine TemperatureUnits
|
||||
@@ -188,8 +189,6 @@ ExportScript.ConfigEveryFrameArguments =
|
||||
[648] = "%.4f", -- HydraulicPressureRight {0.0,1.0}
|
||||
-- Flap Indicator
|
||||
[653] = "%.4f", -- FlapPositionIndicator {0,20} {0,2/3,1}
|
||||
-- CPT MECH
|
||||
[654] = "%1d", -- PTR-ANTI-SKID (Anti Skid)
|
||||
-- Landing Gear Lamps
|
||||
[659] = "%.f", -- GEAR_N_SAFE
|
||||
[660] = "%.f", -- GEAR_L_SAFE
|
||||
@@ -220,7 +219,17 @@ ExportScript.ConfigArguments =
|
||||
arguments for export in low tick interval
|
||||
based on "clickabledata.lua"
|
||||
]]
|
||||
[22] = "%.3f", -- AAP ??
|
||||
--Attitude Direction Indicator
|
||||
[22] = "%.4f", -- ADI Pitch Trim Knob {-.05,0.5} in 01. steps
|
||||
--Horizontal Situation Indicator
|
||||
[45] = "%.4f", -- HSI Heading Set Knob
|
||||
[44] = "%.4f", -- HSI Course Set Knob
|
||||
--Standby Attitude Indicator
|
||||
[67] = "%1df", -- SAI Cage Standby Attitude Indicator. Hold Right Mouse Button and rotate Scroll Wheel to uncage
|
||||
[66] = "%.4f", -- SAI Cage Standby Attitude Indicator. Hold Right Mouse Button and rotate Scroll Wheel to uncage
|
||||
-- Digital Clock
|
||||
[68] = "%1d", -- Clock Toggle Clock and Elapsed Time Modes
|
||||
[69] = "%1d", -- Clock Start, Stop and Reset Elapsed Timer
|
||||
-- Emergency Jettison Button
|
||||
[101] = "%.1f", -- PTR-EXT-STORES-JETT (mergency Jettison External Stores)
|
||||
-- Fire Extinguishers Panel
|
||||
@@ -251,7 +260,8 @@ ExportScript.ConfigArguments =
|
||||
[124] = "%1d", -- PTR-ENGINE-OPER-L (Engine Operate Left)
|
||||
[125] = "%1d", -- PTR-ENGINE-OPER-R (Engine Operate Right)
|
||||
[126] = "%1d", -- PTR-APU-START (APU On/Off)
|
||||
[127] = "%.1f", -- PTR-THROTTLE-FRICTION (Throttle Friction Control)
|
||||
[128] = "%.1f", -- PTR-THROTTLE-FRICTION (Throttle Friction Control)
|
||||
[652] = "%1d", -- PTR-TEMS-DATA (TEMS DATA)
|
||||
-- LASTE Control Panel
|
||||
[130] = "%1d", -- PTR-LCP-RDRALTM (Radar Altimeter Normal/Disabled)
|
||||
[131] = "%.1f", -- PTR-LCP-AUTOPILOT-ENGAGE (Autopilot Engage/Disengage)
|
||||
@@ -628,6 +638,8 @@ ExportScript.ConfigArguments =
|
||||
-- CPT MECH
|
||||
[651] = "%.1f", -- PTR-DOWNLOCK-OVERRIDE (Downlock Override)
|
||||
[716] = "%1d", -- PNT-LNDGEAR (Landing Gear Lever)
|
||||
[773] = "%1d", -- PTR-FLAPS (Flap Setting)
|
||||
[654] = "%1d", -- PTR-ANTI-SKID (Anti Skid)
|
||||
-- Light System Control Panel
|
||||
[655] = "%0.1f", -- PTR-LIGHTS-LAND (Land Taxi Lights)
|
||||
-- STALL
|
||||
@@ -650,6 +662,73 @@ ExportScript.ConfigArguments =
|
||||
[782] = "%0.1f", -- PTR-LVR-PANKY58-1TO5 (Full switch)
|
||||
[783] = "%0.1f", -- PTR-LVR-PANKY58-MODE (Mode switch)
|
||||
[784] = "%1d", -- PTR-TMB-PANKY58-POWER (Power switch)
|
||||
-- Armament Ground Safety Override Switch
|
||||
[709] = "%1d", -- PTR-ARMGS-COVER (Arm Ground Safety Override Cover)
|
||||
[710] = "%1d", -- PTR-ARMGS-OVERRIDE-SWITCH (Arm Ground Safety Override Switch)
|
||||
--Circuit Breaker Panel CBP
|
||||
[666] = "%1d", -- PTR-CBP-AILERON-DISC-L (AILERON DISC L)
|
||||
[667] = "%1d", -- PTR-CBP-AILERON-DISC-R (AILERON DISC R)
|
||||
[668] = "%1d", -- PTR-CBP-SPS-RUDDER-AUTH-LIM (SPS & RUDDER AUTH LIMIT)
|
||||
[669] = "%1d", -- PTR-CBP-ELEVATION-DISC-L (ELEVATION DISC L)
|
||||
[670] = "%1d", -- PTR-CBP-ELEVATION-DISC-R (ELEVATION DISC R)
|
||||
[671] = "%1d", -- PTR-CBP-AILERON-TAB-L (AILERON TAB L)
|
||||
[672] = "%1d", -- PTR-CBP-AILERON-TAB-R (AILERON TAB R)
|
||||
[673] = "%1d", -- PTR-CBP-EMER-FLAP (EMER FLAP)
|
||||
[674] = "%1d", -- PTR-CBP-EMER-TRIM (EMER TRIM)
|
||||
[675] = "%1d", -- PTR-CBP-LAND-GEAR (LAND GEAR)
|
||||
[676] = "%1d", -- PTR-CBP-ENGINE-START-L (ENGINE START L)
|
||||
[677] = "%1d", -- PTR-CBP-ENGINE-START-R (ENGINE START R)
|
||||
[678] = "%1d", -- PTR-CBP-APU-CONT (APU CONT)
|
||||
[679] = "%1d", -- PTR-CBP-ANG-IGNITOR-1 (ENG IGNITOR L/R-1)
|
||||
[680] = "%1d", -- PTR-CBP-ANG-IGNITOR-2 (ENG IGNITOR L/R-2)
|
||||
[681] = "%1d", -- PTR-CBP-EMER-FUEL-SHUTOFF-ENG-L (EMER FUEL SHUTOFF ENG L)
|
||||
[682] = "%1d", -- PTR-CBP-EMER-FUEL-SHUTOFF-ENG-R (EMER FUEL SHUTOFF ENG R)
|
||||
[683] = "%1d", -- PTR-CBP-DC-FUEL-PUMP (DC FUEL PUMP)
|
||||
[684] = "%1d", -- PTR-CBP-BLEED-AIR-CONT-L (BLEED AIR CONT L)
|
||||
[685] = "%1d", -- PTR-CBP-BLEED-AIR-CONT-R (BLEED AIR CONT R)
|
||||
[686] = "%1d", -- PTR-CBP-EXT-STORES-JETT-1 (EXT STORES JETT 1)
|
||||
[687] = "%1d", -- PTR-CBP-EXT-STORES-JETT-2 (EXT STORES JETT 2)
|
||||
[688] = "%1d", -- PTR-CBP-STBY-ATT-IND (STBY ATT IND)
|
||||
[689] = "%1d", -- PTR-CBP-MASTER-CAUT (MASTER CAUT)
|
||||
[690] = "%1d", -- PTR-CBP-PITOT-HEAT-AC (PITOT HEAT AC)
|
||||
[691] = "%1d", -- PTR-CBP-IFF (IFF)
|
||||
[692] = "%1d", -- PTR-CBP-UHF-COMM (UHF COMM)
|
||||
[693] = "%1d", -- PTR-CBP-INTER-COMM (INTER COMM)
|
||||
[694] = "%1d", -- PTR-CBP-GENERATOR-CONT-L (GENERATOR CONT L)
|
||||
[695] = "%1d", -- PTR-CBP-GENERATOR-CONT-R (GENERATOR CONT R)
|
||||
[696] = "%1d", -- PTR-CBP-CONVERTER-L (CONVERTER L)
|
||||
[697] = "%1d", -- PTR-CBP-AUX-ESS-BUS-0A (AUX ESS BUS 0A)
|
||||
[698] = "%1d", -- PTR-CBP-AUX-ESS-BUS-0B (AUX ESS BUS 0B)
|
||||
[699] = "%1d", -- PTR-CBP-AUX-ESS-BUS-0C (AUX ESS BUS 0C)
|
||||
[700] = "%1d", -- PTR-CBP-BATTERY-BUS-TRANS (BATTERY BUS TRANS)
|
||||
[701] = "%1d", -- PTR-CBP-INVERTER-PWR (INVERTER PWR)
|
||||
[702] = "%1d", -- PTR-CBP-INVERTER-CONT (INVERTER CONT)
|
||||
[703] = "%1d", -- PTR-CBP-AUX-ESS-BUS-TIE (AUX ESS BUS TIE)
|
||||
--AAU-34/A
|
||||
[62] = "%1d", -- PNT-ALT-LEVR-L (Set Pressure)
|
||||
[60] = "%1d", -- PNT-ALT-LEVR-R (ELECT/PNEU)
|
||||
-- Seat Adjustment Button
|
||||
[770] = "%1d", -- Seat Height Adjustment up/down
|
||||
-- Arm Seat Handle
|
||||
[787] = "%1d", -- Extend boarding ladder cover
|
||||
[788] = "%1d", -- Extend boarding ladder button
|
||||
-- Accelerometer
|
||||
[904] = "%1d", -- Accelerometer Push to set
|
||||
-- DVADR Remote Control Panel
|
||||
[789] = "%1d", -- DVADR - Function control toggle switch
|
||||
-- Anti-G suit valve test button
|
||||
[776] = "%1d", -- Anti-G suit valve test button
|
||||
-- Internal canopy actuator disengage lever
|
||||
[777] = "%1d", -- Internal canopy actuator disengage lever
|
||||
-- Canopy jettison lever
|
||||
[785] = "%1d", -- Canopy jettison lever
|
||||
[786] = "%1d", -- Canopy Jettison Lever Unlock Button
|
||||
-- Antenna Select Panel
|
||||
[706] = "%1d", -- IFF - antenna switch
|
||||
[707] = "%1d", -- UHF - antenna switch
|
||||
[708] = "%1d", -- EGI HQ TOD
|
||||
-- RWR
|
||||
[16] = "%.4f", -- RWR Adjust Display Brightness {0.15, 0.85} in 0.1 steps
|
||||
}
|
||||
|
||||
-----------------------------
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- AJS37
|
||||
|
||||
ExportScript.FoundDCSModule = true
|
||||
ExportScript.Version.AJS37 = "1.2.0"
|
||||
ExportScript.Version.AJS37 = "1.2.1"
|
||||
|
||||
ExportScript.ConfigEveryFrameArguments =
|
||||
{
|
||||
@@ -84,8 +84,9 @@ ExportScript.ConfigEveryFrameArguments =
|
||||
[145] = "%.4f", -- FuelNeeded {0.0, 1.0} {0.0, 135.0}
|
||||
-- Clock
|
||||
[130] = "%.4f", -- Hour
|
||||
--[] = "%.4f", -- Minute
|
||||
[133] = "%.4f", -- Second
|
||||
[131] = "%.4f", -- Minute
|
||||
[133] = "%.4f", -- Second (Arrow)
|
||||
[1333] = "%.4f", -- Second
|
||||
--
|
||||
[141] = "%.4f", -- Engine pressure ratio EPR indicator
|
||||
-- INSTRUMENTS Right Panel
|
||||
@@ -241,12 +242,12 @@ ExportScript.ConfigArguments =
|
||||
[203] = "%1d", -- Main Electric Power
|
||||
[207] = "%1d", -- Generator
|
||||
[209] = "%1d", -- Master Mode Selector
|
||||
[446] = "%1d", -- "Master Caution Reset
|
||||
[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
|
||||
--[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}
|
||||
@@ -356,7 +357,9 @@ ExportScript.ConfigArguments =
|
||||
[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
|
||||
[1201] = "%.1f", -- Magnetic Declination Correction (Axis) {0.0,1.0} in 0.1 steps
|
||||
-- Clock
|
||||
[135] = "%.3f", -- Clock Setting
|
||||
}
|
||||
|
||||
-----------------------------
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- AV8BNA
|
||||
|
||||
ExportScript.FoundDCSModule = true
|
||||
ExportScript.Version.AV8BNA = "1.2.0"
|
||||
ExportScript.Version.AV8BNA = "1.2.1"
|
||||
|
||||
ExportScript.ConfigEveryFrameArguments =
|
||||
{
|
||||
@@ -122,7 +122,7 @@ ExportScript.ConfigEveryFrameArguments =
|
||||
[268] = "%.4f", --STAB 2. Number, 3. DRUM
|
||||
[269] = "%.4f", --H2O 1. Number
|
||||
[270] = "%.4f", --H2O 2. Number -----3. Number is fix !!----
|
||||
[179] = "%.f", --H2O CONTROLL LAMP
|
||||
[177] = "%.f", --FLOW W LAMP
|
||||
[271] = "%.4f", --NOZZLE POINTER
|
||||
--FUEL PANEL DISPLAY
|
||||
[365] = "%.4f", --ON/OFF FLAG
|
||||
@@ -198,9 +198,9 @@ ExportScript.ConfigEveryFrameArguments =
|
||||
[354] = "%.4f", --ALT DIGITAL 2.
|
||||
[353] = "%.4f", --ALT DIGITAL 3.
|
||||
[356] = "%.4f", --IN HG 1. NUMBER
|
||||
[357] = "%.4f", --IN HG 2.
|
||||
[358] = "%.4f", --IN HG 3.
|
||||
[359] = "%.4f", --IN HG 4.
|
||||
[357] = "%.4f", --IN HG 2. NUMBER
|
||||
[358] = "%.4f", --IN HG 3. NUMBER
|
||||
[359] = "%.4f", --IN HG 4. NUMBER
|
||||
--AOA
|
||||
[360] = "%.4f", --AOA FLAG
|
||||
[361] = "%.4f", --AOA POINTER
|
||||
@@ -290,6 +290,8 @@ ExportScript.ConfigArguments =
|
||||
[299] = "%.4f", --Comm 2 Volume Control
|
||||
[300] = "%.4f", --Comm 1 Channel Selector
|
||||
[301] = "%.4f", --Comm 2 Channel Selector
|
||||
[178] = "%.4f", --Comm 1 Channel Show Button
|
||||
[179] = "%.4f", --Comm 2 Channel Show Button
|
||||
-- ODU Panel
|
||||
[250] = "%1d", --ODU Option1
|
||||
[251] = "%1d", --ODU Option2
|
||||
@@ -407,7 +409,8 @@ ExportScript.ConfigArguments =
|
||||
-- Flights Instruments Panel
|
||||
[364] = "%.4f", --NAV Course Setting
|
||||
[653] = "%.4f", --Barometric Pressure Calibration
|
||||
[351] = "%1d", --Backup ADI Cage/Pitch Adjust Knob
|
||||
[350] = "%1d", --Backup ADI Cage
|
||||
[351] = "%.4f", --Backup ADI Pitch Adjust Knob
|
||||
-- Miscelaneous Switch Panel
|
||||
[422] = "%1d", --Video Recorder System Mode Switch
|
||||
[423] = "%1d", --Video Recorder System Display Selector Switch
|
||||
@@ -1003,7 +1006,6 @@ function ExportScript.ProcessIkarusDCSConfigLowImportance(mainPanelDevice)
|
||||
ExportScript.Tools.SendData(2034, string.format("%s", lacnip_line[2]))
|
||||
ExportScript.Tools.SendData(2035, string.format("%s", lacnip_line[3]))
|
||||
ExportScript.Tools.SendData(2036, string.format("%s", lacnip_line[4]))
|
||||
|
||||
end
|
||||
|
||||
function ExportScript.ProcessDACConfigLowImportance(mainPanelDevice)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- Bf-109K-4 Kurfürst
|
||||
|
||||
ExportScript.FoundDCSModule = true
|
||||
ExportScript.Version.Bf109K4 = "1.2.0"
|
||||
ExportScript.Version.Bf109K4 = "1.2.1"
|
||||
|
||||
ExportScript.ConfigEveryFrameArguments =
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- F-15C
|
||||
|
||||
ExportScript.FoundFCModule = true
|
||||
ExportScript.Version.F15C = "1.2.0"
|
||||
ExportScript.Version.F15C = "1.2.1"
|
||||
|
||||
-- auxiliary function
|
||||
dofile(ExportScript.Config.ExportModulePath.."FC_AuxiliaryFuntions.lua")
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- F-5E-3
|
||||
|
||||
ExportScript.FoundDCSModule = true
|
||||
ExportScript.Version.F5E3 = "1.2.0"
|
||||
ExportScript.Version.F5E3 = "1.2.1"
|
||||
|
||||
ExportScript.ConfigEveryFrameArguments =
|
||||
{
|
||||
@@ -55,7 +55,7 @@ ExportScript.ConfigEveryFrameArguments =
|
||||
-- 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] = "%.f", -- SetAirspeed
|
||||
[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}
|
||||
@@ -93,7 +93,7 @@ ExportScript.ConfigEveryFrameArguments =
|
||||
[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}
|
||||
--[443] = "%.4f", -- SAI_knob_arrow {-1.0, 1.0} {0.0, 1.0}
|
||||
-- Clock
|
||||
[19] = "%.4f", -- CLOCK_currtime_hours
|
||||
[18] = "%.4f", -- CLOCK_currtime_minutes
|
||||
@@ -151,7 +151,7 @@ ExportScript.ConfigEveryFrameArguments =
|
||||
[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
|
||||
--[266] = "%.4f", -- XYwheel
|
||||
[260] = "%.f", -- TACAN_test_light
|
||||
-- LAMPS
|
||||
-- Engine Fire Lights
|
||||
@@ -467,11 +467,11 @@ ExportScript.ConfigArguments =
|
||||
[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}
|
||||
--[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
|
||||
@@ -510,6 +510,9 @@ function ExportScript.ProcessIkarusDCSConfigHighImportance(mainPanelDevice)
|
||||
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)
|
||||
@@ -554,10 +557,60 @@ function ExportScript.ProcessIkarusDCSConfigLowImportance(mainPanelDevice)
|
||||
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)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- F-86 Export
|
||||
|
||||
ExportScript.FoundDCSModule = true
|
||||
ExportScript.Version.F86 = "1.2.0"
|
||||
ExportScript.Version.F86 = "1.2.1"
|
||||
--ExportScript.NoLuaExportBeforeNextFrame = true
|
||||
|
||||
ExportScript.ConfigEveryFrameArguments =
|
||||
|
||||
@@ -492,7 +492,10 @@ ExportScript.ConfigArguments =
|
||||
-- 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
|
||||
[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}
|
||||
}
|
||||
|
||||
-----------------------------
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- FW-190D9 Dora
|
||||
|
||||
ExportScript.FoundDCSModule = true
|
||||
ExportScript.Version.FW190D9 = "1.2.0"
|
||||
ExportScript.Version.FW190D9 = "1.2.1"
|
||||
|
||||
ExportScript.ConfigEveryFrameArguments =
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- J-11A Export
|
||||
|
||||
ExportScript.FoundFCModule = true
|
||||
ExportScript.Version.J11A = "1.2.0"
|
||||
ExportScript.Version.J11A = "1.2.1"
|
||||
|
||||
-- auxiliary function
|
||||
dofile(ExportScript.Config.ExportModulePath.."FC_AuxiliaryFuntions.lua")
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- Ka-50 Export
|
||||
|
||||
ExportScript.FoundDCSModule = true
|
||||
ExportScript.Version.Ka50 = "1.2.0"
|
||||
ExportScript.Version.Ka50 = "1.2.1"
|
||||
|
||||
ExportScript.ConfigEveryFrameArguments =
|
||||
{
|
||||
@@ -48,6 +48,7 @@ ExportScript.ConfigEveryFrameArguments =
|
||||
-- Barometric Altimeter (VM_15PV)
|
||||
--------------------------------------------------
|
||||
[87] = "%.4f", -- VM_15PV_BALT_thousands {0.0,1.0}
|
||||
[573] = "%.4f", -- VM_15PV_BALT_tenths {0.0,1.0}
|
||||
[88] = "%0.2f", -- VM_15PV_BaroPressure {0.0,1.0}
|
||||
[89] = "%.4f", -- VM_15PV_BALT_CommandedAlt {0.0,1.0}
|
||||
-- HSI (PNP-72-16)
|
||||
@@ -662,7 +663,7 @@ function ExportScript.ProcessIkarusDCSConfigLowImportance(mainPanelDevice)
|
||||
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, 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))
|
||||
]]
|
||||
-- function for Ikarus
|
||||
@@ -1170,7 +1171,7 @@ function ExportScript.ProcessIkarusDCSConfigHighImportance(mainPanelDevice)
|
||||
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, 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))
|
||||
]]
|
||||
ExportScript.Tools.SendData(44, string.format("%.1f", mainPanelDevice:get_argument_value(44))) -- lamp_MasterWarning {0.0,0.3} {0,1}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- L-39C
|
||||
|
||||
ExportScript.FoundDCSModule = true
|
||||
ExportScript.Version.L39C = "1.2.0"
|
||||
ExportScript.Version.L39C = "1.2.1"
|
||||
|
||||
ExportScript.ConfigEveryFrameArguments =
|
||||
{
|
||||
@@ -17,8 +17,8 @@ ExportScript.ConfigEveryFrameArguments =
|
||||
-- Radar altimeter RV-5
|
||||
[58] = "%.4f", -- RV-5 RALT {0.0, 0.086, 0.439, 0.878, 0.955}{0.0, 20.0, 100.0, 700.0, 800.0}
|
||||
[59] = "%.4f", -- RV-5 DangerRALT index {0.0, 0.094, 0.48, 0.998}{0.0, 20.0, 100.0, 700.0}
|
||||
[63] = "%.f", -- RV-5 DangerRALT lamp
|
||||
[62] = "%.4f", -- RV-5 warning flag
|
||||
[63] = "%.f", -- RV-5 DangerRALT lamp
|
||||
-- Variometer
|
||||
[74] = "%.4f", -- Variometer {-1.0, -0.875, -0.775, -0.44, 0.0, 0.44, 0.775, 0.875, 1.0}{-80.0, -50.0, -20.0, -10.0, 0.0, 10.0, 20.0, 50.0, 80.0}
|
||||
[76] = "%.4f", -- Variometer sideslip {-1.0, 1.0}
|
||||
@@ -185,8 +185,8 @@ ExportScript.ConfigEveryFrameArguments =
|
||||
-- Radar altimeter RV-5
|
||||
[396] = "%.4f", -- Backseat - RV-5 RALT {0.0, 0.086, 0.439, 0.878, 0.955}{0.0, 20.0, 100.0, 700.0, 800.0}
|
||||
[397] = "%.4f", -- Backseat - RV-5 DangerRALT index {0.0, 0.094, 0.48, 0.998}{0.0, 20.0, 100.0, 700.0}
|
||||
[401] = "%.f", -- Backseat - RV-5 DangerRALT lamp
|
||||
[400] = "%.4f", -- Backseat - RV-5 warning flag
|
||||
[401] = "%.f", -- Backseat - RV-5 DangerRALT lamp
|
||||
-- Variometer
|
||||
[416] = "%.4f", -- Backseat - Variometer {-1.0, -0.875, -0.775, -0.44, 0.0, 0.44, 0.775, 0.875, 1.0}{-80.0, -50.0, -20.0, -10.0, 0.0, 10.0, 20.0, 50.0, 80.0}
|
||||
[418] = "%.4f", -- Backseat - Variometer sideslip {-1.0, 1.0}
|
||||
@@ -202,8 +202,8 @@ ExportScript.ConfigEveryFrameArguments =
|
||||
[369] = "%.4f", -- Backseat - KPP SDU Roll {-1.0, 1.0}
|
||||
[370] = "%.4f", -- Backseat - KPP SDU Pitch {-1.0, 1.0}
|
||||
-- NPP HSI
|
||||
[378] = "%.4f", -- Backseat - HSI2 heading {1.0, 0.0}{0.0, math.pi * 2.0}
|
||||
[379] = "%.4f", -- Backseat - HSI2 commanded course needle {1.0, 0.0}{0.0, math.pi * 2.0}
|
||||
--[378] = "%.4f", -- Backseat - HSI2 heading {1.0, 0.0}{0.0, math.pi * 2.0}
|
||||
--[379] = "%.4f", -- Backseat - HSI2 commanded course needle {1.0, 0.0}{0.0, math.pi * 2.0}
|
||||
[380] = "%.4f", -- Backseat - HSI2 bearing needle {1.0, 0.0}{0.0, math.pi * 2.0}
|
||||
[384] = "%.4f", -- Backseat - HSI2 Course Deviation Bar {-0.8, 0.8}{-1.0, 1.0}
|
||||
[382] = "%.4f", -- Backseat - HSI2 Alt Deviation Bar {-0.8, 0.8}{-1.0, 1.0}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- L-39ZA
|
||||
|
||||
ExportScript.FoundDCSModule = true
|
||||
ExportScript.Version.L39ZA = "1.2.0"
|
||||
ExportScript.Version.L39ZA = "1.2.1"
|
||||
|
||||
ExportScript.ConfigEveryFrameArguments =
|
||||
{
|
||||
@@ -17,8 +17,8 @@ ExportScript.ConfigEveryFrameArguments =
|
||||
-- Radar altimeter RV-5
|
||||
[58] = "%.4f", -- RV-5 RALT {0.0, 0.086, 0.439, 0.878, 0.955}{0.0, 20.0, 100.0, 700.0, 800.0}
|
||||
[59] = "%.4f", -- RV-5 DangerRALT index {0.0, 0.094, 0.48, 0.998}{0.0, 20.0, 100.0, 700.0}
|
||||
[63] = "%.f", -- RV-5 DangerRALT lamp
|
||||
[62] = "%.4f", -- RV-5 warning flag
|
||||
[63] = "%.f", -- RV-5 DangerRALT lamp
|
||||
-- Variometer
|
||||
[74] = "%.4f", -- Variometer {-1.0, -0.875, -0.775, -0.44, 0.0, 0.44, 0.775, 0.875, 1.0}{-80.0, -50.0, -20.0, -10.0, 0.0, 10.0, 20.0, 50.0, 80.0}
|
||||
[76] = "%.4f", -- Variometer sideslip {-1.0, 1.0}
|
||||
@@ -186,8 +186,8 @@ ExportScript.ConfigEveryFrameArguments =
|
||||
-- Radar altimeter RV-5
|
||||
[396] = "%.4f", -- Backseat - RV-5 RALT {0.0, 0.086, 0.439, 0.878, 0.955}{0.0, 20.0, 100.0, 700.0, 800.0}
|
||||
[397] = "%.4f", -- Backseat - RV-5 DangerRALT index {0.0, 0.094, 0.48, 0.998}{0.0, 20.0, 100.0, 700.0}
|
||||
[401] = "%.f", -- Backseat - RV-5 DangerRALT lamp
|
||||
[400] = "%.4f", -- Backseat - RV-5 warning flag
|
||||
[401] = "%.f", -- Backseat - RV-5 DangerRALT lamp
|
||||
-- Variometer
|
||||
[416] = "%.4f", -- Backseat - Variometer {-1.0, -0.875, -0.775, -0.44, 0.0, 0.44, 0.775, 0.875, 1.0}{-80.0, -50.0, -20.0, -10.0, 0.0, 10.0, 20.0, 50.0, 80.0}
|
||||
[418] = "%.4f", -- Backseat - Variometer sideslip {-1.0, 1.0}
|
||||
@@ -203,8 +203,8 @@ ExportScript.ConfigEveryFrameArguments =
|
||||
[369] = "%.4f", -- Backseat - KPP SDU Roll {-1.0, 1.0}
|
||||
[370] = "%.4f", -- Backseat - KPP SDU Pitch {-1.0, 1.0}
|
||||
-- NPP HSI
|
||||
[378] = "%.4f", -- Backseat - HSI2 heading {1.0, 0.0}{0.0, math.pi * 2.0}
|
||||
[379] = "%.4f", -- Backseat - HSI2 commanded course needle {1.0, 0.0}{0.0, math.pi * 2.0}
|
||||
--[378] = "%.4f", -- Backseat - HSI2 heading {1.0, 0.0}{0.0, math.pi * 2.0}
|
||||
--[379] = "%.4f", -- Backseat - HSI2 commanded course needle {1.0, 0.0}{0.0, math.pi * 2.0}
|
||||
[380] = "%.4f", -- Backseat - HSI2 bearing needle {1.0, 0.0}{0.0, math.pi * 2.0}
|
||||
[384] = "%.4f", -- Backseat - HSI2 Course Deviation Bar {-0.8, 0.8}{-1.0, 1.0}
|
||||
[382] = "%.4f", -- Backseat - HSI2 Alt Deviation Bar {-0.8, 0.8}{-1.0, 1.0}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- Mirage M-2000C
|
||||
|
||||
ExportScript.FoundDCSModule = true
|
||||
ExportScript.Version.M2000C = "1.2.0"
|
||||
ExportScript.Version.M2000C = "1.2.1"
|
||||
|
||||
ExportScript.ConfigEveryFrameArguments =
|
||||
{
|
||||
@@ -131,7 +131,7 @@ ExportScript.ConfigEveryFrameArguments =
|
||||
-- ADI Standby
|
||||
[327] = "%.4f", --pitch
|
||||
[326] = "%.4f", --bank
|
||||
[328] = "%.4f", --adjust
|
||||
[328] = "%.4f", --adjust / White Silhouette
|
||||
[329] = "%.1f", --off flag
|
||||
|
||||
-- AOA
|
||||
@@ -381,7 +381,7 @@ ExportScript.ConfigArguments =
|
||||
[208] = "%.1f", --Gun AG Reticle Selector
|
||||
[209] = "%.1f", --Gun Target Wingspan Selector
|
||||
[210] = "%.1f", --HUD Clear Switch
|
||||
[192] = "%.1f", --Radar Altimeter Minimum Altitude Selector
|
||||
[192] = "%.4f", --Radar Altimeter Minimum Altitude Selector
|
||||
[213] = "%.1f", --Radar Interception Switch
|
||||
[214] = "%.1f", --Radar N Parameter Switch
|
||||
[215] = "%.1f", --Radar P Parameter Switch
|
||||
@@ -627,7 +627,7 @@ ExportScript.ConfigArguments =
|
||||
[314] = "%.1f", --ADI Cage Lever
|
||||
[315] = "%.1f", --ADI Backlight Switch
|
||||
[325] = "%.1f", --Backup ADI Cage
|
||||
[328] = "%.1f", --Backup ADI Pitch Adjust Knob {-1.0,1.0} in 0.1 steps
|
||||
--[328] = "%.4f", --Backup ADI Pitch Adjust Knob {-1.0,1.0} in 0.1 steps
|
||||
-- Center console IFF
|
||||
[383] = "%.1f", --Ident Power Switch {-1.0,0.0,1.0}
|
||||
[384] = "%.1f", --Mode-1 Switch
|
||||
@@ -1132,7 +1132,7 @@ function ExportScript.ProcessIkarusDCSConfigLowImportance(mainPanelDevice)
|
||||
|
||||
-- U/VHF Com Preset
|
||||
--[436] = "%.4f", -- Preset display (1-20)
|
||||
local lUVHF_RADIO_PRESET = {[0.00]="1",[0.10]="2",[0.15]="3",[0.20]="4",[0.25]="5",[0.30]="6",[0.35]="7",[0.40]="8",[0.45]="9",[0.50]="10",[0.55]="11",[0.60]="12",[0.65]="13",[0.70]="14",[0.75]="15",[0.80]="16",[0.85]="17",[0.09]="18",[0.95]="19",[1.00]="20"}
|
||||
local lUVHF_RADIO_PRESET = {[0.00]="1",[0.10]="2",[0.15]="3",[0.20]="4",[0.25]="5",[0.30]="6",[0.35]="7",[0.40]="8",[0.45]="9",[0.50]="10",[0.55]="11",[0.60]="12",[0.65]="13",[0.70]="14",[0.75]="15",[0.80]="16",[0.85]="17",[0.90]="18",[0.95]="19",[1.00]="20"}
|
||||
ExportScript.Tools.SendData(436, ExportScript.Tools.DisplayFormat(lUVHF_RADIO_PRESET[tonumber(string.format("%1.2f",mainPanelDevice:get_argument_value(436)))], 2))
|
||||
|
||||
if ExportScript.Config.Debug then
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- Mi-8MTV2 Export
|
||||
|
||||
ExportScript.FoundDCSModule = true
|
||||
ExportScript.Version.Mi8MT = "1.2.0"
|
||||
ExportScript.Version.Mi8MT = "1.2.1"
|
||||
|
||||
ExportScript.ConfigEveryFrameArguments =
|
||||
{
|
||||
@@ -75,7 +75,7 @@ ExportScript.ConfigEveryFrameArguments =
|
||||
[833] = "%.4f", -- VD_10K_L_100_Ind {0.0, 1.0}
|
||||
[832] = "%.4f", -- VD_10K_L_10_Ind {0.0, 1.0}
|
||||
[916] = "%.4f", -- VD_10K_L_Shutter {0.822, 0.75}
|
||||
[21] = "%.4f", -- VD_10K_L_PRESS {0.0, 1.0}
|
||||
--[21] = "%.4f", -- VD_10K_L_PRESS {0.0, 1.0}
|
||||
-----
|
||||
[98] = "%.4f", -- VD_10K_R_100 {0.0, 1.0}
|
||||
[99] = "%.4f", -- VD_10K_R_10 {0.0, 1.0}
|
||||
@@ -1005,6 +1005,9 @@ function ExportScript.ProcessIkarusDCSConfigHighImportance(mainPanelDevice)
|
||||
ExportScript.Tools.SendData(12, string.format("%.4f", ExportScript.Tools.negate(mainPanelDevice:get_argument_value(12)))) -- negate
|
||||
|
||||
ExportScript.Tools.SendData(91, string.format("%.4f", ExportScript.Tools.negate(mainPanelDevice:get_argument_value(91)))) -- negate
|
||||
|
||||
--[21] = "%.4f", -- VD_10K_L_PRESS {0.0, 1.0}
|
||||
ExportScript.Tools.SendData(21, string.format("%.4f", ExportScript.Tools.negate(mainPanelDevice:get_argument_value(21)))) -- negate
|
||||
end
|
||||
|
||||
function ExportScript.ProcessDACConfigHighImportance(mainPanelDevice)
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- MiG-15Bis
|
||||
|
||||
ExportScript.FoundDCSModule = true
|
||||
ExportScript.Version.MiG15bis = "1.2.0"
|
||||
ExportScript.Version.MiG15bis = "1.2.1"
|
||||
|
||||
ExportScript.ConfigEveryFrameArguments =
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- P-51D-30-NA Export
|
||||
|
||||
ExportScript.FoundDCSModule = true
|
||||
ExportScript.Version.P51D30NA = "1.2.0"
|
||||
ExportScript.Version.P51D30NA = "1.2.1"
|
||||
|
||||
ExportScript.ConfigEveryFrameArguments =
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- P-51D-25-NA Export
|
||||
|
||||
ExportScript.FoundDCSModule = true
|
||||
ExportScript.Version.P51D25NA = "1.2.0"
|
||||
ExportScript.Version.P51D25NA = "1.2.1"
|
||||
|
||||
ExportScript.ConfigEveryFrameArguments =
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- SA342L
|
||||
|
||||
ExportScript.FoundDCSModule = true
|
||||
ExportScript.Version.SA342L = "1.2.0"
|
||||
ExportScript.Version.SA342L = "1.2.1"
|
||||
|
||||
ExportScript.ConfigEveryFrameArguments =
|
||||
{
|
||||
@@ -47,7 +47,7 @@ ExportScript.ConfigEveryFrameArguments =
|
||||
[165] = "%0.1f", -- ADF_nav2_dec {0,1} 000.X khz {0,1,2,3,4,5,6,7,8,9,0}{0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0}
|
||||
-- ADF Gauge
|
||||
[113] = "%.4f", -- ADF_Fond Compass rose {0,10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170,180,190,200,210,220,230,240,250,260,270,280,290,300,310,320,330,340,350,360}{0.0,0.028,0.055,0.084,0.111,0.138,0.166,0.194,0.222,0.249,0.2775,0.305,0.332,0.36,0.388,0.415,0.4434,0.47,0.498,0.526,0.555,0.583,0.611,0.638,0.6665,0.694,0.722,0.75,0.776,0.805,0.833,0.861,0.8885,0.917,0.944,0.972,1.0}
|
||||
[102] = "%.4f", -- ADF_Aiguille_large Heading Needle large {-360.0,0.0,360.0}{-1.0,0.0,1.0}
|
||||
--[102] = "%.4f", -- ADF_Aiguille_large Heading Needle large {-360.0,0.0,360.0}{-1.0,0.0,1.0}
|
||||
[103] = "%.4f", -- ADF_Aiguille_fine Heading Needle fine {-360.0,0.0,360.0}{-1.0,0.0,1.0}
|
||||
[107] = "%.1f", -- ADF_FlagCAP {0,1}
|
||||
[109] = "%.1f", -- ADF_FlagBut {0,1}
|
||||
@@ -57,9 +57,10 @@ ExportScript.ConfigEveryFrameArguments =
|
||||
[112] = "%0.1f", -- ADF_compteur_Unit {0,1} 00X {0,1,2,3,4,5,6,7,8,9,0}{0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0}
|
||||
-- CLOCK
|
||||
[41] = "%.3f", -- CLOCK_HOUR {0,1,2,3,4,5,6,7,8,9,10,11,12}{0,0.081,0.162,0.245,0.33,0.415,0.501,0.587,0.672,0.756,0.838,0.919,1}
|
||||
[42] = "%.3f", -- CLOCK_MINUTE {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60}{0,0.017,0.033,0.049,0.065,0.08,0.098,0.115,0.131,0.147,0.163,0.18,0.195,0.213,0.23,0.246,0.262,0.279,0.296,0.313,0.33,0.346,0.363,0.38,0.397,0.415,0.431,0.449,0.466,0.483,0.501,0.518,0.535,0.552,0.569,0.586,0.604,0.621,0.638,0.655,0.672,0.688,0.705,0.722,0.739,0.755,0.771,0.788,0.804,0.821,0.838,0.853,0.87,0.885,0.902,0.919,0.934,0.95,0.967,0.984,1}
|
||||
[43] = "%.3f", -- CLOCK_SECOND {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60}{0,0.017,0.033,0.049,0.065,0.08,0.098,0.115,0.131,0.147,0.163,0.18,0.195,0.213,0.23,0.246,0.262,0.279,0.296,0.313,0.33,0.346,0.363,0.38,0.397,0.415,0.431,0.449,0.466,0.483,0.501,0.518,0.535,0.552,0.569,0.586,0.604,0.621,0.638,0.655,0.672,0.688,0.705,0.722,0.739,0.755,0.771,0.788,0.804,0.821,0.838,0.853,0.87,0.885,0.902,0.919,0.934,0.95,0.967,0.984,1}
|
||||
[42] = "%.3f", -- CLOCK_SECOND {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60}{0,0.017,0.033,0.049,0.065,0.08,0.098,0.115,0.131,0.147,0.163,0.18,0.195,0.213,0.23,0.246,0.262,0.279,0.296,0.313,0.33,0.346,0.363,0.38,0.397,0.415,0.431,0.449,0.466,0.483,0.501,0.518,0.535,0.552,0.569,0.586,0.604,0.621,0.638,0.655,0.672,0.688,0.705,0.722,0.739,0.755,0.771,0.788,0.804,0.821,0.838,0.853,0.87,0.885,0.902,0.919,0.934,0.95,0.967,0.984,1}
|
||||
[43] = "%.3f", -- CLOCK_MINUTE {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60}{0,0.017,0.033,0.049,0.065,0.08,0.098,0.115,0.131,0.147,0.163,0.18,0.195,0.213,0.23,0.246,0.262,0.279,0.296,0.313,0.33,0.346,0.363,0.38,0.397,0.415,0.431,0.449,0.466,0.483,0.501,0.518,0.535,0.552,0.569,0.586,0.604,0.621,0.638,0.655,0.672,0.688,0.705,0.722,0.739,0.755,0.771,0.788,0.804,0.821,0.838,0.853,0.87,0.885,0.902,0.919,0.934,0.95,0.967,0.984,1}
|
||||
[44] = "%.3f", -- CLOCK_MINI {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30}{0,0.032,0.065,0.098,0.131,0.164,0.198,0.231,0.264,0.297,0.331,0.364,0.397,0.43,0.464,0.497,0.523,0.551,0.576,0.605,0.63,0.659,0.684,0.714,0.758,0.796,0.838,0.879,0.92,0.958,1}
|
||||
[210] = "%.4f", -- Clock_ExtCouronne
|
||||
-- Wipers
|
||||
--[547] = "%.4f", -- EGPilote {-1,1}
|
||||
--[546] = "%.4f", -- EGCopilote {-1,1}
|
||||
@@ -77,7 +78,7 @@ ExportScript.ConfigEveryFrameArguments =
|
||||
-- radar altimetre
|
||||
[94] = "%.4f", -- Radar_Altimeter {0,5,10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,200,250,300,350,400,450,500,550,600,650,700,750,800,850}{0,0.019,0.035,0.072,0.109,0.147,0.18,0.214,0.247,0.283,0.316,0.345,0.376,0.407,0.438,0.469,0.501,0.564,0.606,0.648,0.676,0.706,0.732,0.756,0.775,0.794,0.811,0.829,0.843,0.858,0.87}
|
||||
[93] = "%.4f", -- DangerRALT_index {0,5,10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,200,250,300,350,400,450,500,550,600,650,700,750,800,850}{0.0,0.0175,0.0338,0.0715,0.109,0.147,0.182,0.215,0.247,0.282,0.315,0.3445,0.377,0.407,0.439,0.47,0.5005,0.5628,0.6052,0.646,0.675,0.7058,0.7315,0.755,0.7747,0.793,0.8097,0.8272,0.8425,0.8575,0.8693}
|
||||
[97] = "%.f", -- RAltlamp {0,1}
|
||||
--[97] = "%.f", -- RAltlamp {0,1}
|
||||
[98] = "%.f", -- RAlt_flag_Panne OFF Flag{0,1}
|
||||
[99] = "%.1f", -- RAlt_flag_MA A (Test) Flag{0,1}
|
||||
[91] = "%.1f", -- RAlt_knob_MA Power/Test Knop{0,1}
|
||||
@@ -398,6 +399,18 @@ function ExportScript.ProcessIkarusDCSConfigHighImportance(mainPanelDevice)
|
||||
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))
|
||||
]]
|
||||
--[97] = "%.f", -- RAltlamp {0,1}
|
||||
ExportScript.Tools.SendData(97, (mainPanelDevice:get_argument_value(97) > 0.009 and 1 or 0))
|
||||
|
||||
--[102] = "%.4f", -- ADF_Aiguille_large Heading Needle large {-360.0,0.0,360.0}{-1.0,0.0,1.0}
|
||||
local ADF_Aiguille_large = mainPanelDevice:get_argument_value(102)
|
||||
if ADF_Aiguille_large ~= 0 then
|
||||
ADF_Aiguille_large = ADF_Aiguille_large + 0.5
|
||||
if ADF_Aiguille_large > 1 then
|
||||
ADF_Aiguille_large = ADF_Aiguille_large - 1.0
|
||||
end
|
||||
end
|
||||
ExportScript.Tools.SendData(102, string.format("%.4f", ADF_Aiguille_large))
|
||||
end
|
||||
|
||||
function ExportScript.ProcessDACConfigHighImportance(mainPanelDevice)
|
||||
@@ -451,8 +464,10 @@ function ExportScript.ProcessIkarusDCSConfigLowImportance(mainPanelDevice)
|
||||
-- AM Radio
|
||||
---------------------------------------------------
|
||||
local lAMRadio = GetDevice(5)
|
||||
--ExportScript.Tools.SendData(2001, string.format("%.3f", lAMRadio:get_frequency()/1000000))
|
||||
ExportScript.Tools.SendData(2001, ExportScript.Tools.RoundFreqeuncy(lAMRadio:get_frequency()/1000000))
|
||||
if lAMRadio:is_on() then
|
||||
--ExportScript.Tools.SendData(2001, string.format("%.3f", lAMRadio:get_frequency()/1000000))
|
||||
ExportScript.Tools.SendData(2001, ExportScript.Tools.RoundFreqeuncy(lAMRadio:get_frequency()/1000000))
|
||||
end
|
||||
|
||||
-- FM Radio PR4G
|
||||
---------------------------------------------------
|
||||
@@ -489,8 +504,8 @@ function ExportScript.ProcessIkarusDCSConfigLowImportance(mainPanelDevice)
|
||||
end
|
||||
end
|
||||
else
|
||||
ExportScript.Tools.SendData(2004, " ")
|
||||
ExportScript.Tools.SendData(2005, " ")
|
||||
ExportScript.Tools.SendData(2004, "-")
|
||||
ExportScript.Tools.SendData(2005, "-")
|
||||
end
|
||||
end
|
||||
|
||||
@@ -526,8 +541,10 @@ function ExportScript.ProcessDACConfigLowImportance(mainPanelDevice)
|
||||
-- AM Radio
|
||||
---------------------------------------------------
|
||||
local lAMRadio = GetDevice(5)
|
||||
--ExportScript.Tools.SendDataDAC("2001", string.format("%.3f", lAMRadio:get_frequency()/1000000))
|
||||
ExportScript.Tools.SendDataDAC("2001", ExportScript.Tools.RoundFreqeuncy(lAMRadio:get_frequency()/1000000))
|
||||
if lAMRadio:is_on() then
|
||||
--ExportScript.Tools.SendDataDAC("2001", string.format("%.3f", lAMRadio:get_frequency()/1000000))
|
||||
ExportScript.Tools.SendDataDAC("2001", ExportScript.Tools.RoundFreqeuncy(lAMRadio:get_frequency()/1000000))
|
||||
end
|
||||
|
||||
-- FM Radio PR4G
|
||||
---------------------------------------------------
|
||||
@@ -663,7 +680,7 @@ function ExportScript.ProcessDACConfigLowImportance(mainPanelDevice)
|
||||
--ExportScript.genericRadioConf[3]['Preset']['ButtonID2'] = 3002 -- preset button id from cklickable.lua
|
||||
-- Preset based on switchlogic on clickabledata.lua
|
||||
-- [273] = "%.3f", -- FM RADIO - Chanel Selector {0.0,0.143,0.286,0.429,0.572,0.715,0.858,1.0} -- laut clickabledata.lua
|
||||
ExportScript.genericRadioConf[3]['Preset']['List'] = {[0.0]="1",[0.143]="2",[0.286]="3",[0.429]="4",[0.572]="5",[0.715]="6",[0.858]="0",[1.0]="9"}
|
||||
ExportScript.genericRadioConf[3]['Preset']['List'] = {[0.0]="1",[0.143]="2",[0.286]="3",[0.429]="4",[0.572]="5",[0.715]="6",[0.858]="0",[1.0]="-"}
|
||||
ExportScript.genericRadioConf[3]['Preset']['Step'] = 0.143 -- minimal step for preset change
|
||||
--ExportScript.genericRadioConf[3]['Preset']['Step2'] = -0.01 -- minimal step for preset change
|
||||
--ExportScript.genericRadioConf[3]['Squelch'] = {} -- squelch switch active
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- SA342M
|
||||
|
||||
ExportScript.FoundDCSModule = true
|
||||
ExportScript.Version.SA342M = "1.2.0"
|
||||
ExportScript.Version.SA342M = "1.2.1"
|
||||
|
||||
ExportScript.ConfigEveryFrameArguments =
|
||||
{
|
||||
@@ -47,7 +47,7 @@ ExportScript.ConfigEveryFrameArguments =
|
||||
[165] = "%0.1f", -- ADF_nav2_dec {0,1} 000.X khz {0,1,2,3,4,5,6,7,8,9,0}{0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0}
|
||||
-- ADF Gauge
|
||||
[113] = "%.4f", -- ADF_Fond Compass rose {0,10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170,180,190,200,210,220,230,240,250,260,270,280,290,300,310,320,330,340,350,360}{0.0,0.028,0.055,0.084,0.111,0.138,0.166,0.194,0.222,0.249,0.2775,0.305,0.332,0.36,0.388,0.415,0.4434,0.47,0.498,0.526,0.555,0.583,0.611,0.638,0.6665,0.694,0.722,0.75,0.776,0.805,0.833,0.861,0.8885,0.917,0.944,0.972,1.0}
|
||||
[102] = "%.4f", -- ADF_Aiguille_large Heading Needle large {-360.0,0.0,360.0}{-1.0,0.0,1.0}
|
||||
--[102] = "%.4f", -- ADF_Aiguille_large Heading Needle large {-360.0,0.0,360.0}{-1.0,0.0,1.0}
|
||||
[103] = "%.4f", -- ADF_Aiguille_fine Heading Needle fine {-360.0,0.0,360.0}{-1.0,0.0,1.0}
|
||||
[107] = "%.1f", -- ADF_FlagCAP {0,1}
|
||||
[109] = "%.1f", -- ADF_FlagBut {0,1}
|
||||
@@ -57,9 +57,10 @@ ExportScript.ConfigEveryFrameArguments =
|
||||
[112] = "%0.1f", -- ADF_compteur_Unit {0,1} 00X {0,1,2,3,4,5,6,7,8,9,0}{0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0}
|
||||
-- CLOCK
|
||||
[41] = "%.3f", -- CLOCK_HOUR {0,1,2,3,4,5,6,7,8,9,10,11,12}{0,0.081,0.162,0.245,0.33,0.415,0.501,0.587,0.672,0.756,0.838,0.919,1}
|
||||
[42] = "%.3f", -- CLOCK_MINUTE {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60}{0,0.017,0.033,0.049,0.065,0.08,0.098,0.115,0.131,0.147,0.163,0.18,0.195,0.213,0.23,0.246,0.262,0.279,0.296,0.313,0.33,0.346,0.363,0.38,0.397,0.415,0.431,0.449,0.466,0.483,0.501,0.518,0.535,0.552,0.569,0.586,0.604,0.621,0.638,0.655,0.672,0.688,0.705,0.722,0.739,0.755,0.771,0.788,0.804,0.821,0.838,0.853,0.87,0.885,0.902,0.919,0.934,0.95,0.967,0.984,1}
|
||||
[43] = "%.3f", -- CLOCK_SECOND {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60}{0,0.017,0.033,0.049,0.065,0.08,0.098,0.115,0.131,0.147,0.163,0.18,0.195,0.213,0.23,0.246,0.262,0.279,0.296,0.313,0.33,0.346,0.363,0.38,0.397,0.415,0.431,0.449,0.466,0.483,0.501,0.518,0.535,0.552,0.569,0.586,0.604,0.621,0.638,0.655,0.672,0.688,0.705,0.722,0.739,0.755,0.771,0.788,0.804,0.821,0.838,0.853,0.87,0.885,0.902,0.919,0.934,0.95,0.967,0.984,1}
|
||||
[42] = "%.3f", -- CLOCK_SECOND {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60}{0,0.017,0.033,0.049,0.065,0.08,0.098,0.115,0.131,0.147,0.163,0.18,0.195,0.213,0.23,0.246,0.262,0.279,0.296,0.313,0.33,0.346,0.363,0.38,0.397,0.415,0.431,0.449,0.466,0.483,0.501,0.518,0.535,0.552,0.569,0.586,0.604,0.621,0.638,0.655,0.672,0.688,0.705,0.722,0.739,0.755,0.771,0.788,0.804,0.821,0.838,0.853,0.87,0.885,0.902,0.919,0.934,0.95,0.967,0.984,1}
|
||||
[43] = "%.3f", -- CLOCK_MINUTE {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60}{0,0.017,0.033,0.049,0.065,0.08,0.098,0.115,0.131,0.147,0.163,0.18,0.195,0.213,0.23,0.246,0.262,0.279,0.296,0.313,0.33,0.346,0.363,0.38,0.397,0.415,0.431,0.449,0.466,0.483,0.501,0.518,0.535,0.552,0.569,0.586,0.604,0.621,0.638,0.655,0.672,0.688,0.705,0.722,0.739,0.755,0.771,0.788,0.804,0.821,0.838,0.853,0.87,0.885,0.902,0.919,0.934,0.95,0.967,0.984,1}
|
||||
[44] = "%.3f", -- CLOCK_MINI {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30}{0,0.032,0.065,0.098,0.131,0.164,0.198,0.231,0.264,0.297,0.331,0.364,0.397,0.43,0.464,0.497,0.523,0.551,0.576,0.605,0.63,0.659,0.684,0.714,0.758,0.796,0.838,0.879,0.92,0.958,1}
|
||||
[210] = "%.4f", -- Clock_ExtCouronne
|
||||
-- Wipers
|
||||
--[547] = "%.4f", -- EGPilote {-1,1}
|
||||
--[546] = "%.4f", -- EGCopilote {-1,1}
|
||||
@@ -77,7 +78,7 @@ ExportScript.ConfigEveryFrameArguments =
|
||||
-- radar altimetre
|
||||
[94] = "%.4f", -- Radar_Altimeter {0,5,10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,200,250,300,350,400,450,500,550,600,650,700,750,800,850}{0,0.019,0.035,0.072,0.109,0.147,0.18,0.214,0.247,0.283,0.316,0.345,0.376,0.407,0.438,0.469,0.501,0.564,0.606,0.648,0.676,0.706,0.732,0.756,0.775,0.794,0.811,0.829,0.843,0.858,0.87}
|
||||
[93] = "%.4f", -- DangerRALT_index {0,5,10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,200,250,300,350,400,450,500,550,600,650,700,750,800,850}{0.0,0.0175,0.0338,0.0715,0.109,0.147,0.182,0.215,0.247,0.282,0.315,0.3445,0.377,0.407,0.439,0.47,0.5005,0.5628,0.6052,0.646,0.675,0.7058,0.7315,0.755,0.7747,0.793,0.8097,0.8272,0.8425,0.8575,0.8693}
|
||||
[97] = "%.f", -- RAltlamp {0,1}
|
||||
--[97] = "%.f", -- RAltlamp {0,1}
|
||||
[98] = "%.f", -- RAlt_flag_Panne OFF Flag{0,1}
|
||||
[99] = "%.1f", -- RAlt_flag_MA A (Test) Flag{0,1}
|
||||
[91] = "%.1f", -- RAlt_knob_MA Power/Test Knop{0,1}
|
||||
@@ -415,6 +416,18 @@ function ExportScript.ProcessIkarusDCSConfigHighImportance(mainPanelDevice)
|
||||
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))
|
||||
]]
|
||||
--[97] = "%.f", -- RAltlamp {0,1}
|
||||
ExportScript.Tools.SendData(97, (mainPanelDevice:get_argument_value(97) > 0.009 and 1 or 0))
|
||||
|
||||
--[102] = "%.4f", -- ADF_Aiguille_large Heading Needle large {-360.0,0.0,360.0}{-1.0,0.0,1.0}
|
||||
local ADF_Aiguille_large = mainPanelDevice:get_argument_value(102)
|
||||
if ADF_Aiguille_large ~= 0 then
|
||||
ADF_Aiguille_large = ADF_Aiguille_large + 0.5
|
||||
if ADF_Aiguille_large > 1 then
|
||||
ADF_Aiguille_large = ADF_Aiguille_large - 1.0
|
||||
end
|
||||
end
|
||||
ExportScript.Tools.SendData(102, string.format("%.4f", ADF_Aiguille_large))
|
||||
end
|
||||
|
||||
function ExportScript.ProcessDACConfigHighImportance(mainPanelDevice)
|
||||
@@ -605,7 +618,7 @@ function ExportScript.ProcessDACConfigLowImportance(mainPanelDevice)
|
||||
ExportScript.genericRadioConf[1]['maxFrequency'] = 399.975 -- highest frequency
|
||||
ExportScript.genericRadioConf[1]['Power'] = {} -- power button active
|
||||
ExportScript.genericRadioConf[1]['Power']['ButtonID'] = 3001 -- power button id from cklickable.lua
|
||||
ExportScript.genericRadioConf[1]['Power']['ValueOn'] = 0.1 -- power on value from cklickable.lua
|
||||
ExportScript.genericRadioConf[1]['Power']['ValueOn'] = 0.167 -- 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
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- SA342Mistral
|
||||
|
||||
ExportScript.FoundDCSModule = true
|
||||
ExportScript.Version.SA342Mistral = "1.2.0"
|
||||
ExportScript.Version.SA342Mistral = "1.2.1"
|
||||
|
||||
ExportScript.ConfigEveryFrameArguments =
|
||||
{
|
||||
@@ -47,7 +47,7 @@ ExportScript.ConfigEveryFrameArguments =
|
||||
[165] = "%0.1f", -- ADF_nav2_dec {0,1} 000.X khz {0,1,2,3,4,5,6,7,8,9,0}{0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0}
|
||||
-- ADF Gauge
|
||||
[113] = "%.4f", -- ADF_Fond Compass rose {0,10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,160,170,180,190,200,210,220,230,240,250,260,270,280,290,300,310,320,330,340,350,360}{0.0,0.028,0.055,0.084,0.111,0.138,0.166,0.194,0.222,0.249,0.2775,0.305,0.332,0.36,0.388,0.415,0.4434,0.47,0.498,0.526,0.555,0.583,0.611,0.638,0.6665,0.694,0.722,0.75,0.776,0.805,0.833,0.861,0.8885,0.917,0.944,0.972,1.0}
|
||||
[102] = "%.4f", -- ADF_Aiguille_large Heading Needle large {-360.0,0.0,360.0}{-1.0,0.0,1.0}
|
||||
--[102] = "%.4f", -- ADF_Aiguille_large Heading Needle large {-360.0,0.0,360.0}{-1.0,0.0,1.0}
|
||||
[103] = "%.4f", -- ADF_Aiguille_fine Heading Needle fine {-360.0,0.0,360.0}{-1.0,0.0,1.0}
|
||||
[107] = "%.1f", -- ADF_FlagCAP {0,1}
|
||||
[109] = "%.1f", -- ADF_FlagBut {0,1}
|
||||
@@ -57,9 +57,10 @@ ExportScript.ConfigEveryFrameArguments =
|
||||
[112] = "%0.1f", -- ADF_compteur_Unit {0,1} 00X {0,1,2,3,4,5,6,7,8,9,0}{0.0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0}
|
||||
-- CLOCK
|
||||
[41] = "%.3f", -- CLOCK_HOUR {0,1,2,3,4,5,6,7,8,9,10,11,12}{0,0.081,0.162,0.245,0.33,0.415,0.501,0.587,0.672,0.756,0.838,0.919,1}
|
||||
[42] = "%.3f", -- CLOCK_MINUTE {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60}{0,0.017,0.033,0.049,0.065,0.08,0.098,0.115,0.131,0.147,0.163,0.18,0.195,0.213,0.23,0.246,0.262,0.279,0.296,0.313,0.33,0.346,0.363,0.38,0.397,0.415,0.431,0.449,0.466,0.483,0.501,0.518,0.535,0.552,0.569,0.586,0.604,0.621,0.638,0.655,0.672,0.688,0.705,0.722,0.739,0.755,0.771,0.788,0.804,0.821,0.838,0.853,0.87,0.885,0.902,0.919,0.934,0.95,0.967,0.984,1}
|
||||
[43] = "%.3f", -- CLOCK_SECOND {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60}{0,0.017,0.033,0.049,0.065,0.08,0.098,0.115,0.131,0.147,0.163,0.18,0.195,0.213,0.23,0.246,0.262,0.279,0.296,0.313,0.33,0.346,0.363,0.38,0.397,0.415,0.431,0.449,0.466,0.483,0.501,0.518,0.535,0.552,0.569,0.586,0.604,0.621,0.638,0.655,0.672,0.688,0.705,0.722,0.739,0.755,0.771,0.788,0.804,0.821,0.838,0.853,0.87,0.885,0.902,0.919,0.934,0.95,0.967,0.984,1}
|
||||
[42] = "%.3f", -- CLOCK_SECOND {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60}{0,0.017,0.033,0.049,0.065,0.08,0.098,0.115,0.131,0.147,0.163,0.18,0.195,0.213,0.23,0.246,0.262,0.279,0.296,0.313,0.33,0.346,0.363,0.38,0.397,0.415,0.431,0.449,0.466,0.483,0.501,0.518,0.535,0.552,0.569,0.586,0.604,0.621,0.638,0.655,0.672,0.688,0.705,0.722,0.739,0.755,0.771,0.788,0.804,0.821,0.838,0.853,0.87,0.885,0.902,0.919,0.934,0.95,0.967,0.984,1}
|
||||
[43] = "%.3f", -- CLOCK_MINUTE {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60}{0,0.017,0.033,0.049,0.065,0.08,0.098,0.115,0.131,0.147,0.163,0.18,0.195,0.213,0.23,0.246,0.262,0.279,0.296,0.313,0.33,0.346,0.363,0.38,0.397,0.415,0.431,0.449,0.466,0.483,0.501,0.518,0.535,0.552,0.569,0.586,0.604,0.621,0.638,0.655,0.672,0.688,0.705,0.722,0.739,0.755,0.771,0.788,0.804,0.821,0.838,0.853,0.87,0.885,0.902,0.919,0.934,0.95,0.967,0.984,1}
|
||||
[44] = "%.3f", -- CLOCK_MINI {0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30}{0,0.032,0.065,0.098,0.131,0.164,0.198,0.231,0.264,0.297,0.331,0.364,0.397,0.43,0.464,0.497,0.523,0.551,0.576,0.605,0.63,0.659,0.684,0.714,0.758,0.796,0.838,0.879,0.92,0.958,1}
|
||||
[210] = "%.4f", -- Clock_ExtCouronne
|
||||
-- Wipers
|
||||
--[547] = "%.4f", -- EGPilote {-1,1}
|
||||
--[546] = "%.4f", -- EGCopilote {-1,1}
|
||||
@@ -77,7 +78,7 @@ ExportScript.ConfigEveryFrameArguments =
|
||||
-- radar altimetre
|
||||
[94] = "%.4f", -- Radar_Altimeter {0,5,10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,200,250,300,350,400,450,500,550,600,650,700,750,800,850}{0,0.019,0.035,0.072,0.109,0.147,0.18,0.214,0.247,0.283,0.316,0.345,0.376,0.407,0.438,0.469,0.501,0.564,0.606,0.648,0.676,0.706,0.732,0.756,0.775,0.794,0.811,0.829,0.843,0.858,0.87}
|
||||
[93] = "%.4f", -- DangerRALT_index {0,5,10,20,30,40,50,60,70,80,90,100,110,120,130,140,150,200,250,300,350,400,450,500,550,600,650,700,750,800,850}{0.0,0.0175,0.0338,0.0715,0.109,0.147,0.182,0.215,0.247,0.282,0.315,0.3445,0.377,0.407,0.439,0.47,0.5005,0.5628,0.6052,0.646,0.675,0.7058,0.7315,0.755,0.7747,0.793,0.8097,0.8272,0.8425,0.8575,0.8693}
|
||||
[97] = "%.f", -- RAltlamp {0,1}
|
||||
--[97] = "%.f", -- RAltlamp {0,1}
|
||||
[98] = "%.f", -- RAlt_flag_Panne OFF Flag{0,1}
|
||||
[99] = "%.1f", -- RAlt_flag_MA A (Test) Flag{0,1}
|
||||
[91] = "%.1f", -- RAlt_knob_MA Power/Test Knop{0,1}
|
||||
@@ -403,6 +404,18 @@ function ExportScript.ProcessIkarusDCSConfigHighImportance(mainPanelDevice)
|
||||
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))
|
||||
]]
|
||||
--[97] = "%.f", -- RAltlamp {0,1}
|
||||
ExportScript.Tools.SendData(97, (mainPanelDevice:get_argument_value(97) > 0.009 and 1 or 0))
|
||||
|
||||
--[102] = "%.4f", -- ADF_Aiguille_large Heading Needle large {-360.0,0.0,360.0}{-1.0,0.0,1.0}
|
||||
local ADF_Aiguille_large = mainPanelDevice:get_argument_value(102)
|
||||
if ADF_Aiguille_large ~= 0 then
|
||||
ADF_Aiguille_large = ADF_Aiguille_large + 0.5
|
||||
if ADF_Aiguille_large > 1 then
|
||||
ADF_Aiguille_large = ADF_Aiguille_large - 1.0
|
||||
end
|
||||
end
|
||||
ExportScript.Tools.SendData(102, string.format("%.4f", ADF_Aiguille_large))
|
||||
end
|
||||
|
||||
function ExportScript.ProcessDACConfigHighImportance(mainPanelDevice)
|
||||
@@ -593,7 +606,7 @@ function ExportScript.ProcessDACConfigLowImportance(mainPanelDevice)
|
||||
ExportScript.genericRadioConf[1]['maxFrequency'] = 399.975 -- highest frequency
|
||||
ExportScript.genericRadioConf[1]['Power'] = {} -- power button active
|
||||
ExportScript.genericRadioConf[1]['Power']['ButtonID'] = 3001 -- power button id from cklickable.lua
|
||||
ExportScript.genericRadioConf[1]['Power']['ValueOn'] = 0.1 -- power on value from cklickable.lua
|
||||
ExportScript.genericRadioConf[1]['Power']['ValueOn'] = 0.167 -- 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
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- Spitfire LFMk IX
|
||||
|
||||
ExportScript.FoundDCSModule = true
|
||||
ExportScript.Version.SpitfireLFMkIX = "1.2.0"
|
||||
ExportScript.Version.SpitfireLFMkIX = "1.2.1"
|
||||
|
||||
ExportScript.ConfigEveryFrameArguments =
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- Spitfire LFMk IX CW
|
||||
|
||||
ExportScript.FoundDCSModule = true
|
||||
ExportScript.Version.SpitfireLFMkIXCW = "1.2.0"
|
||||
ExportScript.Version.SpitfireLFMkIXCW = "1.2.1"
|
||||
|
||||
ExportScript.ConfigEveryFrameArguments =
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- Su-25A Export
|
||||
|
||||
ExportScript.FoundFCModule = true
|
||||
ExportScript.Version.Su25 = "1.2.0"
|
||||
ExportScript.Version.Su25 = "1.2.1"
|
||||
|
||||
-- auxiliary function
|
||||
dofile(ExportScript.Config.ExportModulePath.."FC_AuxiliaryFuntions.lua")
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- Su-25T Export
|
||||
|
||||
ExportScript.FoundFCModule = true
|
||||
ExportScript.Version.Su25T = "1.2.0"
|
||||
ExportScript.Version.Su25T = "1.2.1"
|
||||
|
||||
-- auxiliary function
|
||||
dofile(ExportScript.Config.ExportModulePath.."FC_AuxiliaryFuntions.lua")
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- Su-27 Export
|
||||
|
||||
ExportScript.FoundFCModule = true
|
||||
ExportScript.Version.Su27 = "1.2.0"
|
||||
ExportScript.Version.Su27 = "1.2.1"
|
||||
|
||||
-- auxiliary function
|
||||
dofile(ExportScript.Config.ExportModulePath.."FC_AuxiliaryFuntions.lua")
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- Su-33 Export
|
||||
|
||||
ExportScript.FoundFCModule = true
|
||||
ExportScript.Version.Su33 = "1.2.0"
|
||||
ExportScript.Version.Su33 = "1.2.1"
|
||||
|
||||
-- auxiliary function
|
||||
dofile(ExportScript.Config.ExportModulePath.."FC_AuxiliaryFuntions.lua")
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- TF-51D Export
|
||||
|
||||
ExportScript.FoundDCSModule = true
|
||||
ExportScript.Version.TF51D = "1.2.0"
|
||||
ExportScript.Version.TF51D = "1.2.1"
|
||||
|
||||
ExportScript.ConfigEveryFrameArguments =
|
||||
{
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- Uh-1H
|
||||
|
||||
ExportScript.FoundDCSModule = true
|
||||
ExportScript.Version.UH1H = "1.2.0"
|
||||
ExportScript.Version.UH1H = "1.2.1"
|
||||
|
||||
ExportScript.ConfigEveryFrameArguments =
|
||||
{
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
-- Lat2 and Long2 contain the coordinates of the lower right corner.
|
||||
--
|
||||
|
||||
ExportScript.Version.Maps = "1.2.0"
|
||||
ExportScript.Version.Maps = "1.2.1"
|
||||
|
||||
-- Maps
|
||||
ExportScript.Maps = {}
|
||||
|
||||
@@ -6,7 +6,7 @@
|
||||
-- Contact dcs2arcaze.micha@farbpigmente.org
|
||||
|
||||
ExportScript.Tools = {}
|
||||
ExportScript.Version.Tools = "1.2.0"
|
||||
ExportScript.Version.Tools = "1.2.1"
|
||||
|
||||
function ExportScript.Tools.WriteToLog(message)
|
||||
if ExportScript.logFile then
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
-- Copyright by Michael aka McMicha 2014
|
||||
-- Contact dcs2arcaze.micha@farbpigmente.org
|
||||
|
||||
ExportScript.Version.genericRadio = "1.2.0"
|
||||
ExportScript.Version.genericRadio = "1.2.1"
|
||||
|
||||
--[[
|
||||
-- Config and execute in function ExportScript.ProcessDACConfigLowImportance()
|
||||
|
||||
Reference in New Issue
Block a user