Demo: LVAR write access for any aircraft control

@ImpoliteGem5317 If I’m not mistaken, I was using the native FS2020 A320_Neo. I think I did something wrong (pretty sure of that :slight_smile: ).

I have also the FBW A32NX dev version. I used the Behavior window and pressed CTRL-G when the CSTR button was highlighted allowing me to find the below code that is indeed doing the same as you described (slightly different syntax - your version is shorter, but I understand that both are doing the same).

image

So I guess that the “BUTTON_CODE” is to toggle the button and the “INDICATOR_CODE” is to control the green indicator in the button? I’m still learning to interpret this RPN notation (still a nightmare because I’m not used to it :frowning: ). The SimConnect SDK documentation is very helpful.

From the above screenshot, I have a few questions:

  • What does “enum” exactly do? Why can’t I just use (L:A320NX_EFIS_L_OPTION)? Or is the syntax required to have a unit (like meter, feet, …), and because this variable doesn’t have a unit, we have to use “enum”?
  • What is “1 sp0 10 (L:A320NX_EFIS_L_OPTION, enum) ==” exactly doing? I read the documentation about sp0, but don’t understand. Am I right that this code is enabling/disabling the green indicator light, or is this just a fantasy? :slight_smile: