Skip to content
View in the app

A better way to browse. Learn more.

The AVSIM Community

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Using LVARS (L:) with AxisAndOhs

Featured Replies

  • Commercial Member

Hello @ll,

the next version of AxisAndOhs will provide read&write access to the internal LVARs of the simulator.

LVARs can be queried from the simulator at runtime and are used in the AxisAndOhs RPN scripts. The app will provide a list of all LVARs that are active in the running sim so you can add them to the RPN scripts more easily. The scripts can then be triggered with any compatible external controller (Joystick, MIDI devices, Saitek Panels etc.) or accessed via the AAO WebAPI.

If current owners of AAO would be willing to help testing this, please send me an email or a PM here in the forum with your order number.

Here are a couple of examples from the QualityWings 787

Pressing the STD Key:
1·(>L:QW_MCP_L_BRST_STD_Button,·Number)

Decrease the MCP speed:
1·(>L:QW_MCP_Speed_knob_clicked,·Number)

Increase the MCP speed:
2·(>L:QW_MCP_Speed_knob_clicked,·Number)

Turn the Window wiper knob right
(L:QW_OH_L_WIPER_Switch,·Number)·3·<·if{·(L:QW_OH_L_WIPER_Switch,·Number)·1·+·(>L:QW_OH_L_WIPER_Switch,·Number)·}

Turn the Window wiper knob left
(L:QW_OH_L_WIPER_Switch,·Number)·0·>·if{·(L:QW_OH_L_WIPER_Switch,·Number)·1·-·(>L:QW_OH_L_WIPER_Switch,·Number)·}

Storm lights on
1·(>L:QW_OH_STORM_Button, Number)

Storm lights off
0·(>L:QW_OH_STORM_Button, Number)

 

Best regards
 

Edited by Lorby_SI

LORBY-SI

  • 1 month later...

Vielen Dank Oliver for this!

The good news is that this works!! its a huge step forward, congrats on your LVAR/HVAR .wasm module!

The not so good news are that I will have to rewire my entire AAO A320Neo logic and that with power now comes responsability. 

Anyway, Since the X-Touch Mini only has "press" (and not "pull"), the first thing that I tried was enabling SPEED_MODE_SELECTED on the Neo at the same time with INC/DEC MCP speed change via an encoder.

Initially I tried by creating an additional binding for H:A320_Neo_CDU_MODE_SELECTED_SPEED to the same INC/DEC encoder  event. This seemed to work but only if I enable the SPEED_SELECTED mode on its own first (which beats the purpose), otherwise it resets the speed value to zero every time I rotate the encoder.

So i tried instead creating an RPN script that will enable MODE SELECTED only if it is not already on, but this doesnt seem to work.

(>H:A320_Neo_CDU_MODE_SELECTED_SPEED,·Number)·0·==·if{1·(>H:A320_Neo_CDU_MODE_SELECTED_SPEED,·Number)·}·els{·0·(>H:A320_Neo_CDU_MODE_SELECTED_SPEED,·Number)·}

I guess I may be getting wrong the expected value for the variable to feed the if{

?

Edited by pty1973cm

  • Author
  • Commercial Member
2 hours ago, pty1973cm said:

So i tried instead creating an RPN script that will enable MODE SELECTED only if it is not already on, but this doesnt seem to work.

The script that you have posted there is a toggle, every actuation sets the speed variable from 0 to 1 and the next sets it back from 1 to 0. Is that what you wanted?

I thought that the managed and selected modes were controlled by the SLOT variables and events, see also here:

Asobo A320: Managed / Selected AP modes with AxisAndOhs - Lorby-SI Payware - The AVSIM Community

The associated variables are of the A: type:

(A:AUTOPILOT SPEED SLOT INDEX, Number) etc.

Edited by Lorby_SI

LORBY-SI

Archived

This topic is now archived and is closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.