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

SpitfireLFMkIX Radio control added #433

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 @@ -28376,6 +28376,7 @@
#define SpitfireLFMkIX_UC_EMER_AM 0x5420, 0x0020
#define SpitfireLFMkIX_VARIOMETERGAUGE 0x543C, 0xFFFF, 0
#define SpitfireLFMkIX_VARIOMETERGAUGE_A 0x543C
#define SpitfireLFMkIX_VHF_RADIO_A 0x546A
#define SpitfireLFMkIX_VOLTMETERGAUGE 0x544C, 0xFFFF, 0
#define SpitfireLFMkIX_VOLTMETERGAUGE_A 0x544C
#define SpitfireLFMkIX_WHEEL_BRAKES 0x5402, 0xFFFF, 0
Expand Down
22 changes: 22 additions & 0 deletions Scripts/DCS-BIOS/doc/json/SpitfireLFMkIX.json
Original file line number Diff line number Diff line change
Expand Up @@ -2615,6 +2615,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": 21610,
"address_identifier": "SpitfireLFMkIX_VHF_RADIO_A",
"address_mask_identifier": "SpitfireLFMkIX_VHF_RADIO_AM",
"address_mask_shift_identifier": "SpitfireLFMkIX_VHF_RADIO",
"description": "The current frequency the radio is set to",
"max_length": 7,
"suffix": "",
"type": "string"
} ]
}
},
"Radio Lights": {
"RADIO_A_LIGHT": {
"category": "Radio Lights",
Expand Down
22 changes: 22 additions & 0 deletions Scripts/DCS-BIOS/doc/json/SpitfireLFMkIX.jsonp
Original file line number Diff line number Diff line change
Expand Up @@ -2616,6 +2616,28 @@ docdata["SpitfireLFMkIX"] =
} ]
}
},
"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": 21610,
"address_identifier": "SpitfireLFMkIX_VHF_RADIO_A",
"address_mask_identifier": "SpitfireLFMkIX_VHF_RADIO_AM",
"address_mask_shift_identifier": "SpitfireLFMkIX_VHF_RADIO",
"description": "The current frequency the radio is set to",
"max_length": 7,
"suffix": "",
"type": "string"
} ]
}
},
"Radio Lights": {
"RADIO_A_LIGHT": {
"category": "Radio Lights",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -167,4 +167,6 @@ SpitfireLFMkIX:defineIndicatorLight("RADIO_C_LIGHT", 122, "Radio Lights", "Radio
SpitfireLFMkIX:defineIndicatorLight("RADIO_D_LIGHT", 123, "Radio Lights", "Radio D Light (white)")
SpitfireLFMkIX:defineIndicatorLight("RADIO_TX_LIGHT", 124, "Radio Lights", "Radio TX Light (white)")

SpitfireLFMkIX:defineReadWriteRadio("VHF_RADIO", 15, 7, 3, 1000, "VHF RADIO")

return SpitfireLFMkIX