Jump to content
The simFlight Network Forums

Position format in fsuipc (offsets 0x560 and 0x568)


Recommended Posts

I want to write the position (latitude and longitude) of the plane to flight simulator. In the documentation, they say how to convert to degrees from fs but not how to convert from degrees to fs units. I'm coding with visual c++ 6.0.

Does somebody have a code example or an idea??

Thank you.

Ludovic

Link to comment
Share on other sites

they say how to convert to degrees from fs but not how to convert from degrees to fs units.

Can you not simply reverse it? For instance, if there are 3.28084 feet in a metre, there are 1/3.28084 metres in a foot. Right?

All you need to know is the relationship between the two units used and you can then convert either way. That is all the documentation is doing, specifying what the FS units look like. It was never intended to write the code for you, either way.

Have you tried coding anything yet? Have a go. If you'd like to show me what you've done I can maybe suggest corrections or improvements.

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.