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?

 

James

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)

 

Regards

 

Hervé 

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.