Jump to content
The simFlight Network Forums

Ground altitude - offset 0020


Recommended Posts

The programmers manual states that the return value for offset 0020 is in metres x 256 returned as a long, however, Simconnect returns its value in metres as a double (to what pecision I do not know).

I have noticed a 2mm difference between the values returned by FSUIPC and Simconnect.

Is there an FSUIPC offset which will give the the value as a double, ie. the same as that returned by Simconnect?

George

Edit. Sorry, I should have said that this is for FSUIPC 4.

Link to comment
Share on other sites

Is there an FSUIPC offset which will give the the value as a double, ie. the same as that returned by Simconnect?

No.

SimConnect supplies many things as doubles. FSUIPC has to convert to keep compatibility with previous versions of FS. That's the whole point of FSUIPC after all.

Offset 0020 is, as it says, in 1/256ths of a metre, making it accurate to just under 4mm, so, yes, 2mm either way is going to happen quite often. What practical purpose needs more accuracy in any case?

For new projects, not needing to maintain compatibility with previous versions of FS, I would expect folks to be interfacing to SimConnect directly in any case. This is why I'm not developing the IPC interface any further, but concentrating on additional user facilities instead.

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.