Jump to content
The simFlight Network Forums

Best way to read Aircraft ALT through FSUIPC

Recommended Posts

Pete / All,


Hopefully this is an easy question, i'm new to fooling around in FSUIPC. Having read the Offsets guide, I see there is a couple of ways to read the altitude. 0x0570 would seem to be the best, and gives me alt in metres, but is this AGL? or ASL? I assume as the user in game changes the baro value on the altimeter the offset doesn't change, as the baro is just a display parameter?



Link to comment
Share on other sites

Hi James


Altitude as provided at 0x0570 is (by definition) above mean sea level and will not change with baro setting as you assumed. Take care to properly retrieve and manipulate the data as far as the value is provided in units (high 32-bit integer at 0x0574) and fractional part (low 32-bit integer at 0x0570). Height above ground level can be obtained either by subracting ground altitude (at 0x0020) or using FSUIPC calculated radio altitude (0x31E4)





Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


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