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 vars

Featured Replies

Hello,

I have the following variable from the file PMDG_777X_SDK.h:

float FUEL_QtyCenter; // LBS

Using AAO Observer, I have the variable (PMDG:FUEL_QtyCenter), but it returns no value.

How can I use these PMDG variables that have an entry (PMDG:XXXX)

 

Edited by ezkampf

  • Author
On 8/2/2024 at 11:57 AM, Lorby_SI said:

Make sure to use AAO version 4.40. The data structures have been updated to the latest PMDG SDK

 

Hello. Yes, I was using it, but then I noticed that I made a mistake by putting the automatic scripts for the PMDG DATA and PMDG CDU, fixed now.

Currently, I've been having trouble setting the flaps. There are some sim events as shown in the attached images, but they don't work.

Can you provide guidance on this or is it a limitation of PMDG?

spacer.png

  • Commercial Member
58 minutes ago, ezkampf said:

but they don't work.

How and where are you using them exactly?

In general they are all supposed to work when used correctly. The custom events of the new 777 are more partial to what value they are operated with.

Edited by Lorby_SI

LORBY-SI

  • Author
23 minutes ago, Lorby_SI said:

How and where are you using them exactly?

In general they are all supposed to work when used correctly. The custom events of the new 777 are more partial to what value they are operated with.

In the image, you can see a script where the event is called, but nothing happens. You can see in the observer window that the script was executed.

Im trying to call flaps 5

spacer.png

Edited by ezkampf

  • Commercial Member
1 hour ago, ezkampf said:

In the image, you can see a script where the event is called, but nothing happens. You can see in the observer window that the script was executed.

Im trying to call flaps 5

spacer.png

That is because you are calling it with the value "1". With the PMDG 777 the events are very sensitive to what value you are sending to them. Many of those events that used to work with just 0 or 1 now require the PMDG Mouse Codes instead:

536870912·(>K:#74705)·131072·(>K:#74705)

(left mouse down - left mouse release)

The PMDG Mouse Codes are in the events treelist too, in their own group (and in the AAO manual, and the PMDG SDK doc). In this case, you can probably get away with just the left mouse down code. But I wouldn't count on it, it is possible that the PMDG logic will lock up at some point when you always only send the Down events. That goes for the ROTOR_BRAKE codes too.

Edited by Lorby_SI

LORBY-SI

  • Author
41 minutes ago, Lorby_SI said:

That is because you are calling it with the value "1". With the PMDG 777 the events are very sensitive to what value you are sending to them. Many of those events that used to work with just 0 or 1 now require the PMDG Mouse Codes instead:

536870912·(>K:#74705)·131072·(>K:#74705)

(left mouse down - left mouse release)

The PMDG Mouse Codes are in the events treelist too, in their own group. In this case you can probably get away with just the left mouse down code. But I wouldn't count on it.

The code provided works.

How can I understand which mouse code I should use for each type of script? So far, I have only had issues with flaps, but I am just wondering.

  • Commercial Member
1 minute ago, ezkampf said:

How can I understand which mouse code I should use for each type of script? So far, I have only had issues with flaps, but I am just wondering.

I have no idea, you would have to ask PMDG. The PMDG SDK docs don't mention any of this. It's always trial&error. I always try 0 and 1 first, then the left down/up. With some events it seems obvious that they require mouse wheel codes (rotary encoders). And some require actual values. The only indication is their name or associated control in the VC.

LORBY-SI

  • Author
1 minute ago, Lorby_SI said:

I have no idea, you would have to ask PMDG. The PMDG SDK docs don't mention any of this. It's always trial&error. I always try 0 and 1 first, then the left down/up. With some events it seems obvious that they require mouse wheel codes (rotary encoders). And some require actual values. The only indication is their name or associated control in the VC.

Got it.

Thank you for your prompt help. It solved a problem that seemed significant to me. I will be more attentive to alternatives beyond numerical values.

Create an account or sign in to comment

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.