Skip to content

Commit

Permalink
P-51D Radio control added (#432)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdahlblom authored Oct 14, 2023
1 parent 0039489 commit 59f1386
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 0 deletions.
1 change: 1 addition & 0 deletions Scripts/DCS-BIOS/doc/Addresses.h
Original file line number Diff line number Diff line change
Expand Up @@ -27408,6 +27408,7 @@
#define P_51D_VARIOMETER_VVI_A 0x503E
#define P_51D_VHF_LOCKING_LEVER 0x5060, 0x0002, 1
#define P_51D_VHF_LOCKING_LEVER_AM 0x5060, 0x0002
#define P_51D_VHF_RADIO_A 0x50CE
#define P_51D_VHF_RADIO_A_LIGHT 0x5060, 0x0040, 6
#define P_51D_VHF_RADIO_A_LIGHT_AM 0x5060, 0x0040
#define P_51D_VHF_RADIO_B_LIGHT 0x5060, 0x0080, 7
Expand Down
22 changes: 22 additions & 0 deletions Scripts/DCS-BIOS/doc/json/P-51D.json
Original file line number Diff line number Diff line change
Expand Up @@ -3665,6 +3665,28 @@
} ]
}
},
"Radio Frequencies": {
"VHF_RADIO": {
"category": "Radio Frequencies",
"control_type": "radio",
"description": "VHF RADIO",
"identifier": "VHF_RADIO",
"inputs": [ {
"description": "The frequency to set, with or without a decimal place",
"interface": "set_string"
} ],
"outputs": [ {
"address": 20686,
"address_identifier": "P_51D_VHF_RADIO_A",
"address_mask_identifier": "P_51D_VHF_RADIO_AM",
"address_mask_shift_identifier": "P_51D_VHF_RADIO",
"description": "The current frequency the radio is set to",
"max_length": 7,
"suffix": "",
"type": "string"
} ]
}
},
"Remote Compass": {
"REMOTE_COMPASS_CRS": {
"category": "Remote Compass",
Expand Down
22 changes: 22 additions & 0 deletions Scripts/DCS-BIOS/doc/json/P-51D.jsonp
Original file line number Diff line number Diff line change
Expand Up @@ -3666,6 +3666,28 @@ docdata["P-51D"] =
} ]
}
},
"Radio Frequencies": {
"VHF_RADIO": {
"category": "Radio Frequencies",
"control_type": "radio",
"description": "VHF RADIO",
"identifier": "VHF_RADIO",
"inputs": [ {
"description": "The frequency to set, with or without a decimal place",
"interface": "set_string"
} ],
"outputs": [ {
"address": 20686,
"address_identifier": "P_51D_VHF_RADIO_A",
"address_mask_identifier": "P_51D_VHF_RADIO_AM",
"address_mask_shift_identifier": "P_51D_VHF_RADIO",
"description": "The current frequency the radio is set to",
"max_length": 7,
"suffix": "",
"type": "string"
} ]
}
},
"Remote Compass": {
"REMOTE_COMPASS_CRS": {
"category": "Remote Compass",
Expand Down
2 changes: 2 additions & 0 deletions Scripts/DCS-BIOS/lib/modules/aircraft_modules/P-51D.lua
Original file line number Diff line number Diff line change
Expand Up @@ -227,4 +227,6 @@ P_51D:defineFloat("CONTR_LOCK_BRACK", 174, { 0, 1 }, "Control System", "Control
P_51D:defineFloat("INT_L_LIGHTS", 185, { 0, 1 }, "Light System", "Internal Lighting Left (white)")
P_51D:defineFloat("INT_R_LIGHTS", 186, { 0, 1 }, "Light System", "Internal Lighting Right (white)")

P_51D:defineReadWriteRadio("VHF_RADIO", 24, 7, 3, 1000, "VHF RADIO")

return P_51D

0 comments on commit 59f1386

Please sign in to comment.