DJ-Arnie Posted June 18, 2003 Report Posted June 18, 2003 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
Pete Dowson Posted June 18, 2003 Report Posted June 18, 2003 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
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now