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.

MSFS (SU6) C172 Fuel pump

Featured Replies

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.

  • Commercial Member
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

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.