Jump to content
The simFlight Network Forums

Recommended Posts

Posted

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

Posted

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

Please sign in to comment

You will be able to leave a comment after signing in



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.