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 an axis to assign values to LVars

Featured Replies

Hi Oliver,

Is it possible to assign an Axis value to a local variable ?

For example, to implement a mixture management according to the position of an axis.

- Full Rich (95 - 100%)
- Auto Rich (60 - 80%)
- Auto Lean (10 - 40%)
- Cut  (0%)

Of course could be use for a lot of other fucntions, when the aircraft "modeling" don't use axis but discrete values/positions. (like 2 step spoilers, just to name some).

It is easy to write the RPN script as long as we can get the actual value.

Regards

Gérard

Edited by gaab

  • Commercial Member

Hello Gerard,

On the script editor window there is a button to insert the "script variable". That one is a private LVar (= it is not sent to the sim) containing the axis value as determined by physical lever position and Axis Max and Min parameters (that you can adjust on the Change Axis dialog)

The variables' name is

(L:scriptgroup-scriptname)

You can then assign this script to an axis with the Event box (second row from the top)

Edit: works for buttons too of course. The Lvar then contains the event value that you enter in the little box on the assignment dialog.

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.