Jump to content

Problems with lat and lon and time zones


Recommended Posts

Does anyone know if there are issues in Flight Sim that relate to the capturing of incorrect data for the Latitude and Longitude of an aircraft across time zones during flight? I've made a program that measures the distance flown every second by capturing the lat and lon of the aircraft. However, when the aircraft crosses certain time zone boundaries, the distance is grossly over calculated. One example is from KBOS to CYYZ. The distance is roughly 400 nm, but the result is upwards between 3000 and 6000 nm. Any suggestions? My distance calculation algorithm has a +-5% margin of error. This is beyond that.

Link to comment
Share on other sites

Does anyone know if there are issues in Flight Sim that relate to the capturing of incorrect data for the Latitude and Longitude of an aircraft across time zones during flight?

I've never heard of that. Are you observing any incorrect Lat/Lon values being read? If your program is reading bad values you should surely be able to detect them?

Maybe there are occasions when FS (or your PC) is doing something whch causes the call to FSUIPC to time out and return an error. If you are not detecting this and taking action to avoid the non-data return, then possibly you are reading (0, 0) as a valid location. No doubt that would be many thousands of miles off course!

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
 Share

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