Jump to content

Get informations about autopilot


Recommended Posts

Hi,

i´m testing the FSUIPC with Delphi and try to get some informations like COM-Frequences. Now i try to get the autopilot altitude value. I try to get the adress 07D4. I get some values but in what format? I´m programming in Delphi. Thanks for help

A. Baars

Link to comment
Share on other sites

I try to get the adress 07D4. I get some values but in what format?

You need to refer to the Programmer's Guide. In the table in that document it explains this as "Autopilot altitude value, as metres*65536". In other words, that 32-bit integer holds the altitude in metres times 65536.

Since 65536 is, in hexadecimal, 0x10000, this is effectively saying that the top 16 bits is the whole number of metres and the bottom 16 bits is the fractional part in 1/65536ths of a metre.

If you want feet you simply convert metres to feet by multiplying by 3.28084.

Please try the supplied utility FSINterrogate. You can read the values in that AND see the conversion in operation.

Pete

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
 Share

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