Jump to content

[NGX SDK] Help me understanding this please


Recommended Posts

Guest Xtremme
Posted

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.

Guest Xtremme
Posted

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
Posted

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

Guest Xtremme
Posted

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
Posted

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

Guest Xtremme
Posted

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

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...