Jump to content
The simFlight Network Forums

.Question About IAS

Recommended Posts

Since document shows the offset value for IAS (Indicated Air Speed), which is 02BC -- Long integer. Now question is, is it possible to convert it into FLOAT64?

The IAS there is in 1/128ths of a Knot. In C or C++ you can simply read the 4 bytes into an int then convert it to a double (same as FS's FLOAT64) by dividing by 128.0.

e.g. assuming you read it into nIAS, then simply:

double dIAS = nIAS / 128.0;

In C/C++ experessing the number 128 as 128.0 automatically makes it a double.


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