January 10, 20251 yr Hi, Firstly I want to thank you for introducing me to BVar theybhave made life much easier I'm almost finished with the C-152 profile now and I may share it for others as I have mapped almost every function of the Asobo aircraft so far. I am struggling with a few last functions on the streamdeck all to do with the transponder Firstly I have used a toggle for the identify on the XPDR which works fine but I can't find a variable that works to tell my streamdeck if it's on or off. Secondly I am struggling with the actual transponder dials I have used BVar NAVCOM_Transponder_Code_THOUSANDS_Inc but nothing happens... would you have any advice or solution to this... and would you know the variable for me to read the value back to a separate text guage? Thanks for the support as always.. as I say i will share the profile with the community once done to help others get started.
January 11, 20251 yr Commercial Member 9 hours ago, Sanguinus0014 said: Firstly I have used a toggle for the identify on the XPDR which works fine but I can't find a variable that works to tell my streamdeck if it's on or off. You can do both with the BVars, you can also read their value. Read the state (0-4 for each position of the knob) (B:NAVCOM_Transponder_Mode) Change the position on the knob 1 (>B:NAVCOM_Transponder_Mode_Inc) 1 (>B:NAVCOM_Transponder_Mode_Dec) n (>B:NAVCOM_Transponder_Mode_Set) (n from 0 to 4) Or create a Toggle script for single button operation. On the StreamDeck most authors use sequence scripts (each time you call this script, the transponder turns to the next position in the sequence, so you can operate it with a single button) 0·1·2·3·4·3·2·1·(B:NAVCOM_Transponder_Mode)·(L:XpdrSW)·8·iseq·(>B:NAVCOM_Transponder_Mode_Set)·(>L:XpdrSW) 9 hours ago, Sanguinus0014 said: Secondly I am struggling with the actual transponder dials I have used 1 (>B:NAVCOM_Transponder_Code_THOUSANDS_Inc) 1 (>B:NAVCOM_Transponder_Code_THOUSANDS_Dec) Are working fine here. Same for HUNDREDS, TENS and ONES Maybe you have a typo in there or the SD action is not configured correctly? Note: I am writing them as scripts, because I test them in the AAO Script Editor to see if they work. Much more convenient than fiddling with the StreamDeck. When I'm sure that they work, I then copy them over to the SD Actions. Edited January 11, 20251 yr by Lorby_SI LORBY-SI
January 11, 20251 yr Author Thank you for the reply All the BVars for some reason had stopped working and when i have restarted the sim this morning they're all working fine so I must've written them correctly at the time but something had stopped all of them working. All that I can't find is a variable to read for each Dial to display the transponder value for each Dial in a text guage. I've got the transponder mode Dial to turn OK but there is an identify button on the right of it that turns red when you click to identify.. I've got the function to work on a toggle button but I can't seem to find a variable to read whether the button is on or off to swap the image in the streamdeck. Thanks as always
January 11, 20251 yr Commercial Member 48 minutes ago, Sanguinus0014 said: All that I can't find is a variable to read for each Dial to display the transponder value for each Dial in a text guage. You mean that you want to display the transponder code ? Isn't that in the simulator variable? (A:TRANSPONDER CODE:1, Number) Edited January 11, 20251 yr by Lorby_SI LORBY-SI
January 11, 20251 yr Commercial Member 52 minutes ago, Sanguinus0014 said: I can't seem to find a variable to read whether the button is on or off to swap the image in the streamdeck Define "find" - where are you looking for them? First thing, I would check the actual simulator variables. This is not just a button with lights and no function (there are those too), but it actually triggers an aircraft system: (A:TRANSPONDER IDENT:1, Bool) Edited January 11, 20251 yr by Lorby_SI LORBY-SI
January 11, 20251 yr Author 16 minutes ago, Lorby_SI said: You mean that you want to display the transponder code ? Isn't that in the simulator variable? (A:TRANSPONDER CODE:1, Number) I was hoping based on how I've laid the buttons out - 1 to increase and 1 to decrease each of the 4 dials that I could put a text guage between each set displaying the individual number for each Dial.
January 11, 20251 yr Author 14 minutes ago, Lorby_SI said: Define "find" - where are you looking for them? First thing, I would check the actual simulator variables. This is not just a button with lights and no function (there are those too), but it actually triggers an aircraft system: (A:TRANSPONDER IDENT:1, Bool) I can't remember if I tried this last night ill have another look on the simulator as soon as put it on after lunch. I'm so close to finishing the whole profile now luckily and have leart alot so thank you again for the support you give the community.
January 11, 20251 yr Commercial Member 37 minutes ago, Sanguinus0014 said: I was hoping based on how I've laid the buttons out - 1 to increase and 1 to decrease each of the 4 dials that I could put a text guage between each set displaying the individual number for each Dial. The transponder code is saved as a single number (doesn't really make sense for the sim to store it any other way, right?). You would have to use scripts to split it into single digits for each display. LORBY-SI
January 11, 20251 yr Author 2 minutes ago, Lorby_SI said: The transponder code is saved as a single number (doesn't really make sense for the sim to store it any other way, right?). You would have to use scripts to split it into single digits for each display. Thank you. I suppose it doesn't. I'll give it a go at writing a script. Thank you
January 11, 20251 yr Commercial Member 5 minutes ago, Sanguinus0014 said: Thank you. I suppose it doesn't. I'll give it a go at writing a script. Thank you The behavior code in the sim can help you there too, it does the same thing. You do this by applying the modulo operator. On the StreamDeck, in a Text Gauge action, you set the variable type to S: and then write the required code into the box Thousands: (A:TRANSPONDER CODE:1, Number) 1000 / int 10 % Hundreds: (A:TRANSPONDER CODE:1, Number) 100 / int 10 % Tens: (A:TRANSPONDER CODE:1, Number) 10 / int 10 % Ones: (A:TRANSPONDER CODE:1, Number) 10 % Edited January 11, 20251 yr by Lorby_SI LORBY-SI
Create an account or sign in to comment