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.

Help with toggling fuel pump switches in PMDG 737-700

Featured Replies

Hello All,

Any guidance greatly appreciated. I have absolutely zero programming or scripting ability. I've had AAO for over a year and a half but have only really tried using it lately with the PMDG 737.

Hardware is HC Alpha, Bravo and X-Touch Mini and have many functions working fine but I can't get the fuel pump switches to toggle properly when first entering the Aircraft. So the fuel pump switches are all in the off position when the plane loads but as soon as AAO enters the picture the fuel pump switches go haywire. Once I manually turn them all to the off position they appear to work perfectly afterwards. I have them programmed to the 5 Alpha light switches left to right. 1 through 4 discreet with switch 5 having both center pumps together. And as I said, they work fine once I manually reset them all to the off position.

I'm using scripts found on the internet. I'm sure I need to provide more info on the scripts but don't know what would be needed to help troubleshoot.

 

Thank you again in advance of providing any guidance.

Edited by Flypops

  • Commercial Member
1 hour ago, Flypops said:

Thank you again in advance of providing any guidance.

What does "haywire" look like? Is that an issue with the Alpha switches or with the scripts? What happens when you assign the scripts to your X-Touch instead? Do you have any autoscripts running that might be interfering? And what do your scripts look like, which method are you using?

I wouldn't expect anything to happen until you flip a physical switch for the first time. Unless the Alpha is sending weird or implausible data when AAO is querying it for the very first time. That would also be the only time when it is actively asking the controller for data, after that the app is just waiting for messages being sent by the device. 

Edited by Lorby_SI

LORBY-SI

I have the same issue.  I posted about this some time ago and never really got a clear solution for it.  I have quite an extensive set of hardware, MCP, EFIS, throttle quadrant, pedals, yoke, etc.  I use LINDA, FSUIPC, and GoFlight interface tool.  Neither of those programs are successful in setting the fuel cutoff switches.  I don't know if it's an issue with MSFS or PMDG.  In P3D, PMDG allowed you to assign keys for the controls, but not so with the MSFS version. 

I have been recommended to use SPAD.Next.  It is an extensive program and very involved and you have to pay for it if you want support for it and also to use their forum.  Good luck

Gnacino

 

 

  • Commercial Member
23 minutes ago, Gnacino said:

In P3D, PMDG allowed you to assign keys for the controls, but not so with the MSFS version. 

There are two ways to do this. Either with their new LVar/ROTOR_BRAKE scheme, or with the classic PMDG SDK variables and custom events. The official PMDG SDK has been integrated into the PMDG 737 for MSFS a couple of weeks ago.

So I need to see the actual scripts first...

Edited by Lorby_SI

LORBY-SI

  • Author

Thank you for your reply. I figured out what is triggering the switches. When I load into the plane the first thing I do is set my Hat switch (on Alpha) to the down position to begin my view scan of the cockpit. It is that initial Hat switch movement that causes the switches indicated to move from the OFF to the ON position. Any further movements of the Hat switch have no affect on those Fuel Pump switches.

1  FWD

2  FWD & AFT

CTR RT

The other two switches (1 AFT and CTR L) aren't affected.

I'm using the Controls in the sim to control the Hat switch functions to cycle through the view options.

  • Author

So I just went into the sim Control options and removed all hat switch functions but believe it or not when going back into the cockpit and activating the down position on the hat switch it now sets the Fuel Pump switches just as I've described above but now it also triggers the Ground Power switch. 

So how can that be? There are no functions assigned to that switch.

 

Edit: Disregard. I still had a couple of views that I needed to clear from the Hat switch. It is now free of all functions in the sim and in fact it is now NOT affecting the fuel switches. That begs the question.....why was it? I'm going to have to spend some time getting those view functions back into that Hat switch but it will have to be a systematic approach so I can isolate the culprit, I guess. I don't know any other way of doing it.

Edited by Flypops

  • Author

So after all of that it had nothing to do with the Hat switch. I just did a complete re-start of my PC because AAO was not responding to any function. As soon as I loaded into the cockpit I started AAO and it did the exact same thing with the Fuel and GRD PWR switches. Very frustrating.

  • Author

They are 2 position toggle switches. I'm trying to figure out how to find and copy the script to show you.

  • Author

This is the script for: PUMP CENTER LEFT TOGGLE

4501·(>K:ROTOR_BRAKE)

  • Commercial Member
6 minutes ago, Flypops said:

This is the script for: PUMP CENTER LEFT TOGGLE

4501·(>K:ROTOR_BRAKE)

I would suggest that you use ON / OFF scripts instead of toggles for 2-state switches, bound to each switch position. Know what I mean? ON: Check if the FP is already on, and only if not, send the event. OFF: vice versa. 

These scripts can probably be done using the LVars with the ROTOR_BRAKE, but they will work better with the PMDG SDK.

Also, there is a catch with the ROTOR_BRAKE method. It simulates the mouse click - and you should actually send two events (mouse button down and up). Otherwise this is like clicking and holding the mouse button down indefinitely. The PMDG logic will eventually correct for this, but that doesn't always happen.

Edited by Lorby_SI

LORBY-SI

  • Author

Okay, thank you. As I said above I have zero understanding of the scripting and I've just been trying to use existing scripts and often the choices are limited. Sometimes there are toggles available and sometimes only "on" and "off" and vice versa. I know once I get the grasp of the scripting it should be much easier but I've not yet had that "come to ******* moment". 🙃

  • Commercial Member

Try to find a script collection on flightsim to. Those are usually part of the StreamDeck or X-Touch packages. Disregard the StreamDeck/whatever part, you only want to import the Script file. Those should have all scripts you need ready made.

Here is an example for the left center pump switch, an ON and and OFF script using the LVar/RB method (I copied them from one of those script collections just now)

L CTR ON:
(L:switch_45_73X,·number)·0·==·if{·4501·(>K:ROTOR_BRAKE)·}

L CTR OFF:
(L:switch_45_73X,·number)·100·==·if{·4501·(>K:ROTOR_BRAKE)·}

Also, when assigning them to Buttons in AAO, maybe activating the option "Joystick:Switch" is a good idea. (below middling on the dialog, left side)

Edited by Lorby_SI

LORBY-SI

  • Author

Thank you again kind sir. I shut everything down for the moment, just too much frustration for too long a period and I have to walk away. I will fire it up again in a bit and put your above example to the test. I'm sure once I get a few simple scripts under my belt it will become clear but so far it has been anything but.

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.