Most of the commonly reported issues and questions are answered in the Frequently Asked Questions (FAQ) option under the Support menu of this website.
*** PLEASE NOTE ***
Your forum account is not the same as the account used in the shop. They are completely separate accounts.
Your forum account is not the same as the account used in the shop. They are completely separate accounts.
1st December: A new version of the GoFlight Interface Tool for MSFS is now available.
12th November: A new version of the GoFlight Interface Tool for X-Plane is now available.
6th June: A new version of Virtual Flight Sim Hardware is now available (huge update)
21st November: A new version of the GoFlight Interface Tool for FSX/FSXSE/P3D is now available.
Using custom named variables in Bespoke Events
An interesting problem I am trying to solve is using one rotary on the RP48 to change the Selected ALT by either 100s or 1000s. Its fairly easy to create custom bespoke events to do the +100/-100 case and assign that to one rotary and then the +1000/-1000 case and assign that to another rotary. However, I would like to do this with one rotary using a push button on the RP48 underneath that rotary to track state (100/1000).
For example, I toggle the button and it sets a custom variable 0 or 1 and then I can access that custom variable in an IF condition to decide if I will increment Selected ALT by 100 or 1000. Another approach is to actually set this custom variable to 100 or 1000 via the push button toggle and then in the ALT INC/DEC Bespoke events increment by that variables value.
The critical piece I am missing is how to create a named variable that can be accessed between different Bespoke Events. I would like to use a newly defined variable (not piggyback on some existing obscure X-Plane dataref). Would this be possible? Using this approach for CRS1/CRS2 VOR changes using one RP48 rotary is a similar problem that could be solved with this approach.
For example, I toggle the button and it sets a custom variable 0 or 1 and then I can access that custom variable in an IF condition to decide if I will increment Selected ALT by 100 or 1000. Another approach is to actually set this custom variable to 100 or 1000 via the push button toggle and then in the ALT INC/DEC Bespoke events increment by that variables value.
The critical piece I am missing is how to create a named variable that can be accessed between different Bespoke Events. I would like to use a newly defined variable (not piggyback on some existing obscure X-Plane dataref). Would this be possible? Using this approach for CRS1/CRS2 VOR changes using one RP48 rotary is a similar problem that could be solved with this approach.
Comments
You are not able to name or rename these bespoke variables.
You will need to keep your own documentation as to which 'Bes Var' you have used and its purpose.
Ive made a suggestion for future versions of GIT to allow us to add comments into our code, so we can document the purpose of each Bes Var.
But for now, you will have to document it separately.
David
I was going to write a small plugin that exposed a unique custom dataref (that I was sure is not used by anything else) to hold the ALT increment value, but the Bes Vars work just as well. I usually prefer not to piggyback on existing datarefs since it makes things confusing and you are never sure they will not be used at some point.