Welcome to Cockpitbuilders.com. Please login or sign up.

March 28, 2024, 05:31:33 PM

Login with username, password and session length

PROUDLY ENDORSING


Fly Elise-ng
109 Guests, 0 Users
Members
Stats
  • Total Posts: 59,639
  • Total Topics: 7,853
  • Online today: 148
  • Online ever: 582
  • (January 22, 2020, 08:44:01 AM)
Users Online
Users: 0
Guests: 109
Total: 109

COUNTDOWN TO WF2022


WORLDFLIGHT TEAM USA

Will Depart in...

Recent

Welcome

Polling for EFIS status from PMDG in FSX

Started by maciekish, March 08, 2014, 03:32:29 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

maciekish

Hi,
I'm writing a C# application to interface between the 737 NGX and my Teensy hardware. While working on the EFIS panel on the glareshield i was unable to find the correct reference to read the state of the WXR, STA, WPT etc buttons.

I can toggle them using the following method:

NativeMethod.RaisePMDGEvent(SDK.PMDGEvents.EVT_EFIS_CPT_WXR, (efis_wxr.Checked ? 0 : 1));
efis_wxr.Checked = !efis_wxr.Checked;


efis_wxr is just a local RadioButton used to indicate the state in the C# app.

However if i press this button in the simulator itself, my LED on the teensy will obviously not update.

Is it possible to query the PMDG SDK for this information or am i SOL?

I can read the CMD A indicator from the NGX using this code as a reference:

pmdgData = NativeMethod.GetPMDGData();
mcp_cmd_a.Checked = (pmdgData.MCP_annunCMD_A == 1 ? true : false);


Bonus question: Where is the SDK for the 747?

Like the Website ?
Support Cockpitbuilders.com and Click Below to Donate