Jump to content
The simFlight Network Forums

Example for reading and setting MSFS PMDG 737 Lights


CTo

Recommended Posts

Hello,

 

I would like to know how to set with MSFS PMDG 737-700 the PMDG AntiCollision Lights via its variable:

I tried:

PMDG_737_NGX_Offsets pmdg = new PMDG_737_NGX_Offsets();
pmdg.RefreshData();
Console.WriteLine("AC Lights: " +pmdg.LTS_AntiCollisionSw.Value.ToString());
pmdg.LTS_AntiCollisionSw.Value = 0;
FSUIPCConnection.Process();

This showing always "AC Lights: 0" and also it does not change the lights status, no matter if it was on or off.

I know that I could set this specific light also by sending PMDG Control left mouse button click on the EVT_OH_LIGHTS_ANT_COL, but also for this it would be good to be able to read its status first and also this does not work well for more complex tasks.

 

Any hints appreciated!

Thanks

Chris

Link to comment
Share on other sites

Ah, yes I didn't notice you are using PMDG_737_NGX_Offsets().

This class was created for PMDG aircraft running in P3D. The MSFS offsets are different. I think the current list is in this thread:

The PMDG offsets for FSUIPC7 were changing quite frequently which is why I've not added them to my DLL yet. When they get finalised I will add them.

Until then, you need to declare the offsets in the normal way, using the PDF in the linked post.

Paul 

 

Link to comment
Share on other sites

A new version of my DLL is now on NuGet (3.2.23-beta). You will need to tick the [show pre-release] box in the NuGet package manager to see this version.

The current PMDG_737_NGX_Controls enum has been updated with the new controls for the MSFS 737s.

There is also a new class called PMDG_737_MFSF_Offsets for the MSFS versions of the PMDG 737s.

This works like the previous offset helpers. Details in this post if you're unfamiliar:

Paul

Link to comment
Share on other sites

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
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use. Guidelines Privacy Policy We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.