Sign in to follow this  
jvela

ngx_switch_xxx variable. What for?

Recommended Posts

Hi,

 

I have found the variable "ngx_switch_104_a" (and a lot of them changing the number) across a lot of functions defined in the PMDG 737 NGX 4.5 module.

What are they for, how can be used and where can I find a list with the descriptions of all of them (from ngx_switch_1_a to ngx_switch_999_a)?

Thanks in advance,

 

Jose

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Hi,

 

I have found the variable "ngx_switch_104_a" (and a lot of them changing the number) across a lot of functions defined in the PMDG 737 NGX 4.5 module.

What are they for, how can be used and where can I find a list with the descriptions of all of them (from ngx_switch_1_a to ngx_switch_999_a)?

Thanks in advance,

 

Jose

 

 

The ngx_switch_xxx LVars are PDMG's method of determining the position of the various switches. This information is only released to approved developers.

 

You can use the LINDA Tracer to find the appropriate xxx value for each simulation button. Once you know the offset number a LINDA function has to test the LVar and then set it to simulate the pressing of the button by using ipc.control function using the base variable + the offset number and to write the changed value to the LVar. You will see plenty of samples in the PMDG737NGX module code.

Share this post


Link to post
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
Sign in to follow this