Jump to content
The simFlight Network Forums

Is it possible extracting velocity data without float64.


Sun

Recommended Posts

I'm using FSUIPC, FS2002, and MFC.

I'm using MFC with MS visual C++ 6.0, so I can't use float64. Visual C++ doesn't support C99 standard but C90.

So I can't extract six velocity data(x, y ,z, pitch, bank, and heading) because I can't use float 64.

Is there any way extracting these data without float64. I know latitude and longitude can be extracted by dividing the data(dHi, dLo). Therefore I think there is a way to get velocity without float64 data type.

If it can't be, please let me know how I can use float64 with MFC.

Thanks. :wink:

Link to comment
Share on other sites

I'm using MFC with MS visual C++ 6.0, so I can't use float64.

I used MSVC C++ 6 until a few weeks ago. You are wrong! :)

"float64" is merely FS's term for the standard C "double". You can most certainly use it in your compiler. It is an ANSI standard and appears in the C definition of many years ago, and it is implemented in all C compilers as far as I know.

I seem to recall that in the very first edition of C (in 1978 or close) there was "float" (32 bit) and "long float" (64 bit), but the latter was re-named "double" soon after. There was even a "long double" mooted but I've never seen anything "longer" than 64 bit implemented.

let me know how I can use float64 with MFC.

If you want to call it FLOAT64 instead of double, just declare it:

#typedef double FLOAT64

Regards,

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