maartentamboer / X-Touch-Mini-FS2020

Control FS2020 with a Behringer X-Touch Mini
https://dev-tty.nl/X-Touch-Mini-FS2020/
MIT License
57 stars 19 forks source link

Setting L-Var value? #129

Open Engin1980 opened 1 year ago

Engin1980 commented 1 year ago

I am trying ot set PWS switch in A32NX, which, according to the mobilfight (and the plane itself in FS2020) is available as L:Var A32NX_SWITCH_RADAR_PWS_Position.

I have adapted the code, but unfortunately there is no change in the sim when the button is pressed. I have studied https://github.com/maartentamboer/X-Touch-Mini-FS2020/issues/39, but it haven't moved me closer to the solution.

Currently, I have in my .json is like:

...
"index": 10,
"event_press": {
  "type":"condition",
  "event": [ "{{ data_set_simvar_value('A32NX_SWITCH_RADAR_PWS_Position', 1)  }}" ]
}
...

Help from anyone experienced appreciated. TIA