Cockpitbuilders.com
Microsoft FSX => FSX - General Discussion => Topic started by: maciekish on March 08, 2014, 03:32:29 AM
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?