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.

PMDG events and button - specifically Gear

Featured Replies

Hi,

So been knocking around with this and my google-fu isn't good enough to see the answer....

I'm trying to set up a Bravo gear lever with the new inbuilt events but I'm missing something as it's not working for me.

I set up the button for gear down - key down event #70087 (EVT_GEAR_LEVER) with a value of 2 for down and 0 for up. I can watch the "receiving events from simulator" window and see either 0(>K:#70087) or 2(>K:#70087) show up so I believe it's making it to the sim, but there's no action on the gear handle. Not sure exactly what I'm missing. The only reference to the values I can see is the line in the SDK

    unsigned char    MAIN_GearLever;                        // 0: UP  1: OFF  2: DOWN

but that doesn't happen. Not sure what I'm missing?

Thanks for pointers, 

 

Edited by Peter Clark

  • Author
1 minute ago, Dazzlercee23 said:

Have you got a space between 0 and (, and 2 and (? 

Hi,

No - I'm trying to use the inbuilt PMDG SDK triggers;

spacer.png

I've just checked my PMDG settings for gear and I use the standard events:

Key Down Event: GEAR_UP (Sets gear handle in the UP position)
Key Up Event:     GEAR_DOWN (Sets gear handle in the DOWN position)

This is on the TCA Yoke that has a gear lever that operates a single switch, either ON (key down) or OFF (key up).

 

  • Commercial Member

Which sim are we talking about, MSFS or P3D? And what PMDG plane is that?

These PMDG SDK events often expect the (also PMDG SDK) mouse codes:

536870912 (>K:#70087)
2147483648 (>K:#70087)

 

Edited by Lorby_SI

LORBY-SI

  • Author

Hi,

Ah, that’s probably what I was missing. This is the 800 in MSFS. I’ll give it a shot when I get back to a computer. 

Thanks!

  • Author

OK, so that does work. I guess I was misinterpreting the PMDG SDK;

"Example 1: Sending a value via the numeric parameter will tell the simulation to place the switch/knob/lever/control into a specific position. All values below 8192 are treated as a numeric position to which the item being controlled should be placed.
You can determine the positions of various knobs by looking up in the PMDG_NG3_SDK.h file. Boolean parameters have no position information listed, but non Boolean parameters will include position information in the comments following the variable declaration:


unsigned char ELEC_BatSelector; // 0: OFF 1: BAT 2: ON "

figuring that it would work the same for 

unsigned char    MAIN_GearLever;                        // 0: UP  1: OFF  2: DOWN

Thanks again!

  • Commercial Member

 

14 minutes ago, Peter Clark said:

All values below 8192 are treated as a numeric position to which the item being controlled should be placed.

As the default simulator gear events are working, maybe nobody ever noticed that this event doesn't work that way.

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.