Jump to content
Sign in to follow this  
gaab

Using an axis to assign values to LVars

Recommended Posts

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

Share this post


Link to post
Share on other sites

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
  • Like 1

LORBY-SI

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...