Jump to content
The simFlight Network Forums

Caravan Condition Lever Triggering Between High/Low?


pilotjohn

Recommended Posts

Hi Everyone,

I'm looking to see if anyone managed to get the Caravan condition lever to work through FSUIPC?

It seems to be using SET_FUEL_VALVE_ENG1, but something's off. It has 3 positions: cutoff, low and high.

When moving the lever in the sim, I see the events but both high and low have a param of 1, and cutoff 0.

Sending these form FSUIPC gets me cutoff at 0, and low at 1, but I can't seem to get into "high" from "low" or from "high" to "low" (sending 1 as param).

I found an Lvar called Condition_Lever_CutOff_1, which is set to 2.0 when the level is high, but setting this via FSUIPC does nothing in the aircraft.

PJ

 

 

Link to comment
Share on other sites

  • 1 month later...

I use a combo of FSUIPC and Axis & Ohs and Streamdeck profiles .... hence the A & Ohs... loads of presets.

Could someone explain why I can watch sim variables as they occur but only L vars ... not B vars.

Why can't I see B vars occur ?

The Black Square Caravan has a 3 position condition lever and I can switch between Cutoff and Low/Ground idle easily... but the High Idle is a B Var and I can only get it to show its activated (I e after manually changing it using the mouse) but cannot "initiate" the change using a button.

Why are things so complicated  ?

Sad face x5..... 

 

Thnx

Link to comment
Share on other sites

4 hours ago, Gabe_62 said:

Could someone explain why I can watch sim variables as they occur but only L vars ... not B vars.

B vars are "input events" - see https://docs.flightsimulator.com/html/Additional_Information/Reverse_Polish_Notation.htm (section Variable Types).
We can only provide access to the variable types permitted in the SDK - A type (simvars) and k type (events) via simconnect, and L type (lvars) and h type (hvars) via the gauges API using the WASM. You may be able to use other variable types via calculator code, but you cannot read/know their value - if they have one. As a b-type variable is an input event, I doubt it has a value - it is what you input.... Then again, I know nothing about b type variables - maybe ask about those on the Asobo forums....

4 hours ago, Gabe_62 said:

Why can't I see B vars occur ?

As I said, they are input events, whatever that means, and there is no provision in the SDK to access or know about such variable types.

4 hours ago, Gabe_62 said:

The Black Square Caravan has a 3 position condition lever and I can switch between Cutoff and Low/Ground idle easily... but the High Idle is a B Var and I can only get it to show its activated (I e after manually changing it using the mouse) but cannot "initiate" the change using a button.

I think the b var is for control. as it is an input event. Try listing the available lvars to see if the state is held in one of those. As I don't have this aircraft, and it isn't listed in the MF presets, I can't really help with this.

4 hours ago, Gabe_62 said:

Why are things so complicated  ?

Ask Asobo / MSFS - it has been very difficult for us 3rd party developers to try and provide what we can with the APIs that they provide....

John

Link to comment
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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.