High-Octane Posted March 25, 2004 Report Posted March 25, 2004 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? Or unless, there is other type of offset value with FLOAT64 varible? Let me know.
Pete Dowson Posted March 25, 2004 Report Posted March 25, 2004 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. 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