Jump to content
The simFlight Network Forums

Recommended Posts

Posted

Hi folks, I am trying change altitude on MCP by rotary encoder, unfortunately I am not sure if I send to ipc.control correct data

ipc.control(70032, altitude)

value in altitude is correct, I have there (100,200....1000,1100.......12000....) It works only for first three hundred, and then even though I change altitude value by rotary, the value on MCP will not change. Could someone help me? Thank you.

 

EDIT:

I tried to send it real altitude /100. This works fine, but only for increasing altitude. If I turn with rotary to anti-clockwise position, the value is decreasing, but altitude on MCP in FSX is still increasing.

 

EDIT2: Solved, I don't know why, but if I send there 

ipc.control(70032, 536870912)

it is decreasing.

 

EDIT3:

Sorry, I have one more problem. When I send there real altitude, it is increasing till 35700. Why? I also noticed when I quick turning with rotary the value which I send to ipc.control is e.g. 2100 but it sets only 2000.

Posted (edited)

You could use either (depends on the variable):

(1) ipc.control(xxxxx, 16384) to increase, and ipc.control(xxxxx, 8192) to decrease,

or

(2) ipc.control(xxxxx, -2147483648) to increase, and ipc.control(xxxxx, 536870912) to decrease.

Please see thread:

Chakko.

Edited by ckovoor
  • Upvote 1

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.