Open lesthegringo opened 1 year ago
we need more info. Plane/ bios version/ which documentation
Apologies, should have put that in!
The aircraft is A10C, the faulty DCS Bios is the latest one that I downloaded here https://github.com/DCSFlightpanels/dcs-bios - I can't see a version number
the correct code comes from the old offline version in HTML form which will not allow me to paste here so all I can do is paste a text copy of the entire TACAN page - sorry if that's not right, however the part of the script that needs changing is the one above
Right Channel SelectorA-10C/TACAN_1
Input Interface: fixed_step Message: TACAN_1 <DEC|INC> Description: switch to previous or next state
DcsBios::RotaryEncoder tacan1("TACAN_1", "DEC", "INC", PIN_A, PIN_B);
Input Interface: action Message: TACAN_1 TOGGLE_XY Description: Toggle TACAN Channel X/Y
DcsBios::ActionButton tacan1ToggleXy("TACAN_1", "TOGGLE_XY", PIN);
Output Type: integer Address: 0x1158 Mask: 0xf000 Shift By: 12 Max. Value: 10 Description: selector position
void onTacan1Change(unsigned int newValue) {
/ your code here /
}
DcsBios::IntegerBuffer tacan1Buffer(0x1158, 0xf000, 12, onTacan1Change);
Left Channel SelectorA-10C/TACAN_10
Input Interface: fixed_step Message: TACAN_10 <DEC|INC> Description: switch to previous or next state
DcsBios::RotaryEncoder tacan10("TACAN_10", "DEC", "INC", PIN_A, PIN_B);
Output Type: integer Address: 0x1158 Mask: 0x0f00 Shift By: 8 Max. Value: 10 Description: selector position
void onTacan10Change(unsigned int newValue) {
/ your code here /
}
DcsBios::IntegerBuffer tacan10Buffer(0x1158, 0x0f00, 8, onTacan10Change);
TACAN ChannelA-10C/TACAN_CHANNEL
Output Type: string Address: 0x1162 Max. Length: 4 Description: TACAN Channel
void onTacanChannelChange(char newValue) {
/ your code here /
}
DcsBios::StringBuffer<4> tacanChannelBuffer(0x1162, onTacanChannelChange);
TACAN Mode DialA-10C/TACAN_MODE
Input Interface: fixed_step Message: TACAN_MODE <DEC|INC> Description: switch to previous or next state
DcsBios::RotaryEncoder tacanMode("TACAN_MODE", "DEC", "INC", PIN_A, PIN_B);
Input Interface: set_state Message: TACAN_MODE
i looked the HTML ref page and bort booth look good to me like you write -> 5 PINs (latest master build)
Maybe i dont get the problem or i misunderstood something. A screenshot makes it maybe more clear.
When I click on control reference, this is what I get for A10C - TACAN
On Wed, Jul 5, 2023 at 10:00 PM Sven @.***> wrote:
i looked the HTML ref page and bort booth look good to me like you write -> 5 PINs [image: 2023-07-05] https://user-images.githubusercontent.com/10798954/251253656-1b80035a-df23-46b9-90e9-1c45006e2241.png [image: 2023-07-05 (1)] https://user-images.githubusercontent.com/10798954/251253667-901df1d8-9d29-4853-96ca-81f371924539.png
Maybe i dont get the problem or i misunderstood something. A screenshot makes it maybe more clear.
— Reply to this email directly, view it on GitHub https://github.com/DCSFlightpanels/dcs-bios-arduino-library/issues/47#issuecomment-1622306344, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMJ6YS6S5GFJTIJCQ3PMVPTXOW2UJANCNFSM6AAAAAAZZXEGLI . You are receiving this because you authored the thread.Message ID: @.***>
?
can you not see the attachments?
On Sat, Jul 8, 2023 at 2:13 PM Sven @.***> wrote:
?
— Reply to this email directly, view it on GitHub https://github.com/DCSFlightpanels/dcs-bios-arduino-library/issues/47#issuecomment-1627128318, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMJ6YS747R7ZQIG7LL5Y4LLXPE6EBANCNFSM6AAAAAAZZXEGLI . You are receiving this because you authored the thread.Message ID: @.***>
no i dont see an atachment sorry. you can upload the pic direct in the text field
Hopefully you can see them now - this is the screen I get when I use the Web interface based BIOS and click on 'control reference in the menu on the left
[image: DCS BIOS error.jpg] [image: DCS BIOS error2.jpg]
On Wed, Jul 12, 2023 at 8:53 PM Sven @.***> wrote:
no i dont see an atachment sorry. you can upload the pic direct in the text field
— Reply to this email directly, view it on GitHub https://github.com/DCSFlightpanels/dcs-bios-arduino-library/issues/47#issuecomment-1632967075, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMJ6YSYQXF4CWEQHDSXQQJLXP3P75ANCNFSM6AAAAAAZZXEGLI . You are receiving this because you authored the thread.Message ID: @.***>
sorry but the immages dont work for me
I don't understand where you got the example of "New DCS Bios script". In your first post, that delcares an array of 9 items but only lists 5. It also passes the array of size 9 into DCS bios. There are only 5 positions of that switch and 5 pins.
The behaviour of the rotary switch in game does not match the actual input using the script from the newer DSC Bios documentation,
I loaded the old script in place of the new, and it works perfectly
New DCS Bios script (problematic)
const byte tacanModePins[9] = {PIN_0, PIN_1, PIN_2, PIN_3, PIN_4} DcsBios::SwitchMultiPos tacanMode("TACAN_MODE", tacanModePins, 9);
Old DSC Bios script (working)
const byte tacanModePins[5] = {PIN_0, PIN_1, PIN_2, PIN_3, PIN_4}; DcsBios::SwitchMultiPos tacanMode("TACAN_MODE", tacanModePins, 5);