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

MiG-21bis Radio Control added #429

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 @@ -21649,6 +21649,7 @@
#define MiG_21Bis_UK2M_MIC_AMP_ML_AM 0x2260, 0x0100
#define MiG_21Bis_VARI_SET 0x2206, 0xFFFF, 0
#define MiG_21Bis_VARI_SET_A 0x2206
#define MiG_21Bis_VHF_RADIO_A 0x22F8
#define MiG_21Bis_WARN_L_CHECK_STAT 0x22CC, 0x0008, 3
#define MiG_21Bis_WARN_L_CHECK_STAT_AM 0x22CC, 0x0008
#define MiG_21Bis_WBRAKE_L_GAUGE 0x22F4, 0xFFFF, 0
Expand Down
22 changes: 22 additions & 0 deletions Scripts/DCS-BIOS/doc/json/MiG-21Bis.json
Original file line number Diff line number Diff line change
Expand Up @@ -8506,6 +8506,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": 8952,
"address_identifier": "MiG_21Bis_VHF_RADIO_A",
"address_mask_identifier": "MiG_21Bis_VHF_RADIO_AM",
"address_mask_shift_identifier": "MiG_21Bis_VHF_RADIO",
"description": "The current frequency the radio is set to",
"max_length": 7,
"suffix": "",
"type": "string"
} ]
}
},
"Right Horizontal Aft Panel": {
"BU45_SEP": {
"api_variant": "momentary_last_position",
Expand Down
22 changes: 22 additions & 0 deletions Scripts/DCS-BIOS/doc/json/MiG-21Bis.jsonp
Original file line number Diff line number Diff line change
Expand Up @@ -8507,6 +8507,28 @@ docdata["MiG-21Bis"] =
} ]
}
},
"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": 8952,
"address_identifier": "MiG_21Bis_VHF_RADIO_A",
"address_mask_identifier": "MiG_21Bis_VHF_RADIO_AM",
"address_mask_shift_identifier": "MiG_21Bis_VHF_RADIO",
"description": "The current frequency the radio is set to",
"max_length": 7,
"suffix": "",
"type": "string"
} ]
}
},
"Right Horizontal Aft Panel": {
"BU45_SEP": {
"api_variant": "momentary_last_position",
Expand Down
2 changes: 2 additions & 0 deletions Scripts/DCS-BIOS/lib/modules/aircraft_modules/MiG-21Bis.lua
Original file line number Diff line number Diff line change
Expand Up @@ -605,4 +605,6 @@ MiG_21Bis:defineFloat("WBRAKE_R_GAUGE", 56, { 0, 1 }, "Center Pedestal Panel", "
--PRMG/RSBN channel displays
--ARU manual arrow (mechanical?)

MiG_21Bis:defineReadWriteRadio("VHF_RADIO", 22, 7, 3, 1000, "VHF RADIO")

return MiG_21Bis
Loading