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
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now