Jump to content
Sign in to follow this  
Guest AndrewW

Double formats...

Recommended Posts

Guest AndrewW

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
Guest AndrewW

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  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...