Jump to content
Sign in to follow this  
bazonkers

Script Q for fuel cond lever setting

Recommended Posts

Hi! I was hoping you can help me sort out a script. I've been deep diving the internet for days and trying different things before asking here for help.

I'm trying to get the BKSQ Caravan to switch the condition lever depending on where the actual physical lever is set on my THQ6. I've found previous threads discussing this exact solution but it looks like it was from before the map LVars to Bvars Extras feature was depreciated so those are outdated. The setting the axis of my lever to 0 to 2 should still work given that's the variable being passed to set the position. 

I downloaded some various streamdeck setups when I set that up and have imported a BKSQ C208 xml which contains various vars for the condition level. I can test all the FUEL CondLever vars and they work as expected in the sim. I've tested the toggle High/Low and toggle Low/Off as well and they work too but I'm missing the last step to create a script that goes from High/Low/Off depending on the setting passed to it. 

What exactly does the script need to look like to solve this so I can run that script on the mixture axis with a range of 0 -2? Thanks for your help. This will will help me gain a little more understanding of how to work with other similar problems going forward. 

Share this post


Link to post
Share on other sites

You can do that on the Axis dialog itself, no need for a script.

Type the variable name "B:whatever" into the "Enter Variable" box, set Axis Min to 0, Axis Max to 2 and Rounding to int.

BVars-to-LVars is no longer needed, AAO can deal with BVars directly.

Edited by Lorby_SI

LORBY-SI

Share this post


Link to post
Share on other sites

Perfect! Thank you! I saw the old way was depreciated but I would have never guessed it was this easy. I didn't try this. For some reason on my THQ6 I have to set a range of -1 to 2 for it work right given that this throttle has a physical stop in the range that you click past to get to the bottom of the movement, in this case, where I wanted the cutoff. It all works and I'm a little smarter about this tool. Thanks! 

Edited by bazonkers

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...