mirror of
https://github.com/s-d-a/DCS-ExportScripts.git
synced 2026-07-17 19:24:58 +00:00
Compare commits
15 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 0df634fb4e | |||
| 873ef44acb | |||
| 674913a0b8 | |||
| da2740fb83 | |||
| c7a3949cd9 | |||
| 9c007dd9c4 | |||
| 8c69898662 | |||
| 21a99beebd | |||
| e1a9f574a4 | |||
| e6656b02a2 | |||
| b8ed48b517 | |||
| e398ec8f83 | |||
| 96dbbd34c0 | |||
| acd8897db9 | |||
| e03cc16901 |
@@ -24,11 +24,11 @@ Der Export von Daten wird für folgende Module unterstützt:
|
||||
- Mirage 2000
|
||||
- P-51D 25/30-NA
|
||||
- SA342L/M/Mistral
|
||||
- SpitfireLFMkIX
|
||||
- SpitfireLFMkIX/CW
|
||||
- Su-25T
|
||||
- TF-51D
|
||||
- UH-1H
|
||||
- alle Flaming Cliffs Flugzeuge
|
||||
- alle Flaming Cliffs Flugzeuge + J-11A
|
||||
|
||||
Kompatibel zur DCS World 2.5.4 und BETA Version
|
||||
|
||||
@@ -57,11 +57,11 @@ Following moduls are supported:
|
||||
- Mirage 2000
|
||||
- P-51D 25/30-NA
|
||||
- SA342L/M/Mistral
|
||||
- SpitfireLFMkIX
|
||||
- SpitfireLFMkIX/CW
|
||||
- Su-25T
|
||||
- TF-51D
|
||||
- UH-1H
|
||||
- all Flaming Cliffs aircrafts
|
||||
- all Flaming Cliffs aircrafts + J-11A
|
||||
|
||||
Compatible with DCS World 2.5.4 and BETA version
|
||||
|
||||
|
||||
@@ -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 =
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- F/A-18C Export
|
||||
|
||||
ExportScript.FoundDCSModule = true
|
||||
ExportScript.Version.FA18C_hornet = "1.2.0"
|
||||
ExportScript.Version.FA18C_hornet = "1.2.1"
|
||||
|
||||
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}
|
||||
}
|
||||
|
||||
-----------------------------
|
||||
@@ -646,10 +649,10 @@ function ExportScript.ProcessIkarusDCSConfigLowImportance(mainPanelDevice)
|
||||
ExportScript.Tools.SendData(2029, " ") -- Comm2Display 2 character
|
||||
end
|
||||
|
||||
local lUHF1Radio = GetDevice(39)
|
||||
local lUHF1Radio = GetDevice(38)
|
||||
ExportScript.Tools.SendData(2030, ExportScript.Tools.DisplayFormat(ExportScript.Tools.RoundFreqeuncy((lUHF1Radio:get_frequency()/1000000))), 7)
|
||||
|
||||
local lUHF2Radio = GetDevice(40)
|
||||
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
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
-- Flaming Cliffs Auxiliary Functons
|
||||
|
||||
ExportScript.Version.FC_AuxiliaryFunctions = "1.2.0"
|
||||
ExportScript.Version.FC_AuxiliaryFunctions = "1.2.1"
|
||||
|
||||
-- Workaround for engine start-up
|
||||
ExportScript.AF.LeftEngineOn = false
|
||||
@@ -626,7 +626,7 @@ function ExportScript.AF.FC_Russian_RadarAltimeter_1000m(warningflag)
|
||||
ExportScript.Tools.SendData(28, lDangerRALT_Lamp)
|
||||
end
|
||||
|
||||
-- Barometric Altimeter for SU-25A, SU25-T
|
||||
-- Barometric Altimeter for SU-33
|
||||
function ExportScript.AF.FC_Russian_BarometricAltimeter_late()
|
||||
|
||||
local lBasicAtmospherePressure = LoGetBasicAtmospherePressure() -- BAROMETRIC PRESSURE (mm Hg)
|
||||
@@ -636,6 +636,42 @@ function ExportScript.AF.FC_Russian_BarometricAltimeter_late()
|
||||
|
||||
lAltBar = lAltBar - ((9.5 * (760 - lBasicAtmospherePressure)) / 2) -- 9.5 m per 1mmHg difference
|
||||
|
||||
lBasicAtmospherePressure = lBasicAtmospherePressure * 1.33322 -- mmHg to hPa
|
||||
|
||||
-- if lAltBar > 10000 then
|
||||
-- lAltBar_kilometer_needle = lAltBar / 100000
|
||||
-- else
|
||||
lAltBar_kilometer_needle = lAltBar / 10000
|
||||
-- end
|
||||
-- if lAltBar > 1000 then
|
||||
-- lAltBar_meter_needle = lAltBar / 1000
|
||||
-- lAltBar_meter_needle = lAltBar_meter_needle - ExportScript.Tools.round(lAltBar_meter_needle, 0, "floor")
|
||||
-- else
|
||||
lAltBar_meter_needle = lAltBar / 1000
|
||||
-- end
|
||||
lAltBar = lAltBar / 1000
|
||||
|
||||
-- AltBar_kilometer_needle {0.0,1.0}
|
||||
-- AltBar_meter_needle {0.0,1.0}
|
||||
-- BasicAtmospherePressure {947, 1080} hPa
|
||||
-- AltBar_kilometer {0, 99} km
|
||||
|
||||
ExportScript.Tools.SendData(30, string.format("%.4f", lAltBar_kilometer_needle))
|
||||
ExportScript.Tools.SendData(31, string.format("%.4f", lAltBar_meter_needle))
|
||||
ExportScript.Tools.SendData(32, string.format("%04d", ExportScript.Tools.round(lBasicAtmospherePressure, 0, "floor")))
|
||||
ExportScript.Tools.SendData(33, string.format("%02d", ExportScript.Tools.round(lAltBar, 0, "floor")))
|
||||
end
|
||||
|
||||
-- Barometric Altimeter for SU-25A, SU25-T
|
||||
function ExportScript.AF.FC_Russian_BarometricAltimeter_late_special()
|
||||
|
||||
local lBasicAtmospherePressure = LoGetBasicAtmospherePressure() -- BAROMETRIC PRESSURE (mm Hg)
|
||||
local lAltBar = LoGetAltitudeAboveSeaLevel() -- ALTITUDE SEA LEVEL (Meter)
|
||||
local lAltBar_kilometer_needle = 0
|
||||
local lAltBar_meter_needle = 0
|
||||
|
||||
lAltBar = lAltBar - ((9.5 * (760 - lBasicAtmospherePressure)) / 2) -- 9.5 m per 1mmHg difference
|
||||
|
||||
-- if lAltBar > 10000 then
|
||||
-- lAltBar_kilometer_needle = lAltBar / 100000
|
||||
-- else
|
||||
@@ -651,16 +687,16 @@ function ExportScript.AF.FC_Russian_BarometricAltimeter_late()
|
||||
|
||||
-- AltBar_kilometer_needle {0.0,1.0}
|
||||
-- AltBar_meter_needle {0.0,1.0}
|
||||
-- BasicAtmospherePressure {600.0, 800.0}
|
||||
-- AltBar_kilometer {0.0, 99.9}
|
||||
-- BasicAtmospherePressure {600, 780} mm Hg
|
||||
-- AltBar_kilometer {0, 99} km
|
||||
|
||||
ExportScript.Tools.SendData(30, string.format("%.4f", lAltBar_kilometer_needle))
|
||||
ExportScript.Tools.SendData(31, string.format("%.4f", lAltBar_meter_needle))
|
||||
ExportScript.Tools.SendData(32, string.format("%.4f", lBasicAtmospherePressure))
|
||||
ExportScript.Tools.SendData(33, string.format("%.4f", lAltBar))
|
||||
ExportScript.Tools.SendData(32, string.format("%04d", ExportScript.Tools.round(lBasicAtmospherePressure, 0, "floor")))
|
||||
ExportScript.Tools.SendData(33, string.format("%02d", ExportScript.Tools.round(lAltBar, 0, "floor")))
|
||||
end
|
||||
|
||||
-- Barometric Altimeter for SU-27, SU-33
|
||||
-- Barometric Altimeter for SU-27
|
||||
function ExportScript.AF.FC_Russian_BarometricAltimeter_20000()
|
||||
|
||||
local lBasicAtmospherePressure = LoGetBasicAtmospherePressure() -- BAROMETRIC PRESSURE (mm Hg)
|
||||
@@ -1266,6 +1302,13 @@ function ExportScript.AF.FC_Russian_AOA_MiG29()
|
||||
|
||||
local lAoA = LoGetAngleOfAttack() -- ANGLE OF ATTACK AoA (Radian)
|
||||
local lAccelerationUnits = LoGetAccelerationUnits().y -- G-LOAD
|
||||
|
||||
if ExportScript.AF.TmpAOAMiG29GLoadMin == nil then
|
||||
ExportScript.AF.TmpAOAMiG29GLoadMin = 0
|
||||
end
|
||||
if ExportScript.AF.TmpAOAMiG29GLoadMax == nil then
|
||||
ExportScript.AF.TmpAOAMiG29GLoadMax = 0
|
||||
end
|
||||
|
||||
if lAoA > 0.0 then -- positive AOA
|
||||
--[[
|
||||
@@ -1334,9 +1377,18 @@ function ExportScript.AF.FC_Russian_AOA_MiG29()
|
||||
]]
|
||||
lAccelerationUnits = 0.09672619047619047619047619047619 * lAccelerationUnits
|
||||
end
|
||||
|
||||
if lAccelerationUnits > ExportScript.AF.TmpAOAMiG29GLoadMax then
|
||||
ExportScript.AF.TmpAOAMiG29GLoadMax = lAccelerationUnits
|
||||
end
|
||||
if lAccelerationUnits < ExportScript.AF.TmpAOAMiG29GLoadMin then
|
||||
ExportScript.AF.TmpAOAMiG29GLoadMin = lAccelerationUnits
|
||||
end
|
||||
|
||||
ExportScript.Tools.SendData(50, string.format("%.4f", lAoA))
|
||||
ExportScript.Tools.SendData(51, string.format("%.4f", lAccelerationUnits))
|
||||
ExportScript.Tools.SendData(52, string.format("%.4f", ExportScript.AF.TmpAOAMiG29GLoadMin))
|
||||
ExportScript.Tools.SendData(53, string.format("%.4f", ExportScript.AF.TmpAOAMiG29GLoadMax))
|
||||
end
|
||||
|
||||
-- Russian Clock ACS-1 for KA-50, SU-25A, MIG-29A , MIG-29S
|
||||
@@ -1402,7 +1454,7 @@ function ExportScript.AF.FC_Russian_Clock_late()
|
||||
ExportScript.Tools.SendData(55, string.format("%.4f", lCurrentHours))
|
||||
ExportScript.Tools.SendData(56, string.format("%.4f", lCurrentMinutes))
|
||||
ExportScript.Tools.SendData(57, string.format("%.4f", lCurrentSeconds))
|
||||
ExportScript.Tools.SendData(58, lDefaultNull) -- red/white flag
|
||||
--ExportScript.Tools.SendData(58, lDefaultNull) -- red/white flag
|
||||
ExportScript.Tools.SendData(59, string.format("%.4f", lFlightTimeHours))
|
||||
ExportScript.Tools.SendData(60, string.format("%.4f", lFlightTimeMinutes))
|
||||
ExportScript.Tools.SendData(61, string.format("%.4f", lCurrentSeconds))
|
||||
@@ -1456,6 +1508,29 @@ function ExportScript.AF.FC_Russian_EGT_1000gc(egttemp, exportid)
|
||||
ExportScript.Tools.SendData(lExportID, string.format("%.4f", lEGTtemp))
|
||||
end
|
||||
|
||||
-- US Standby Compass for MiG-29A/S/G
|
||||
function ExportScript.AF.FC_Russian_Compass2()
|
||||
local lDefaultNull = 0.0
|
||||
local lHeading = math.deg(LoGetSelfData().Heading) -- HEADING (Radian to Grad)
|
||||
--local lHeading = math.deg(LoGetMagneticYaw()) -- HEADING (Radian to Grad)
|
||||
--ExportScript.Tools.WriteToLog('lHeading: '..ExportScript.Tools.dump(lHeading))
|
||||
local lPitch = LoGetSelfData().Pitch -- Pitch
|
||||
local lBank = LoGetSelfData().Bank -- Bank
|
||||
|
||||
if lHeading <= 180 then
|
||||
lHeading = lHeading / 180
|
||||
else
|
||||
lHeading = (lHeading / 180) - 2
|
||||
end
|
||||
|
||||
lPitch = lPitch / 1.31 -- korrektur der maximal Werte
|
||||
lBank = lBank / 6.26 -- korrektur der maximal Werte
|
||||
|
||||
ExportScript.Tools.SendData(67, string.format("%.4f", lHeading)) -- heading
|
||||
ExportScript.Tools.SendData(68, string.format("%.4f", lPitch)) -- pitch
|
||||
ExportScript.Tools.SendData(69, string.format("%.4f", lBank)) -- bank
|
||||
end
|
||||
|
||||
-- Russian Mechanical Device Indicator for SU-25A+T
|
||||
function ExportScript.AF.FC_Russian_MDI_SU25(FunctionTyp)
|
||||
local lFunctionTyp = FunctionTyp or "Ikarus"
|
||||
@@ -1575,7 +1650,7 @@ function ExportScript.AF.FC_Russian_FlareChaff_MiG29(FunctionTyp)
|
||||
end
|
||||
|
||||
if ExportScript.Config.IkarusExport and lFunctionTyp == "Ikarus" then
|
||||
ExportScript.Tools.SendDataDAC(800, lSnares.chaff + lSnares.flare )
|
||||
ExportScript.Tools.SendData(800, lSnares.chaff + lSnares.flare )
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1587,6 +1662,20 @@ function ExportScript.AF.FuelQuantityIndicator_MiG29(FunctionTyp)
|
||||
if lEngineInfo == nil then
|
||||
return
|
||||
end
|
||||
|
||||
local lPayloadInfo = LoGetPayloadInfo()
|
||||
local lRange = 0
|
||||
local lStation5Tank = false
|
||||
local lStation6Tank = false
|
||||
local lStation7Tank = false
|
||||
|
||||
if lEngineInfo ~= nil then
|
||||
lStation5Tank = (lPayloadInfo.Stations[5].CLSID == "{C0FF4842-FBAC-11d5-9190-00A0249B6F00}" and true or false)
|
||||
lStation6Tank = (lPayloadInfo.Stations[6].CLSID == "{C0FF4842-FBAC-11d5-9190-00A0249B6F00}" and true or false)
|
||||
lStation7Tank = (lPayloadInfo.Stations[7].CLSID == "{2BEC576B-CDF5-4B7F-961F-B0FA4312B841}" and true or false)
|
||||
end
|
||||
|
||||
--ExportScript.Tools.WriteToLog('lStation7Tank: '..ExportScript.Tools.dump(lStation7Tank))
|
||||
--ExportScript.Tools.WriteToLog('lEngineInfo: '..ExportScript.Tools.dump(lEngineInfo))
|
||||
--[[
|
||||
[fuel_external] = number: "0"
|
||||
@@ -1617,89 +1706,88 @@ function ExportScript.AF.FuelQuantityIndicator_MiG29(FunctionTyp)
|
||||
local lTotalFuel = lEngineInfo.fuel_internal + lEngineInfo.fuel_external
|
||||
--ExportScript.Tools.WriteToLog('lTotalFuel: '..ExportScript.Tools.dump(lTotalFuel))
|
||||
|
||||
-- Fuel value correction, difference 3D cockpit gauges and export value
|
||||
-- 3000kg = 2740 1,10
|
||||
-- 2500kg = 2260 <- Lamp 2 1,11
|
||||
-- 1000kg = 890 1,12
|
||||
-- 800kg = 700 <- Lamp 3 1,14
|
||||
-- 650kg = 550 <- Lamp 4 1,18
|
||||
if lTotalFuel > 2740 then
|
||||
lTotalFuel = lTotalFuel * 1.1
|
||||
elseif lTotalFuel > 2260 and lTotalFuel < 2740 then
|
||||
lTotalFuel = lTotalFuel * 1.11
|
||||
elseif lTotalFuel > 890 and lTotalFuel < 2260 then
|
||||
lTotalFuel = lTotalFuel * 1.12
|
||||
elseif lTotalFuel > 700 and lTotalFuel < 290 then
|
||||
lTotalFuel = lTotalFuel * 1.14
|
||||
elseif lTotalFuel > 0 and lTotalFuel < 700 then
|
||||
lTotalFuel = lTotalFuel * 1.18
|
||||
end
|
||||
-- Internal Fuel: 3370
|
||||
-- max external Fuel: 2930
|
||||
-- max totak Fuel: 6300
|
||||
-- 1400 Liter center tank = 1163kg, station 7, CLSID {2BEC576B-CDF5-4B7F-961F-B0FA4312B841}
|
||||
-- 1150 Liter tank = 891kg, station 5,6, CLSID {C0FF4842-FBAC-11d5-9190-00A0249B6F00}
|
||||
--lEngineInfo.fuel_external < 1770 -- Tank warning 1
|
||||
--lEngineInfo.fuel_external == 0 -- Tank warning 2
|
||||
--lEngineInfo.fuel_internal < 2500 -- Tank warning 3
|
||||
--lEngineInfo.fuel_internal < 800 -- Tank warning 4
|
||||
--lEngineInfo.fuel_internal < 650 -- Tank warning 5
|
||||
|
||||
if ExportScript.Config.DACExport and lFunctionTyp == "DAC" then
|
||||
ExportScript.Tools.SendDataDAC("300", string.format("%d", ExportScript.Tools.round(((lTotalFuel) / 10), 0, "ceil") * 10) ) -- total fuel in kg
|
||||
|
||||
ExportScript.Tools.SendDataDAC("304", (lTotalFuel < 3800.0 and 1 or 0) ) -- Tank warning 1
|
||||
ExportScript.Tools.SendDataDAC("305", (lTotalFuel < 2550.0 and 1 or 0) ) -- Tank warning 2
|
||||
ExportScript.Tools.SendDataDAC("306", (lTotalFuel < 800.0 and 1 or 0) ) -- Tank warning 3
|
||||
ExportScript.Tools.SendDataDAC("307", (lTotalFuel < 650.0 and 1 or 0) ) -- Tank warning 4
|
||||
if lStation7Tank and (lStation5Tank or lStation6Tank) then
|
||||
ExportScript.Tools.SendDataDAC("304", (lEngineInfo.fuel_external < 1770.0 and 1 or 0) ) -- Tank warning 1
|
||||
ExportScript.Tools.SendDataDAC("305", (lEngineInfo.fuel_external < 1.0 and 1 or 0) ) -- Tank warning 2
|
||||
elseif lStation7Tank and not(lStation5Tank or lStation6Tank) then
|
||||
ExportScript.Tools.SendDataDAC("304", (lEngineInfo.fuel_external < 1.0 and 1 or 0) ) -- Tank warning 1
|
||||
ExportScript.Tools.SendDataDAC("305", 0 ) -- Tank warning 2
|
||||
end
|
||||
ExportScript.Tools.SendDataDAC("306", (lEngineInfo.fuel_internal < 2500.0 and 1 or 0) ) -- Tank warning 3
|
||||
ExportScript.Tools.SendDataDAC("307", (lEngineInfo.fuel_internal < 800.0 and 1 or 0) ) -- Tank warning 4
|
||||
ExportScript.Tools.SendDataDAC("308", (lEngineInfo.fuel_internal < 650.0 and 1 or 0) ) -- Tank warning 5
|
||||
end
|
||||
|
||||
if ExportScript.Config.IkarusExport and lFunctionTyp == "Ikarus" then
|
||||
local lTotalFuel_5_4 = 0
|
||||
local lTotalFuel_4_0 = 0
|
||||
local lTotalFuel_7_5 = 0
|
||||
local lTotalFuel_5_0 = 0
|
||||
|
||||
if lTotalFuel < 5500 then
|
||||
if lTotalFuel > 4000 then
|
||||
--[[
|
||||
y_min = 0.0 -- minimaler Ausgabewert
|
||||
y_max = 1.0 -- maximaler Ausgabewert
|
||||
x_min = 4000 -- minimaler Eingangswert
|
||||
x_max = 5500 -- maximaler Eingangswert
|
||||
if lTotalFuel > 5000 then -- internal and external
|
||||
--[[
|
||||
y_min = 0.0 -- minimaler Ausgabewert
|
||||
y_max = 1.0 -- maximaler Ausgabewert
|
||||
x_min = 5000 -- minimaler Eingangswert
|
||||
x_max = 7500 -- maximaler Eingangswert
|
||||
|
||||
x = 5000 -- aktueller Eingangswert
|
||||
x = 6300 -- aktueller Eingangswert
|
||||
|
||||
d_y = 1 -- Delta Ausgabewerte (y_max - y_min)
|
||||
d_x = 1500 -- Delta Eingangswerte (x_max - x_min)
|
||||
m = 0.00066667 -- Steigung der linearen Funktion (d_y / d_x)
|
||||
n = -2.666685 -- Schnittpunkt der Funktion mit y-Achse (y_max - m * x_max)
|
||||
d_y = 1 -- Delta Ausgabewerte (y_max - y_min)
|
||||
d_x = 2500 -- Delta Eingangswerte (x_max - x_min)
|
||||
m = 0.0004 -- Steigung der linearen Funktion (d_y / d_x)
|
||||
n = -2.0 -- Schnittpunkt der Funktion mit y-Achse (y_max - m * x_max)
|
||||
|
||||
y = 0.666665 -- Ergebnis (m * x + n)
|
||||
]]
|
||||
lTotalFuel_5_4 = 0.00066667 * lTotalFuel + -2.666685
|
||||
else
|
||||
lTotalFuel_5_4 = 0.0
|
||||
end
|
||||
y = 0.52 -- Ergebnis (m * x + n)
|
||||
]]
|
||||
lTotalFuel_7_5 = 0.0004 * lTotalFuel + -2.0
|
||||
lTotalFuel_5_0 = 1
|
||||
else
|
||||
lTotalFuel_5_4 = 1.0
|
||||
end
|
||||
if lTotalFuel < 4000 then
|
||||
--[[
|
||||
y_min = 0.0 -- minimaler Ausgabewert
|
||||
y_max = 1.0 -- maximaler Ausgabewert
|
||||
x_min = 0 -- minimaler Eingangswert
|
||||
x_max = 4000 -- maximaler Eingangswert
|
||||
x_max = 5000 -- maximaler Eingangswert
|
||||
|
||||
x = 3000 -- aktueller Eingangswert
|
||||
x = 3500 -- aktueller Eingangswert
|
||||
|
||||
d_y = 1.0 -- Delta Ausgabewerte (y_max - y_min)
|
||||
d_x = 4000 -- Delta Eingangswerte (x_max - x_min)
|
||||
m = 0.00025 -- Steigung der linearen Funktion (d_y / d_x)
|
||||
d_y = 1 -- Delta Ausgabewerte (y_max - y_min)
|
||||
d_x = 5000 -- Delta Eingangswerte (x_max - x_min)
|
||||
m = 0.0002 -- Steigung der linearen Funktion (d_y / d_x)
|
||||
n = 0.0 -- Schnittpunkt der Funktion mit y-Achse (y_max - m * x_max)
|
||||
|
||||
y = 0.75 -- Ergebnis (m * x + n)
|
||||
y = 0.52 -- Ergebnis (m * x + n)
|
||||
]]
|
||||
lTotalFuel_4_0 = 0.00025 * lTotalFuel
|
||||
else
|
||||
lTotalFuel_4_0 = 1.0
|
||||
lTotalFuel_5_0 = 0.0002 * lTotalFuel + 0
|
||||
lTotalFuel_7_5 = 0
|
||||
end
|
||||
|
||||
ExportScript.Tools.SendData(301, string.format("%0.4f", lTotalFuel_5_4) )
|
||||
ExportScript.Tools.SendData(302, string.format("%0.4f", lTotalFuel_4_0) )
|
||||
ExportScript.Tools.SendData(301, string.format("%0.4f", lTotalFuel_7_5) )
|
||||
ExportScript.Tools.SendData(302, string.format("%0.4f", lTotalFuel_5_0) )
|
||||
|
||||
ExportScript.Tools.SendData(304, (lTotalFuel < 3800.0 and 1 or 0) ) -- Tank warning 1
|
||||
ExportScript.Tools.SendData(305, (lTotalFuel < 2550.0 and 1 or 0) ) -- Tank warning 2
|
||||
ExportScript.Tools.SendData(306, (lTotalFuel < 800.0 and 1 or 0) ) -- Tank warning 3
|
||||
ExportScript.Tools.SendData(307, (lTotalFuel < 650.0 and 1 or 0) ) -- Tank warning 4
|
||||
if lStation7Tank and (lStation5Tank or lStation6Tank) then
|
||||
ExportScript.Tools.SendData(304, (lEngineInfo.fuel_external < 1770.0 and 1 or 0) ) -- Tank warning 1
|
||||
ExportScript.Tools.SendData(305, (lEngineInfo.fuel_external < 1.0 and 1 or 0) ) -- Tank warning 2
|
||||
elseif lStation7Tank and not(lStation5Tank or lStation6Tank) then
|
||||
ExportScript.Tools.SendData(304, (lEngineInfo.fuel_external < 1.0 and 1 or 0) ) -- Tank warning 1
|
||||
ExportScript.Tools.SendData(305, 0 ) -- Tank warning 2
|
||||
end
|
||||
ExportScript.Tools.SendData(306, (lEngineInfo.fuel_internal < 2500.0 and 1 or 0) ) -- Tank warning 3
|
||||
ExportScript.Tools.SendData(307, (lEngineInfo.fuel_internal < 800.0 and 1 or 0) ) -- Tank warning 4
|
||||
ExportScript.Tools.SendData(308, (lEngineInfo.fuel_internal < 650.0 and 1 or 0) ) -- Tank warning 4
|
||||
ExportScript.Tools.SendData(303, lRange ) -- Range in km
|
||||
end
|
||||
end
|
||||
|
||||
@@ -2133,6 +2221,8 @@ function ExportScript.AF.FC_US_Compass()
|
||||
local lHeading = math.deg(LoGetSelfData().Heading) -- HEADING (Radian to Grad)
|
||||
--local lHeading = math.deg(LoGetMagneticYaw()) -- HEADING (Radian to Grad)
|
||||
--lHeading = 360 - lHeading -- muss umgerechnet werden??
|
||||
local lPitch = LoGetSelfData().Pitch -- Pitch
|
||||
local lBank = LoGetSelfData().Bank -- Bank
|
||||
|
||||
--[[
|
||||
y_min = 1.0 -- minimaler Ausgabewert
|
||||
@@ -2150,9 +2240,9 @@ function ExportScript.AF.FC_US_Compass()
|
||||
]]
|
||||
lHeading = -0.00555555555555555555555555555556 * lHeading + 1.0
|
||||
|
||||
ExportScript.Tools.SendData(31, string.format("%.4f", lHeading)) -- heading
|
||||
ExportScript.Tools.SendData(32, string.format("%.4f", lDefaultNull)) -- pitch
|
||||
ExportScript.Tools.SendData(33, string.format("%.4f", lDefaultNull)) -- bank
|
||||
ExportScript.Tools.SendData(31, string.format("%.4f", lHeading)) -- heading
|
||||
ExportScript.Tools.SendData(32, string.format("%.4f", lDefaultNull)) -- bank
|
||||
ExportScript.Tools.SendData(33, string.format("%.4f", lDefaultNull)) -- pitch
|
||||
end
|
||||
|
||||
-- US F-15C Exaust Gas Temperature
|
||||
|
||||
@@ -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 @@
|
||||
-- MiG-29A Export
|
||||
|
||||
ExportScript.FoundFCModule = true
|
||||
ExportScript.Version.MiG29A = "1.2.0"
|
||||
ExportScript.Version.MiG29A = "1.2.1"
|
||||
|
||||
-- auxiliary function
|
||||
dofile(ExportScript.Config.ExportModulePath.."FC_AuxiliaryFuntions.lua")
|
||||
@@ -105,6 +105,9 @@ function ExportScript.ProcessIkarusFCHighImportanceConfig()
|
||||
|
||||
-- Machmeter
|
||||
ExportScript.AF.FC_Russian_Mach_MiG29()
|
||||
|
||||
-- Magnetic Compass
|
||||
ExportScript.AF.FC_Russian_Compass2()
|
||||
else
|
||||
ExportScript.Tools.WriteToLog("Unknown FC Error, no LoGetSelfData.")
|
||||
end
|
||||
@@ -145,21 +148,38 @@ function ExportScript.ProcessIkarusFCLowImportanceConfig()
|
||||
|
||||
-- Hydraulic Pressure Right
|
||||
ExportScript.AF.FC_OneNeedleGauge(lEngineInfo.HydraulicPressure.right, 240, 86)
|
||||
|
||||
-- Hydraulic Pressure Left
|
||||
ExportScript.AF.FC_OneNeedleGauge(lEngineInfo.HydraulicPressure.left, 240, 87)
|
||||
|
||||
-- Hydraulic Pressure Right
|
||||
ExportScript.AF.FC_OneNeedleGauge(lEngineInfo.HydraulicPressure.right, 240, 89)
|
||||
end
|
||||
|
||||
-- Engine Lamps, Start and Afterburner
|
||||
ExportScript.AF.FC_EngineLamps_MiG29(lFunctionTyp)
|
||||
|
||||
-- Oxygen Pressure Left
|
||||
--ExportScript.AF.FC_OneNeedleGauge(lMechInfo.wheelbrakes.value, 240, 89)
|
||||
|
||||
-- Oxygen Pressure Center
|
||||
--ExportScript.AF.FC_OneNeedleGauge(lMechInfo.wheelbrakes.value, 240, 90)
|
||||
|
||||
-- Oxygen Pressure Right
|
||||
--ExportScript.AF.FC_OneNeedleGauge(lMechInfo.wheelbrakes.value, 240, 91)
|
||||
|
||||
local lMechInfo = LoGetMechInfo() -- mechanical components, e.g. Flaps, Wheelbrakes,...
|
||||
if lMechInfo ~= nil then
|
||||
-- Wheelbrakes Hydraulic Pressure Left
|
||||
ExportScript.AF.FC_OneNeedleGauge(lMechInfo.wheelbrakes.value, 240, 87)
|
||||
ExportScript.AF.FC_OneNeedleGauge(lMechInfo.wheelbrakes.value, 16, 92)
|
||||
|
||||
-- Wheelbrakes Hydraulic Pressure Right
|
||||
ExportScript.AF.FC_OneNeedleGauge(lMechInfo.wheelbrakes.value, 240, 88)
|
||||
ExportScript.AF.FC_OneNeedleGauge(lMechInfo.wheelbrakes.value, 16, 93)
|
||||
end
|
||||
|
||||
ExportScript.AF.FC_Russian_FlareChaff_MiG29(lFunctionTyp)
|
||||
|
||||
--[[
|
||||
--[[
|
||||
local lPayloadInfo = LoGetPayloadInfo()
|
||||
ExportScript.Tools.WriteToLog('lPayloadInfo: '..ExportScript.Tools.dump(lPayloadInfo))
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- MiG-29G Export
|
||||
|
||||
ExportScript.FoundFCModule = true
|
||||
ExportScript.Version.MiG29G = "1.2.0"
|
||||
ExportScript.Version.MiG29G = "1.2.1"
|
||||
|
||||
-- auxiliary function
|
||||
dofile(ExportScript.Config.ExportModulePath.."FC_AuxiliaryFuntions.lua")
|
||||
@@ -99,12 +99,15 @@ function ExportScript.ProcessIkarusFCHighImportanceConfig()
|
||||
|
||||
-- Right Jet Engine Turbine Temperature Indicator (EngineTemp, ExportID)
|
||||
ExportScript.AF.FC_Russian_EGT_1000gc(lEngineTempRight, 71)
|
||||
|
||||
|
||||
-- Clock from Ka-50
|
||||
ExportScript.AF.FC_Russian_Clock_late()
|
||||
|
||||
-- Machmeter
|
||||
ExportScript.AF.FC_Russian_Mach_MiG29()
|
||||
|
||||
-- Magnetic Compass
|
||||
ExportScript.AF.FC_Russian_Compass2()
|
||||
else
|
||||
ExportScript.Tools.WriteToLog("Unknown FC Error, no LoGetSelfData.")
|
||||
end
|
||||
@@ -145,21 +148,38 @@ function ExportScript.ProcessIkarusFCLowImportanceConfig()
|
||||
|
||||
-- Hydraulic Pressure Right
|
||||
ExportScript.AF.FC_OneNeedleGauge(lEngineInfo.HydraulicPressure.right, 240, 86)
|
||||
|
||||
-- Hydraulic Pressure Left
|
||||
ExportScript.AF.FC_OneNeedleGauge(lEngineInfo.HydraulicPressure.left, 240, 87)
|
||||
|
||||
-- Hydraulic Pressure Right
|
||||
ExportScript.AF.FC_OneNeedleGauge(lEngineInfo.HydraulicPressure.right, 240, 89)
|
||||
end
|
||||
|
||||
-- Engine Lamps, Start and Afterburner
|
||||
ExportScript.AF.FC_EngineLamps_MiG29(lFunctionTyp)
|
||||
|
||||
-- Oxygen Pressure Left
|
||||
--ExportScript.AF.FC_OneNeedleGauge(lMechInfo.wheelbrakes.value, 240, 89)
|
||||
|
||||
-- Oxygen Pressure Center
|
||||
--ExportScript.AF.FC_OneNeedleGauge(lMechInfo.wheelbrakes.value, 240, 90)
|
||||
|
||||
-- Oxygen Pressure Right
|
||||
--ExportScript.AF.FC_OneNeedleGauge(lMechInfo.wheelbrakes.value, 240, 91)
|
||||
|
||||
local lMechInfo = LoGetMechInfo() -- mechanical components, e.g. Flaps, Wheelbrakes,...
|
||||
if lMechInfo ~= nil then
|
||||
-- Wheelbrakes Hydraulic Pressure Left
|
||||
ExportScript.AF.FC_OneNeedleGauge(lMechInfo.wheelbrakes.value, 240, 87)
|
||||
ExportScript.AF.FC_OneNeedleGauge(lMechInfo.wheelbrakes.value, 16, 92)
|
||||
|
||||
-- Wheelbrakes Hydraulic Pressure Right
|
||||
ExportScript.AF.FC_OneNeedleGauge(lMechInfo.wheelbrakes.value, 240, 88)
|
||||
ExportScript.AF.FC_OneNeedleGauge(lMechInfo.wheelbrakes.value, 16, 93)
|
||||
end
|
||||
|
||||
ExportScript.AF.FC_Russian_FlareChaff_MiG29(lFunctionTyp)
|
||||
|
||||
--[[
|
||||
--[[
|
||||
local lPayloadInfo = LoGetPayloadInfo()
|
||||
ExportScript.Tools.WriteToLog('lPayloadInfo: '..ExportScript.Tools.dump(lPayloadInfo))
|
||||
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
-- MiG-29S Export
|
||||
|
||||
ExportScript.FoundFCModule = true
|
||||
ExportScript.Version.MiG29S = "1.2.0"
|
||||
ExportScript.Version.MiG29S = "1.2.1"
|
||||
|
||||
-- auxiliary function
|
||||
dofile(ExportScript.Config.ExportModulePath.."FC_AuxiliaryFuntions.lua")
|
||||
@@ -99,12 +99,15 @@ function ExportScript.ProcessIkarusFCHighImportanceConfig()
|
||||
|
||||
-- Right Jet Engine Turbine Temperature Indicator (EngineTemp, ExportID)
|
||||
ExportScript.AF.FC_Russian_EGT_1000gc(lEngineTempRight, 71)
|
||||
|
||||
|
||||
-- Clock from Ka-50
|
||||
ExportScript.AF.FC_Russian_Clock_late()
|
||||
|
||||
-- Machmeter
|
||||
ExportScript.AF.FC_Russian_Mach_MiG29()
|
||||
|
||||
-- Magnetic Compass
|
||||
ExportScript.AF.FC_Russian_Compass2()
|
||||
else
|
||||
ExportScript.Tools.WriteToLog("Unknown FC Error, no LoGetSelfData.")
|
||||
end
|
||||
@@ -145,21 +148,38 @@ function ExportScript.ProcessIkarusFCLowImportanceConfig()
|
||||
|
||||
-- Hydraulic Pressure Right
|
||||
ExportScript.AF.FC_OneNeedleGauge(lEngineInfo.HydraulicPressure.right, 240, 86)
|
||||
|
||||
-- Hydraulic Pressure Left
|
||||
ExportScript.AF.FC_OneNeedleGauge(lEngineInfo.HydraulicPressure.left, 240, 87)
|
||||
|
||||
-- Hydraulic Pressure Right
|
||||
ExportScript.AF.FC_OneNeedleGauge(lEngineInfo.HydraulicPressure.right, 240, 89)
|
||||
end
|
||||
|
||||
-- Engine Lamps, Start and Afterburner
|
||||
ExportScript.AF.FC_EngineLamps_MiG29(lFunctionTyp)
|
||||
|
||||
-- Oxygen Pressure Left
|
||||
--ExportScript.AF.FC_OneNeedleGauge(lMechInfo.wheelbrakes.value, 240, 89)
|
||||
|
||||
-- Oxygen Pressure Center
|
||||
--ExportScript.AF.FC_OneNeedleGauge(lMechInfo.wheelbrakes.value, 240, 90)
|
||||
|
||||
-- Oxygen Pressure Right
|
||||
--ExportScript.AF.FC_OneNeedleGauge(lMechInfo.wheelbrakes.value, 240, 91)
|
||||
|
||||
local lMechInfo = LoGetMechInfo() -- mechanical components, e.g. Flaps, Wheelbrakes,...
|
||||
if lMechInfo ~= nil then
|
||||
-- Wheelbrakes Hydraulic Pressure Left
|
||||
ExportScript.AF.FC_OneNeedleGauge(lMechInfo.wheelbrakes.value, 240, 87)
|
||||
ExportScript.AF.FC_OneNeedleGauge(lMechInfo.wheelbrakes.value, 16, 92)
|
||||
|
||||
-- Wheelbrakes Hydraulic Pressure Right
|
||||
ExportScript.AF.FC_OneNeedleGauge(lMechInfo.wheelbrakes.value, 240, 88)
|
||||
ExportScript.AF.FC_OneNeedleGauge(lMechInfo.wheelbrakes.value, 16, 93)
|
||||
end
|
||||
|
||||
ExportScript.AF.FC_Russian_FlareChaff_MiG29(lFunctionTyp)
|
||||
|
||||
--[[
|
||||
--[[
|
||||
local lPayloadInfo = LoGetPayloadInfo()
|
||||
ExportScript.Tools.WriteToLog('lPayloadInfo: '..ExportScript.Tools.dump(lPayloadInfo))
|
||||
|
||||
|
||||
@@ -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 =
|
||||
{
|
||||
|
||||
@@ -0,0 +1,268 @@
|
||||
-- Spitfire LFMk IX CW
|
||||
|
||||
ExportScript.FoundDCSModule = true
|
||||
ExportScript.Version.SpitfireLFMkIXCW = "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
|
||||
]]
|
||||
-- Flight Instruments
|
||||
[11] = "%.4f", -- OxygenDeliveryGauge {0.0, 0.4}{0.0, 4000.0}
|
||||
[12] = "%.4f", -- OxygenSupplyGauge
|
||||
[17] = "%.4f", -- TrimGauge {-1.0, 1.0}
|
||||
[18] = "%.4f", -- PneumaticPressureGauge {0.0, 1.0}{0.0, 600.0}
|
||||
[19] = "%.4f", -- Left wheel brake pressure gauge {0.0, 1.0}{0.0, 130.0}
|
||||
[20] = "%.4f", -- Right wheel brake pressure gauge {0.0, 1.0}{0.0, 130.0}
|
||||
[21] = "%.4f", -- Airspeed gauge {0.0, 0.5}{0.0, 500.0}
|
||||
[23] = "%.4f", -- Attitude Horizon Bank {-1.0, 1.0}
|
||||
[24] = "%.4f", -- Attitude Horizon Pitch {-1.0, 1.0}
|
||||
[25] = "%.4f", -- Variometer gauge {-1.0, 1.0}{-4000.0, 4000.0}
|
||||
[26] = "%.4f", -- Altimeter gauge Hundreds {0.0, 1.0}{0.0, 10.0}
|
||||
[27] = "%.4f", -- Altimeter gauge Thousands {0.0, 1.0}{0.0, 10.0}
|
||||
[28] = "%.4f", -- Altimeter gauge Tens Thousabds {0.0, 1.0}{0.0, 10.0}
|
||||
[29] = "%.4f", -- Altimeter gauge Pressure {0.0, 1.0}{800.0, 1050.0}
|
||||
[31] = "%.4f", -- DI gauge {0.0, 1.0}{0.0, 2.0 * 3.1415926}
|
||||
[33] = "%.4f", -- Sideslip gauge {-1.0, 1.0}
|
||||
[34] = "%.4f", -- Turn gauge {-1.0, 1.0}
|
||||
[35] = "%.4f", -- Voltmeter {0.0, 1.0}{0.0, 20.0}
|
||||
[37] = "%.4f", -- Tachometer {0.0, 0.5}{0.0, 5000.0}
|
||||
[39] = "%.4f", -- Boost gauge {0.0, 1.0}{-7.0, 24.0}
|
||||
[40] = "%.4f", -- Oil pressure gauge {0.0, 1.0}{0.0, 150.0}
|
||||
[41] = "%.4f", -- Oil temperature gauge {0.0, 1.0}{0.0, 100.0}
|
||||
[42] = "%.4f", -- Radiator temperature gauge {0.0, 0.7}{0.0, 140.0}
|
||||
[43] = "%.4f", -- Fuel contents gauge {0.0, 0.1, 1.0}{-1.0, 0.0, 37.0}
|
||||
[51] = "%.4f", -- Clock Hour
|
||||
[52] = "%.4f", -- Clock Minute
|
||||
[53] = "%.4f", -- Clock Second
|
||||
[71] = "%.4f", -- Magnetic compass CompassRoseRoll {-1.0, 1.0}{-20.0, 20.0}
|
||||
[72] = "%.4f", -- Magnetic compass CompassRosePitch {-1.0, 1.0}{-20.0, 20.0}
|
||||
[73] = "%.4f", -- Magnetic compass CompassHeading{0.0, 1.0}
|
||||
[120] = "%1d", -- Radio Lamp A
|
||||
[121] = "%1d", -- Radio Lamp B
|
||||
[122] = "%1d", -- Radio Lamp C
|
||||
[123] = "%1d", -- Radio Lamp D
|
||||
[124] = "%1d", -- Radio Lamp R
|
||||
--[131] = "%1d", -- UC_DOWN_C ???
|
||||
[49] = "%1d", -- Gear Lamp Down
|
||||
[48] = "%1d", -- Gear Lamp Up
|
||||
--[62] = "%.4f", -- ???
|
||||
--[63] = "%.4f", -- ???
|
||||
--[59] = "%.4f", -- ???
|
||||
--[45] = "%.4f" -- GUNSIGHT_RANGE ???
|
||||
}
|
||||
ExportScript.ConfigArguments =
|
||||
{
|
||||
--[[
|
||||
arguments for export in low tick interval
|
||||
based on "clickabledata.lua"
|
||||
]]
|
||||
[13] = "%1d", -- Oxygen Apparatus Controls Valve
|
||||
-- Main Panel
|
||||
[30] = "%.1f", -- Altimeter (Axis) {0.0, 1.0} in 0.1 Steps
|
||||
[32] = "%.1f", -- DI (Axis) {0.0, 1.0} in 0.1 Steps
|
||||
[44] = "%1d", -- Fuel Gauge Button
|
||||
[46] = "%1d", -- Nav. Lights Toggle
|
||||
[47] = "%1d", -- Flaps Lever
|
||||
[50] = "%1d", -- U/C Indicator Blind
|
||||
[54] = "%1d", -- Clock Setter Pinion
|
||||
[55] = "%.1f", -- Clock Setter Pinion (Axis) {0.0, 1.0} in 0.1 Steps
|
||||
[56] = "%1d", -- Magnetos Toggles 1
|
||||
[57] = "%1d", -- Magnetos Toggles 2
|
||||
[58] = "%1d", -- Supercharger Mode Toggle
|
||||
[60] = "%.1f", -- Illumination Controls Left (Axis) {0.0, 1.0} in 0.1 Steps
|
||||
[61] = "%.1f", -- Illumination Controls Right (Axis) {0.0, 1.0} in 0.1 Steps
|
||||
[65] = "%1d", -- Starter Button
|
||||
[67] = "%1d", -- Booster Coil Button
|
||||
[69] = "%1d", -- Primer Pump
|
||||
[68] = "%.2f", -- Primer Pump (Axis) {0.0, 1.0} in 0.04 Steps
|
||||
[70] = "%1d", -- Tank Pressurizer Lever
|
||||
[74] = "%.4f", -- Magnetic Compass Ring (Axis) {0.0, 1.0} in 0.0333 Steps
|
||||
-- Gun Sight and Tertiary Weapons Controls
|
||||
[77] = "%.2f", -- Gun Sight Setter Rings Range (Axis) {0.0, 1.0} in 0.15 Steps
|
||||
[78] = "%.2f", -- Gun Sight Setter Rings Base (Axis) {0.0, 1.0} in 0.15 Steps
|
||||
[79] = "%1d", -- Gun Sight Tint Screen
|
||||
[80] = "%1d", -- Gun Sight Master Switch
|
||||
[81] = "%.1f", -- Gun Sight Dimmer (Axis) {0.0, 1.0} in 0.1 Steps
|
||||
-- Port Wall
|
||||
[145] = "%.2f", -- Elevator Trim Wheel (Axis) {-1.0, 1.0} in 0.01 Steps
|
||||
[146] = "%.1f", -- Rudder Trim Wheel (Axis) {-1.0, 1.0} in 0.1 Steps
|
||||
-- Radio Remote Channel Switcher
|
||||
[115] = "%1d", -- Off Button
|
||||
[116] = "%1d", -- A Button
|
||||
[117] = "%1d", -- B Button
|
||||
[118] = "%1d", -- C Button
|
||||
[119] = "%1d", -- D Button
|
||||
[125] = "%1d", -- Dimmer Toggle
|
||||
[155] = "%1d", -- Transmit Lock Toggle
|
||||
[156] = "%1d", -- Mode Selector
|
||||
-- Throttle Quadrant
|
||||
[126] = "%.1f", -- Throttle Lever (Axis) {-1.0, 1.0} in 0.1 Steps
|
||||
[128] = "%1d", -- Bomb Drop Button
|
||||
[129] = "%.1f", -- Airscrew Lever (Axis) {-1.0, 1.0} in 0.1 Steps
|
||||
[130] = "%1d", -- Mix Cut-Off Lever
|
||||
[131] = "%1d", -- U/C Indicator Cut-Off Toggle
|
||||
--
|
||||
[133] = "%1d", -- Radiator Control Toggle
|
||||
[134] = "%1d", -- Pitot Heater Toggle
|
||||
[135] = "%1d", -- Fuel Pump Toggle
|
||||
[137] = "%1d", -- Carb. Air Control Lever
|
||||
[158] = "%1d", -- Oil Diluter Button
|
||||
[160] = "%1d", -- Supercharger Mode Test Button
|
||||
[162] = "%1d", -- Radiator Flap Test Button
|
||||
-- Stbd. Wall
|
||||
[87] = "%1d", -- De-Icer Lever
|
||||
[88] = "%1d", -- U/C Emergency Release Lever
|
||||
[90] = "%1d", -- Wobble Type Fuel Pump
|
||||
-- Wobble Type Fuel Pump
|
||||
[92] = "%.1f", -- Upward Lamp Mode Selector {0.0,0.5,1.0}
|
||||
[93] = "%.1f", -- Downward Lamp Mode Selector {0.0,0.5,1.0}
|
||||
[94] = "%1d", -- Morse Key
|
||||
--
|
||||
[148] = "%1d", -- U/C Lever
|
||||
-- I.F.F. Control Box
|
||||
[106] = "%1d", -- I.F.F. Upper Toggle (Type B)
|
||||
[107] = "%1d", -- I.F.F. Lower Toggle (Type D)
|
||||
[109] = "%1d", -- I.F.F. Fore Button (0)
|
||||
[110] = "%1d", -- I.F.F. Aft Button (1)
|
||||
-- Fuel Cocks & Tertiary
|
||||
[100] = "%1d", -- Fuel Cock
|
||||
[98] = "%1d", -- Droptank Cock
|
||||
[99] = "%1d", -- Droptank Release Handle
|
||||
-- Canopy Controls
|
||||
[149] = "%1d", -- Cockpit Open/Close Control
|
||||
[140] = "%1d", -- Cockpit Jettison Pull Ball
|
||||
[147] = "%1d" -- Cockpit Side Door Open/Close Control
|
||||
}
|
||||
|
||||
-----------------------------
|
||||
-- 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))
|
||||
]]
|
||||
-- Cockpit Light
|
||||
ExportScript.Tools.IkarusCockpitLights(mainPanelDevice, {163, 62, 63})
|
||||
-- Gauges light, left panel light, right panel light
|
||||
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
|
||||
]]
|
||||
|
||||
-- VHF_Radio
|
||||
local lVHF_Radio = GetDevice(15)
|
||||
if lVHF_Radio:is_on() then
|
||||
ExportScript.Tools.SendDataDAC("2000", string.format("%7.3f", lVHF_Radio:get_frequency()/1000000))
|
||||
ExportScript.Tools.SendDataDAC("2000", ExportScript.Tools.RoundFreqeuncy(lVHF_Radio:get_frequency()/1000000))
|
||||
else
|
||||
ExportScript.Tools.SendDataDAC("2000", " ")
|
||||
end
|
||||
|
||||
--[[
|
||||
[115] = "%1d", -- Off Button
|
||||
[116] = "%1d", -- A Button
|
||||
[117] = "%1d", -- B Button
|
||||
[118] = "%1d", -- C Button
|
||||
[119] = "%1d", -- D Button]]
|
||||
local lVHF_Radio_PRESET = ""
|
||||
if mainPanelDevice:get_argument_value(116) > 0.8 then
|
||||
lVHF_Radio_PRESET = 1
|
||||
elseif mainPanelDevice:get_argument_value(117) > 0.8 then
|
||||
lVHF_Radio_PRESET = 2
|
||||
elseif mainPanelDevice:get_argument_value(118) > 0.8 then
|
||||
lVHF_Radio_PRESET = 3
|
||||
elseif mainPanelDevice:get_argument_value(119) > 0.8 then
|
||||
lVHF_Radio_PRESET = 4
|
||||
else
|
||||
lVHF_Radio_PRESET = ""
|
||||
end
|
||||
ExportScript.Tools.SendDataDAC("2001", lVHF_Radio_PRESET)
|
||||
end
|
||||
|
||||
-----------------------------
|
||||
-- Custom functions --
|
||||
-----------------------------
|
||||
@@ -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")
|
||||
@@ -90,7 +90,7 @@ function ExportScript.ProcessIkarusFCHighImportanceConfig()
|
||||
ExportScript.AF.FC_Russian_RadarAltimeter_1500m(100)
|
||||
|
||||
-- Barometric Altimeter
|
||||
ExportScript.AF.FC_Russian_BarometricAltimeter_late()
|
||||
ExportScript.AF.FC_Russian_BarometricAltimeter_late_special()
|
||||
|
||||
-- Tachometer (RPM)
|
||||
ExportScript.AF.FC_Russian_EngineRPM()
|
||||
|
||||
@@ -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")
|
||||
@@ -88,7 +88,7 @@ function ExportScript.ProcessIkarusFCHighImportanceConfig()
|
||||
ExportScript.AF.FC_Russian_RadarAltimeter_1500m(100)
|
||||
|
||||
-- Barometric Altimeter
|
||||
ExportScript.AF.FC_Russian_BarometricAltimeter_late()
|
||||
ExportScript.AF.FC_Russian_BarometricAltimeter_late_special()
|
||||
|
||||
-- Tachometer (RPM)
|
||||
ExportScript.AF.FC_Russian_EngineRPM()
|
||||
|
||||
@@ -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()
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user