Skip to content

Commit

Permalink
Migrate L-39 to new module type (#296)
Browse files Browse the repository at this point in the history
  • Loading branch information
charliefoxtwo authored Oct 1, 2023
1 parent 272fb9f commit 5c9c8ea
Show file tree
Hide file tree
Showing 5 changed files with 841 additions and 17 deletions.
4 changes: 3 additions & 1 deletion Scripts/DCS-BIOS/BIOS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,9 @@ local I_16 = require "I-16"
BIOS.protocol.writeNewModule(I_16)
dofile(lfs.writedir()..[[Scripts/DCS-BIOS/lib/JF-17.lua]]) -- ID = 24, ProperName = JF-17 Thunder
dofile(lfs.writedir()..[[Scripts/DCS-BIOS/lib/Ka-50.lua]]) -- ID = 25, ProperName = Ka-50 Black Shark/III
dofile(lfs.writedir()..[[Scripts/DCS-BIOS/lib/L-39.lua]]) -- ID = 26, ProperName = L-39 Albatros
-- dofile(lfs.writedir()..[[Scripts/DCS-BIOS/lib/L-39.lua]]) -- ID = 26, ProperName = L-39 Albatros
local L_39 = require "L-39"
BIOS.protocol.writeNewModule(L_39)
dofile(lfs.writedir()..[[Scripts/DCS-BIOS/lib/M-2000C.lua]]) -- ID = 27, ProperName = M-2000C
dofile(lfs.writedir()..[[Scripts/DCS-BIOS/lib/MB-339.lua]]) -- ID = 28, ProperName = MB-339A/PAN
dofile(lfs.writedir()..[[Scripts/DCS-BIOS/lib/Mi-8MT.lua]]) -- ID = 29, ProperName = Mi-8MT
Expand Down
73 changes: 65 additions & 8 deletions Scripts/DCS-BIOS/doc/json/L-39.json
Original file line number Diff line number Diff line change
Expand Up @@ -11248,6 +11248,63 @@
"type": "integer"
} ]
},
"BACK_FLAPS_DN_LAMP": {
"category": "Warning, Caution and IndicatorLights",
"control_type": "led",
"description": "FRONT Flaps 44° Lamp (green)",
"identifier": "BACK_FLAPS_DN_LAMP",
"inputs": [ ],
"outputs": [ {
"address": 13102,
"address_identifier": "L_39_BACK_FLAPS_DN_LAMP_A",
"address_mask_identifier": "L_39_BACK_FLAPS_DN_LAMP_AM",
"address_mask_shift_identifier": "L_39_BACK_FLAPS_DN_LAMP",
"description": "0 if light is off, 1 if light is on",
"mask": 2,
"max_value": 1,
"shift_by": 1,
"suffix": "",
"type": "integer"
} ]
},
"BACK_FLAPS_TO_LAMP": {
"category": "Warning, Caution and IndicatorLights",
"control_type": "led",
"description": "FRONT Flaps 25° Lamp (green)",
"identifier": "BACK_FLAPS_TO_LAMP",
"inputs": [ ],
"outputs": [ {
"address": 13102,
"address_identifier": "L_39_BACK_FLAPS_TO_LAMP_A",
"address_mask_identifier": "L_39_BACK_FLAPS_TO_LAMP_AM",
"address_mask_shift_identifier": "L_39_BACK_FLAPS_TO_LAMP",
"description": "0 if light is off, 1 if light is on",
"mask": 1,
"max_value": 1,
"shift_by": 0,
"suffix": "",
"type": "integer"
} ]
},
"BACK_FLAPS_UP_LAMP": {
"category": "Warning, Caution and IndicatorLights",
"control_type": "led",
"description": "FRONT Flaps 0° Lamp (green)",
"identifier": "BACK_FLAPS_UP_LAMP",
"inputs": [ ],
"outputs": [ {
"address": 13100,
"address_identifier": "L_39_BACK_FLAPS_UP_LAMP_A",
"address_mask_identifier": "L_39_BACK_FLAPS_UP_LAMP_AM",
"address_mask_shift_identifier": "L_39_BACK_FLAPS_UP_LAMP",
"description": "0 if light is off, 1 if light is on",
"mask": 32768,
"max_value": 1,
"shift_by": 15,
"suffix": "",
"type": "integer"
} ]
},
"BACK_FUEL_150_LAMP": {
"category": "Warning, Caution and IndicatorLights",
"control_type": "led",
Expand Down Expand Up @@ -12053,14 +12110,14 @@
"identifier": "FRONT_FLAPS_DN_LAMP",
"inputs": [ ],
"outputs": [ {
"address": 13102,
"address": 13100,
"address_identifier": "L_39_FRONT_FLAPS_DN_LAMP_A",
"address_mask_identifier": "L_39_FRONT_FLAPS_DN_LAMP_AM",
"address_mask_shift_identifier": "L_39_FRONT_FLAPS_DN_LAMP",
"description": "0 if light is off, 1 if light is on",
"mask": 2,
"mask": 16384,
"max_value": 1,
"shift_by": 1,
"shift_by": 14,
"suffix": "",
"type": "integer"
} ]
Expand All @@ -12072,14 +12129,14 @@
"identifier": "FRONT_FLAPS_TO_LAMP",
"inputs": [ ],
"outputs": [ {
"address": 13102,
"address": 13100,
"address_identifier": "L_39_FRONT_FLAPS_TO_LAMP_A",
"address_mask_identifier": "L_39_FRONT_FLAPS_TO_LAMP_AM",
"address_mask_shift_identifier": "L_39_FRONT_FLAPS_TO_LAMP",
"description": "0 if light is off, 1 if light is on",
"mask": 1,
"mask": 8192,
"max_value": 1,
"shift_by": 0,
"shift_by": 13,
"suffix": "",
"type": "integer"
} ]
Expand All @@ -12096,9 +12153,9 @@
"address_mask_identifier": "L_39_FRONT_FLAPS_UP_LAMP_AM",
"address_mask_shift_identifier": "L_39_FRONT_FLAPS_UP_LAMP",
"description": "0 if light is off, 1 if light is on",
"mask": 32768,
"mask": 4096,
"max_value": 1,
"shift_by": 15,
"shift_by": 12,
"suffix": "",
"type": "integer"
} ]
Expand Down
Loading

0 comments on commit 5c9c8ea

Please sign in to comment.