artox67

Door Offset Support Request

Recommended Posts

Posted (edited)

Hi,

 

I need a little hint how to address the door status (Door 2L) at a 777 PMDG

 

door=ipc.readUB("65DC")            --get status of 777 Door

The above just read door 1L but I need 2L

Thx

 

Frank J. Herter

Edited by artox67

Share this post


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

40 minutes ago, artox67 said:

Hi,

 

I need a little hint how to address the door status (Door 2L) at a 777 PMDG

 

door=ipc.readUB("65DC")            --get status of 777 Door

The above just read door 1L but I need 2L

Thx

 

Frank J. Herter

Frank,

Our SDK has all the door status. Check the PMDG_777X_SDK.h file for all possible status

Share this post


Link to post
Share on other sites

Hi Chris,

 

thx for reply.

I saw all the status but at the moment I don't know how to address the relevant door (2L) to get the right value.

 

Frank J. Herter

Share this post


Link to post
Share on other sites

Each door is a different byte in the array. You can either read the whole array, or add the offset to 0x65DC and read a single byte from there.

Cheers!

Share this post


Link to post
Share on other sites
1 hour ago, Luke said:

Each door is a different byte in the array. You can either read the whole array, or add the offset to 0x65DC and read a single byte from there.

Cheers!

Hi Chris, 

thx for reply. I'm currently learning to script with LUA and I don't know how to address the single byte with the door=ipc.readUB("65DC") 

I know there is something missing but I didn't get it addressed.

 

Frank J. Herter

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