Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

L-39 Radio control added #421

Merged
merged 1 commit into from
Oct 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Scripts/DCS-BIOS/doc/Addresses.h
Original file line number Diff line number Diff line change
Expand Up @@ -17327,6 +17327,7 @@
#define L_39_PITOT_HEAT_ON_L_AM 0x338A, 0x0040
#define L_39_PITOT_HEAT_ON_R 0x338A, 0x0100, 8
#define L_39_PITOT_HEAT_ON_R_AM 0x338A, 0x0100
#define L_39_R832M_RADIO_A 0x33D4
#define MB_339_AC_PW_SW 0x8208, 0x0008, 3
#define MB_339_AC_PW_SW_AM 0x8208, 0x0008
#define MB_339_ADI_OFF_G 0x826C, 0xFFFF, 0
Expand Down
22 changes: 22 additions & 0 deletions Scripts/DCS-BIOS/doc/json/L-39.json
Original file line number Diff line number Diff line change
Expand Up @@ -10330,6 +10330,28 @@
"physical_variant": "toggle_switch"
}
},
"Radio Frequencies": {
"R832M_RADIO": {
"category": "Radio Frequencies",
"control_type": "radio",
"description": "R-832M Radio",
"identifier": "R832M_RADIO",
"inputs": [ {
"description": "The frequency to set, with or without a decimal place",
"interface": "set_string"
} ],
"outputs": [ {
"address": 13268,
"address_identifier": "L_39_R832M_RADIO_A",
"address_mask_identifier": "L_39_R832M_RADIO_AM",
"address_mask_shift_identifier": "L_39_R832M_RADIO",
"description": "The current frequency the radio is set to",
"max_length": 7,
"suffix": "",
"type": "string"
} ]
}
},
"Readings": {
"BACK_RADIO_CHN_DISPLAY": {
"category": "Readings",
Expand Down
22 changes: 22 additions & 0 deletions Scripts/DCS-BIOS/doc/json/L-39.jsonp
Original file line number Diff line number Diff line change
Expand Up @@ -10331,6 +10331,28 @@ docdata["L-39"] =
"physical_variant": "toggle_switch"
}
},
"Radio Frequencies": {
"R832M_RADIO": {
"category": "Radio Frequencies",
"control_type": "radio",
"description": "R-832M Radio",
"identifier": "R832M_RADIO",
"inputs": [ {
"description": "The frequency to set, with or without a decimal place",
"interface": "set_string"
} ],
"outputs": [ {
"address": 13268,
"address_identifier": "L_39_R832M_RADIO_A",
"address_mask_identifier": "L_39_R832M_RADIO_AM",
"address_mask_shift_identifier": "L_39_R832M_RADIO",
"description": "The current frequency the radio is set to",
"max_length": 7,
"suffix": "",
"type": "string"
} ]
}
},
"Readings": {
"BACK_RADIO_CHN_DISPLAY": {
"category": "Readings",
Expand Down
2 changes: 2 additions & 0 deletions Scripts/DCS-BIOS/lib/modules/aircraft_modules/L-39.lua
Original file line number Diff line number Diff line change
Expand Up @@ -701,4 +701,6 @@ L_39:defineString("BACK_RADIO_CHN_DISPLAY_STRING", getRadioPresetChan_BACKS, 2,
L_39:defineFloat("FRONT_CANOPY_POS", 139, { 0, 1 }, "Gauges", "FRONT Canopy Position")
L_39:defineFloat("BACK_CANOPY_POS", 140, { 0, 1 }, "Gauges", "BACK Door Position")

L_39:defineReadWriteRadio("R832M_RADIO", 19, 7, 3, 1000, "R-832M Radio")

return L_39
Loading