Skip to content

Commit

Permalink
SpitfireLFMkIX Radio control added (#433)
Browse files Browse the repository at this point in the history
  • Loading branch information
jdahlblom authored Oct 14, 2023
1 parent d5d5cb7 commit 0039489
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 @@ -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

0 comments on commit 0039489

Please sign in to comment.