Sign in to follow this  
Guest AndrewW

Double formats...

Recommended Posts

I'm trying to read the longitudinal acceleration from Fsuipc (3070), however this is a double float (FLOAT64). The problem I have is that the return value depicted in the string is a forever changing number (e.g. 34519859). This situation is described in the Dai Griffiths gauge tutorial, and suggests forcing the value to a UINT32 etc - though I'm not quite sure how to go about this? I have the following: case PANEL_SERVICE_PRE_UPDATE: FSUIPC_Read(0x3070, 8, &zacc, &dwResult); *pzac = zacc; FSUIPC_Process(&dwResult);Any help or suggestions would be great! Andy[/font size]

Share this post


Link to post
Share on other sites
Help AVSIM continue to serve you!
Please donate today!

Was using DWORD instead of DOUBLE - sorry for the unnecessary post!Andy[/font size]

Share this post


Link to post
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
Sign in to follow this