Jump to content
Sign in to follow this  
John-Maguire

MSFS (SU6) C172 Fuel pump

Recommended Posts

I am using the x-touch mini with MSFS. Setting up a profile for the C172. For most switches I can read the value of the current switch position and then write an RPN script to switch on/off with a short/long push on the same button. This works well as I can also set the light on the x-touch for that button to be on or off at the same time.

One switch does not seem to have a LVAR. There are a few possible candidates including (A:GENERAL·ENG·FUEL·PUMP·SWITCH,·Bool) and (A:GENERAL·ENG·FUEL·PUMP·ON,·Bool). None of them change value when the fuel pump switches between off and on.

I can toggle the fuel pump on off with (>K:TOGGLE_ELECT_FUEL_PUMP), but the value (0,1) of the BOOL I cannot find anywhere to read this. It's possible the BOOL is not updated as the switch moves and just stays at zero. If anyone has a solution to read the value of the fuel pump position be good to know.

Any solution to have the light on the x-touch change as the fuel pump is switched on/off most welcome.

Share this post


Link to post
Share on other sites
1 hour ago, John-Maguire said:

One switch does not seem to have a LVAR. There are a few possible candidates including (A:GENERAL·ENG·FUEL·PUMP·SWITCH,·Bool) and (A:GENERAL·ENG·FUEL·PUMP·ON,·Bool). None of them change value when the fuel pump switches between off and on.

Those could be indexed (they were in the previous sims). Unfortunately the MSFS SDK documentation doesn't include that information (at least not in a way that I can find it), so I always take a look into the FSX or P3D spec. But with MSFS many A: vars have been indexed that weren't before.

Try this:

(A:GENERAL·ENG·FUEL·PUMP·SWITCH:1,·Bool) and (A:GENERAL·ENG·FUEL·PUMP·ON:1,·Bool).

Edited by Lorby_SI
  • Upvote 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...