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.

[NGX SDK] Help me understanding this please

Featured Replies

I'm trying to add a new feature to the sample app that comes with the NGX SDK (code)

 

 if (pS->PED_annunParkingBrake == false)
 {
  printf("\nParking Brake: [OFF]");
 }else{
  printf("\nParking Brake: [ON]");
 }

 

Just to keep it simple let's say I'm adding the above block into ProcessNGXData() // This function is called when NGX data changes

The problem is it doesn't seem to notice when the parking brake status changes as I only get the initial state.

In the same way I was able to read the status of some other systems like the landing gears, but failing with this one.

 

Would really appreciate any help.

Ok, as I will be activating the parking break from a physical switch I don't really need to check its status within the sim, but i'm still stucked with some other events that don't seem to be handled by the structure.

 

LE Flaps Transit or LE Flaps Ext indicators, just to name couple examples.

 

pS->MAIN_annunLE_FLAPS_TRANSIT
pS->MAIN_annunLE_FLAPS_EXT

 

Both are permanently empty.

 

 

Any input will be welcome.

  • Commercial Member

There are a great deal of steps you're missing. You have to read through the FSX SDK on SimConnect and how to read data via SimConnect. A great deal of knowledge required to accomplish what you're wanting is contained within the SDK.

Ed Wilson

Mindstar Aviation
My Playland - I69

You don't seem to understand, as stated before, I'm extending the sample code that comes with the SDK, which is already a fully functional piece of code.

  • Commercial Member

Yes... the example appears to be requesting a custom data structure that isn't a default SimConnect variable... thus asking for help in the SimConnect forum isn't going to get very far. I didn't bother going through the entire code prior to my last post. My bad.

 

You need to be talking to PMDG about this... it's not something for the SimConnect forum.

Ed Wilson

Mindstar Aviation
My Playland - I69

You need to be talking to PMDG about this... it's not something for the SimConnect forum.

 

They don't provide support about this, it's clearly stated in the SDK documentation.

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.