Skip to content

Commit

Permalink
MH-60R migrated to module (#356)
Browse files Browse the repository at this point in the history
* MH-60R migrated to module

* Update AircraftTest.lua

* Update MH-60R.lua

* Update BIOS.lua

* Update AircraftList.lua

* Update addresses.txt

* Update AircraftAliases.json

* Removed DCSFP id's, MH-60R last

* Update addresses.txt

* fixes

* Update AircraftList.lua
  • Loading branch information
jdahlblom authored Oct 6, 2023
1 parent 2c7ac9b commit dfd1aad
Show file tree
Hide file tree
Showing 10 changed files with 9,878 additions and 210 deletions.
3 changes: 3 additions & 0 deletions Scripts/DCS-BIOS/BIOS.lua
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,9 @@ dofile(lfs.writedir()..[[Scripts/DCS-BIOS/lib/M-2000C.lua]]) -- ID = 27, ProperN
-- dofile(lfs.writedir()..[[Scripts/DCS-BIOS/lib/MB-339.lua]]) -- ID = 28, ProperName = MB-339A/PAN
local MB_339 = require "MB-339"
BIOS.protocol.writeNewModule(MB_339)
-- dofile(lfs.writedir()..[[Scripts/DCS-BIOS/lib/archive/old_format_planes/MH-60R.lua]]) -- ID = 50, ProperName = MH-60R SeaHawk
local MH_60R = require "MH-60R"
BIOS.protocol.writeNewModule(MH_60R)
-- dofile(lfs.writedir()..[[Scripts/DCS-BIOS/lib/archive/old_format_planes/Mi-24P.lua]]) -- ID = 42, ProperName = Mi-24P HIND
local Mi_24P = require "Mi-24P"
BIOS.protocol.writeNewModule(Mi_24P)
Expand Down
272 changes: 272 additions & 0 deletions Scripts/DCS-BIOS/doc/Addresses.h
Original file line number Diff line number Diff line change
Expand Up @@ -18583,6 +18583,278 @@
#define MB_339_WP_STAT6_G_A 0x8366
#define MB_339_WP_STAT6_L 0x836C, 0x0002, 1
#define MB_339_WP_STAT6_L_AM 0x836C, 0x0002
#define MH_60R_128B_0 0xA410, 0x0040, 6
#define MH_60R_128B_0_AM 0xA410, 0x0040
#define MH_60R_128B_1 0xA40E, 0x0200, 9
#define MH_60R_128B_1_AM 0xA40E, 0x0200
#define MH_60R_128B_2 0xA40E, 0x0400, 10
#define MH_60R_128B_2_AM 0xA40E, 0x0400
#define MH_60R_128B_3 0xA40E, 0x0800, 11
#define MH_60R_128B_3_AM 0xA40E, 0x0800
#define MH_60R_128B_4 0xA40E, 0x2000, 13
#define MH_60R_128B_4_AM 0xA40E, 0x2000
#define MH_60R_128B_5 0xA40E, 0x4000, 14
#define MH_60R_128B_5_AM 0xA40E, 0x4000
#define MH_60R_128B_6 0xA40E, 0x8000, 15
#define MH_60R_128B_6_AM 0xA40E, 0x8000
#define MH_60R_128B_7 0xA410, 0x0002, 1
#define MH_60R_128B_7_AM 0xA410, 0x0002
#define MH_60R_128B_8 0xA410, 0x0004, 2
#define MH_60R_128B_8_AM 0xA410, 0x0004
#define MH_60R_128B_9 0xA410, 0x0008, 3
#define MH_60R_128B_9_AM 0xA410, 0x0008
#define MH_60R_128B_CLR 0xA410, 0x0020, 5
#define MH_60R_128B_CLR_AM 0xA410, 0x0020
#define MH_60R_128B_DEC 0xA410, 0x0010, 4
#define MH_60R_128B_DEC_AM 0xA410, 0x0010
#define MH_60R_128B_DISPLAY 0xA40E, 0x0007, 0
#define MH_60R_128B_ENT 0xA410, 0x0080, 7
#define MH_60R_128B_ENT_AM 0xA410, 0x0080
#define MH_60R_128B_F1 0xA40E, 0x0100, 8
#define MH_60R_128B_F1_AM 0xA40E, 0x0100
#define MH_60R_128B_INC 0xA410, 0x0001, 0
#define MH_60R_128B_INC_AM 0xA410, 0x0001
#define MH_60R_128B_KYBD 0xA40C, 0x4000, 14
#define MH_60R_128B_KYBD_AM 0xA40C, 0x4000
#define MH_60R_128B_LTR_LFT 0xA40C, 0x8000, 15
#define MH_60R_128B_LTR_LFT_AM 0xA40C, 0x8000
#define MH_60R_128B_LTR_MID 0xA40E, 0x0040, 6
#define MH_60R_128B_LTR_MID_AM 0xA40E, 0x0040
#define MH_60R_128B_LTR_RGHT 0xA40E, 0x0080, 7
#define MH_60R_128B_LTR_RGHT_AM 0xA40E, 0x0080
#define MH_60R_128B_MODE 0xA40E, 0x0038, 3
#define MH_60R_128B_TGT_STR 0xA40E, 0x1000, 12
#define MH_60R_128B_TGT_STR_AM 0xA40E, 0x1000
#define MH_60R_AFC_BST_LGHT 0xA404, 0x0001, 0
#define MH_60R_AFC_BST_LGHT_AM 0xA404, 0x0001
#define MH_60R_AFC_FPS_LGHT 0xA404, 0x0010, 4
#define MH_60R_AFC_FPS_LGHT_AM 0xA404, 0x0010
#define MH_60R_AFC_SS1_LGHT 0xA404, 0x0002, 1
#define MH_60R_AFC_SS1_LGHT_AM 0xA404, 0x0002
#define MH_60R_AFC_SS2_LGHT 0xA404, 0x0004, 2
#define MH_60R_AFC_SS2_LGHT_AM 0xA404, 0x0004
#define MH_60R_AFC_STB_LGHT 0xA404, 0x0020, 5
#define MH_60R_AFC_STB_LGHT_AM 0xA404, 0x0020
#define MH_60R_AFC_TRM_LGHT 0xA404, 0x0008, 3
#define MH_60R_AFC_TRM_LGHT_AM 0xA404, 0x0008
#define MH_60R_AIR_SRC_SW 0xA406, 0x0030, 4
#define MH_60R_ANTI_LGHT_DAY 0xA412, 0x3000, 12
#define MH_60R_ANTI_LGHT_UP 0xA412, 0x0C00, 10
#define MH_60R_APU_CTRL_SW 0xA404, 0x8000, 15
#define MH_60R_APU_CTRL_SW_AM 0xA404, 0x8000
#define MH_60R_APU_GEN_SW 0xA404, 0x1800, 11
#define MH_60R_AVS_DIM 0xA412, 0x0060, 5
#define MH_60R_AVS_ON 0xA412, 0x0018, 3
#define MH_60R_BATT_SW 0xA404, 0x0100, 8
#define MH_60R_BATT_SW_AM 0xA404, 0x0100
#define MH_60R_BRG2 0xA412, 0x0004, 2
#define MH_60R_BRG2_AM 0xA412, 0x0004
#define MH_60R_CAP_BRGT 0xA40C, 0x1000, 12
#define MH_60R_CAP_BRGT_AM 0xA40C, 0x1000
#define MH_60R_CAP_TST 0xA40C, 0x0800, 11
#define MH_60R_CAP_TST_AM 0xA40C, 0x0800
#define MH_60R_CAT_SELC 0xA430, 0x0020, 5
#define MH_60R_CAT_SELC_AM 0xA430, 0x0020
#define MH_60R_CDU_TST 0xA40C, 0x0200, 9
#define MH_60R_CDU_TST_AM 0xA40C, 0x0200
#define MH_60R_CHAFF_MOD_SEL 0xA426, 0x0003, 0
#define MH_60R_CHAF_DISP 0xA426, 0x0004, 2
#define MH_60R_CHAF_DISP_AM 0xA426, 0x0004
#define MH_60R_CIS_ALT 0xA410, 0x0400, 10
#define MH_60R_CIS_ALT_AM 0xA410, 0x0400
#define MH_60R_CIS_HDG 0xA410, 0x0100, 8
#define MH_60R_CIS_HDG_AM 0xA410, 0x0100
#define MH_60R_CIS_NAV 0xA410, 0x0200, 9
#define MH_60R_CIS_NAV_AM 0xA410, 0x0200
#define MH_60R_CIS_PLT_ALT 0xA402, 0x0004, 2
#define MH_60R_CIS_PLT_ALT_AM 0xA402, 0x0004
#define MH_60R_CIS_PLT_BCKCRS 0xA402, 0x0040, 6
#define MH_60R_CIS_PLT_BCKCRS_AM 0xA402, 0x0040
#define MH_60R_CIS_PLT_BRG2ADF 0xA402, 0x4000, 14
#define MH_60R_CIS_PLT_BRG2ADF_AM 0xA402, 0x4000
#define MH_60R_CIS_PLT_BRG2VOR 0xA402, 0x8000, 15
#define MH_60R_CIS_PLT_BRG2VOR_AM 0xA402, 0x8000
#define MH_60R_CIS_PLT_CRSHDGCPLT 0xA402, 0x0800, 11
#define MH_60R_CIS_PLT_CRSHDGCPLT_AM 0xA402, 0x0800
#define MH_60R_CIS_PLT_CRSHDGPLT 0xA402, 0x0400, 10
#define MH_60R_CIS_PLT_CRSHDGPLT_AM 0xA402, 0x0400
#define MH_60R_CIS_PLT_DPLR 0xA402, 0x0008, 3
#define MH_60R_CIS_PLT_DPLR_AM 0xA402, 0x0008
#define MH_60R_CIS_PLT_FMHME 0xA402, 0x0080, 7
#define MH_60R_CIS_PLT_FMHME_AM 0xA402, 0x0080
#define MH_60R_CIS_PLT_GYRNRM 0xA402, 0x1000, 12
#define MH_60R_CIS_PLT_GYRNRM_AM 0xA402, 0x1000
#define MH_60R_CIS_PLT_GYROALT 0xA402, 0x2000, 13
#define MH_60R_CIS_PLT_GYROALT_AM 0xA402, 0x2000
#define MH_60R_CIS_PLT_HDG 0xA402, 0x0001, 0
#define MH_60R_CIS_PLT_HDG_AM 0xA402, 0x0001
#define MH_60R_CIS_PLT_ILS 0xA402, 0x0020, 5
#define MH_60R_CIS_PLT_ILS_AM 0xA402, 0x0020
#define MH_60R_CIS_PLT_NAV 0xA402, 0x0002, 1
#define MH_60R_CIS_PLT_NAV_AM 0xA402, 0x0002
#define MH_60R_CIS_PLT_TRALT 0xA402, 0x0200, 9
#define MH_60R_CIS_PLT_TRALT_AM 0xA402, 0x0200
#define MH_60R_CIS_PLT_TRNRM 0xA402, 0x0100, 8
#define MH_60R_CIS_PLT_TRNRM_AM 0xA402, 0x0100
#define MH_60R_CIS_PLT_VOR 0xA402, 0x0010, 4
#define MH_60R_CIS_PLT_VOR_AM 0xA402, 0x0010
#define MH_60R_CKPT_LGHT_DAY 0xA416, 0x0060, 5
#define MH_60R_CMP_LGTH_MOD 0xA412, 0x8000, 15
#define MH_60R_CMP_LGTH_MOD_AM 0xA412, 0x8000
#define MH_60R_CM_ARM_SW 0xA416, 0x8000, 15
#define MH_60R_CM_ARM_SW_AM 0xA416, 0x8000
#define MH_60R_COAL_SELC 0xA430, 0x000C, 2
#define MH_60R_CPLT_DOOR 0xA416, 0x0080, 7
#define MH_60R_CPLT_DOOR_AM 0xA416, 0x0080
#define MH_60R_CPLT_INST_BRT 0xA420, 0xFFFF, 0
#define MH_60R_CPLT_INST_BRT_A 0xA420
#define MH_60R_CRS_HDG 0xA412, 0x0001, 0
#define MH_60R_CRS_HDG_AM 0xA412, 0x0001
#define MH_60R_ENG1_CTRL 0xA408, 0xFFFF, 0
#define MH_60R_ENG1_CTRL_A 0xA408
#define MH_60R_ENG1_CTR_LVL 0xA406, 0x2000, 13
#define MH_60R_ENG1_CTR_LVL_AM 0xA406, 0x2000
#define MH_60R_ENG1_FSS 0xA406, 0x0180, 7
#define MH_60R_ENG1_START 0xA406, 0x0800, 11
#define MH_60R_ENG1_START_AM 0xA406, 0x0800
#define MH_60R_ENG2_CTRL 0xA40A, 0xFFFF, 0
#define MH_60R_ENG2_CTRL_A 0xA40A
#define MH_60R_ENG2_CTR_LVL 0xA406, 0x4000, 14
#define MH_60R_ENG2_CTR_LVL_AM 0xA406, 0x4000
#define MH_60R_ENG2_FSS 0xA406, 0x0600, 9
#define MH_60R_ENG2_START 0xA406, 0x1000, 12
#define MH_60R_ENG2_START_AM 0xA406, 0x1000
#define MH_60R_EXT_PWR_SW 0xA404, 0x0600, 9
#define MH_60R_FAC_RANGE 0xA430, 0x0010, 4
#define MH_60R_FAC_RANGE_AM 0xA430, 0x0010
#define MH_60R_FLR_DSP_CVR 0xA416, 0x2000, 13
#define MH_60R_FLR_DSP_CVR_AM 0xA416, 0x2000
#define MH_60R_FLR_DSP_SW 0xA416, 0x4000, 14
#define MH_60R_FLR_DSP_SW_AM 0xA416, 0x4000
#define MH_60R_FORM_LGHT 0xA416, 0x001C, 2
#define MH_60R_FPS 0xA40C, 0x0020, 5
#define MH_60R_FPS_AM 0xA40C, 0x0020
#define MH_60R_FUEL1_BST_PMP 0xA406, 0x0040, 6
#define MH_60R_FUEL1_BST_PMP_AM 0xA406, 0x0040
#define MH_60R_FUEL_PMP_SW 0xA406, 0x000C, 2
#define MH_60R_GEN1_SW 0xA404, 0x6000, 13
#define MH_60R_GEN2_SW 0xA406, 0x0003, 0
#define MH_60R_GLR_SHLD 0xA414, 0xFFFF, 0
#define MH_60R_GLR_SHLD_A 0xA414
#define MH_60R_GUN_COLR 0xA428, 0x3000, 12
#define MH_60R_GUN_MOVE 0xA42A, 0xFFFF, 0
#define MH_60R_GUN_MOVE_A 0xA42A
#define MH_60R_JET_ALL 0xA428, 0x0100, 8
#define MH_60R_JET_ALL_AM 0xA428, 0x0100
#define MH_60R_JET_ALL_CVR 0xA428, 0x0080, 7
#define MH_60R_JET_ALL_CVR_AM 0xA428, 0x0080
#define MH_60R_JET_SELC 0xA428, 0x0E00, 9
#define MH_60R_JET_SLC_CVR 0xA428, 0x0040, 6
#define MH_60R_JET_SLC_CVR_AM 0xA428, 0x0040
#define MH_60R_JET_SLC_SW 0xA428, 0x0020, 5
#define MH_60R_JET_SLC_SW_AM 0xA428, 0x0020
#define MH_60R_LCK_TGT 0xA430, 0x0040, 6
#define MH_60R_LCK_TGT_AM 0xA430, 0x0040
#define MH_60R_LFT_CRG_DOOR 0xA416, 0x0800, 11
#define MH_60R_LFT_CRG_DOOR_AM 0xA416, 0x0800
#define MH_60R_LFT_GUN_WIN 0xA416, 0x0200, 9
#define MH_60R_LFT_GUN_WIN_AM 0xA416, 0x0200
#define MH_60R_LGHT_BRT 0xA422, 0xFFFF, 0
#define MH_60R_LGHT_BRT_A 0xA422
#define MH_60R_LGHT_SW 0xA400, 0xFFFF, 0
#define MH_60R_LGHT_SWTCH 0xA418, 0xFFFF, 0
#define MH_60R_LGHT_SWTCH_A 0xA418
#define MH_60R_LGHT_SW_A 0xA400
#define MH_60R_LWR_BRT 0xA41C, 0xFFFF, 0
#define MH_60R_LWR_BRT_A 0xA41C
#define MH_60R_MODE_RDR 0xA428, 0xC000, 14
#define MH_60R_MST_ARM_CVR 0xA428, 0x0001, 0
#define MH_60R_MST_ARM_CVR_AM 0xA428, 0x0001
#define MH_60R_MST_ARM_SNR 0xA426, 0x0040, 6
#define MH_60R_MST_ARM_SNR_AM 0xA426, 0x0040
#define MH_60R_MST_ARM_SON 0xA426, 0x0080, 7
#define MH_60R_MST_ARM_SON_AM 0xA426, 0x0080
#define MH_60R_MST_ARM_WPN 0xA426, 0x1000, 12
#define MH_60R_MST_ARM_WPN_AM 0xA426, 0x1000
#define MH_60R_MST_CAUTION 0xA404, 0x0040, 6
#define MH_60R_MST_CAUTION_AM 0xA404, 0x0040
#define MH_60R_MST_CAUT_RST 0xA40C, 0x2000, 13
#define MH_60R_MST_CAUT_RST_AM 0xA40C, 0x2000
#define MH_60R_MST_SNR_CVR 0xA426, 0x0020, 5
#define MH_60R_MST_SNR_CVR_AM 0xA426, 0x0020
#define MH_60R_MST_SON_CVR 0xA426, 0x0800, 11
#define MH_60R_MST_SON_CVR_AM 0xA426, 0x0800
#define MH_60R_NAV_BACK 0xA410, 0x2000, 13
#define MH_60R_NAV_BACK_AM 0xA410, 0x2000
#define MH_60R_NAV_DPLR 0xA410, 0x0800, 11
#define MH_60R_NAV_DPLR_AM 0xA410, 0x0800
#define MH_60R_NAV_FM 0xA410, 0x4000, 14
#define MH_60R_NAV_FM_AM 0xA410, 0x4000
#define MH_60R_NAV_LGTH_MOD 0xA412, 0x4000, 14
#define MH_60R_NAV_LGTH_MOD_AM 0xA412, 0x4000
#define MH_60R_NAV_VOR 0xA410, 0x1000, 12
#define MH_60R_NAV_VOR_AM 0xA410, 0x1000
#define MH_60R_OFFSET_RDR 0xA432, 0xFFFF, 0
#define MH_60R_OFFSET_RDR_A 0xA432
#define MH_60R_PDU1_TST 0xA40C, 0x0400, 10
#define MH_60R_PDU1_TST_AM 0xA40C, 0x0400
#define MH_60R_PLT_DOOR 0xA416, 0x0100, 8
#define MH_60R_PLT_DOOR_AM 0xA416, 0x0100
#define MH_60R_PLT_INST_BRT 0xA41E, 0xFFFF, 0
#define MH_60R_PLT_INST_BRT_A 0xA41E
#define MH_60R_POS_LGHT 0xA416, 0x0003, 0
#define MH_60R_POS_LGHT_DIM 0xA412, 0x0180, 7
#define MH_60R_POS_LGTH_MOD 0xA412, 0x0200, 9
#define MH_60R_POS_LGTH_MOD_AM 0xA412, 0x0200
#define MH_60R_PRK_BRK 0xA40C, 0x0080, 7
#define MH_60R_PRK_BRK_AM 0xA40C, 0x0080
#define MH_60R_RANGE_RDR 0xA42C, 0xFFFF, 0
#define MH_60R_RANGE_RDR_A 0xA42C
#define MH_60R_RDR_DIM 0xA424, 0xFFFF, 0
#define MH_60R_RDR_DIM_A 0xA424
#define MH_60R_RGT_CRG_DOOR 0xA416, 0x1000, 12
#define MH_60R_RGT_CRG_DOOR_AM 0xA416, 0x1000
#define MH_60R_RGT_GUN_WIN 0xA416, 0x0400, 10
#define MH_60R_RGT_GUN_WIN_AM 0xA416, 0x0400
#define MH_60R_RST_ROT 0xA430, 0x0080, 7
#define MH_60R_RST_ROT_AM 0xA430, 0x0080
#define MH_60R_SAS1 0xA40C, 0x0004, 2
#define MH_60R_SAS1_AM 0xA40C, 0x0004
#define MH_60R_SAS2 0xA40C, 0x0008, 3
#define MH_60R_SAS2_AM 0xA40C, 0x0008
#define MH_60R_SAS_BST 0xA40C, 0x0040, 6
#define MH_60R_SAS_BST_AM 0xA40C, 0x0040
#define MH_60R_SECT_RDR 0xA42E, 0xFFFF, 0
#define MH_60R_SECT_RDR_A 0xA42E
#define MH_60R_SLV_SELC 0xA426, 0xE000, 13
#define MH_60R_SNR_WNCH 0xA426, 0x0600, 9
#define MH_60R_SONO_DISP 0xA426, 0x0100, 8
#define MH_60R_SONO_DISP_AM 0xA426, 0x0100
#define MH_60R_SON_SELC 0xA430, 0x0003, 0
#define MH_60R_STAB_AUTO 0xA406, 0x8000, 15
#define MH_60R_STAB_AUTO_AM 0xA406, 0x8000
#define MH_60R_STAB_MAN_SLW 0xA40C, 0x0003, 0
#define MH_60R_STA_LFT_PYL 0xA428, 0x0002, 1
#define MH_60R_STA_LFT_PYL_AM 0xA428, 0x0002
#define MH_60R_STA_LFT_SID 0xA428, 0x0004, 2
#define MH_60R_STA_LFT_SID_AM 0xA428, 0x0004
#define MH_60R_STA_RGT_PYL 0xA428, 0x0010, 4
#define MH_60R_STA_RGT_PYL_AM 0xA428, 0x0010
#define MH_60R_STA_RGT_SID 0xA428, 0x0008, 3
#define MH_60R_STA_RGT_SID_AM 0xA428, 0x0008
#define MH_60R_TAIL_WHL_LCK 0xA40C, 0x0100, 8
#define MH_60R_TAIL_WHL_LCK_AM 0xA40C, 0x0100
#define MH_60R_TRIM 0xA40C, 0x0010, 4
#define MH_60R_TRIM_AM 0xA40C, 0x0010
#define MH_60R_TRN_RATE 0xA410, 0x8000, 15
#define MH_60R_TRN_RATE_AM 0xA410, 0x8000
#define MH_60R_UPP_BRT 0xA41A, 0xFFFF, 0
#define MH_60R_UPP_BRT_A 0xA41A
#define MH_60R_VRT_GYRO 0xA412, 0x0002, 1
#define MH_60R_VRT_GYRO_AM 0xA412, 0x0002
#define MH_60R_WHL_LCK_LGT 0xA404, 0x0080, 7
#define MH_60R_WHL_LCK_LGT_AM 0xA404, 0x0080
#define MH_60R_WPRS 0xA426, 0x0018, 3
#define M_2000C_AAR_SW 0x725A, 0x0300, 8
#define M_2000C_AB_EMER_CUTOFF_SW 0x7294, 0x0080, 7
#define M_2000C_AB_EMER_CUTOFF_SW_AM 0x7294, 0x0080
Expand Down
Loading

0 comments on commit dfd1aad

Please sign in to comment.