Jump to content
Sign in to follow this  
Guest Testili

Calculating lat/lon of a point

Recommended Posts

Guest Testili

Hello,I'm working for almost 14 days now on a problem, which I can't solve.I want to calculate the latitude/longitude of a point, which is 10 nm out of the starting point of a runway with the exact heading to the runway.Example: Frankfurt/Main (EDDF), runway 07/R has these values for the starting point (at least this is, where FSX sets your plane if you wanna start from that runway):lat = 0.873148267797151; lon = 0.148961857610546; heading = 69

Share this post


Link to post
Share on other sites
Guest Testili

Thank you Tom for your reply.So far, if I understand that thread correctly, it's about geocalc, a payware addon? I wanna calculate it by myself, without addon. It would be a help already, if someone could say, that i.ex. Haversine formula is the right one for using with fsx. Then I would know, that the mistake must be somewhere else.About the nm or feet - of course Im using unrounded values, so it should not really matter if I use feet or nm ...SincerelyChris.

Share this post


Link to post
Share on other sites

Chris,Geocalc functions are embedded in gps.dll on both FS9 and X versions, so the are absolutely free (or at least you paid for them when bought FS :-))I cannot say more, as I really don't know what do you want to do with those LatLon calcs.Tom

Share this post


Link to post
Share on other sites
Guest Testili

Thanx Tom.So far, the geocalc functions are not accessible for coding i.ex. with c# I assume, since they are no normal api.Greetings,Chris.

Share this post


Link to post
Share on other sites
Guest BADev

HiI have some routines that allow me to move the user a/c n feet up/down left/right based on the current heading. It takes a starting lat/long and then calculates the new lat/long offset based on the specified position change.I plot real flight data but have found it can be slightly out. I use the routines to place the a/c on the runway at touch-down, and then apply the offset to the lat/long for the whole flight.If you think this might be useful I can post a spreadsheet that demonstrates how its done.You can simply work out how many feet in a NM if thats what your working in etc.Regards

Share this post


Link to post
Share on other sites
Guest jkvato

Chris,Perhaps you might need a more accurate runway heading. Just being off a half degree (or maybe even just a tenth,) you could end up being too far to either side of the point you're looking for.John

Share this post


Link to post
Share on other sites
Guest Testili

Hello,BADev, that sounds very similar to what Im doing. I don't know if you can pass some of your formulas to me, would be great! You can mail them to me i.ex.!John, I think that might be a reason! I thought of that too, since I get the idea, that my formulas should be correct, so this is almost the only reason left. Specially, I do only a 1 degree-exact heading correction. If you say only half a degree or even less might cause me being off the runway, well, it could be that!Thank you guys for your reply and help!Chris.

Share this post


Link to post
Share on other sites
Guest jkvato

Chris,I did a little research using scenery decompilers for FS, and I find that FSX has runway 7R at 69.62 degrees in its scenery files.Hopefully this will give you good results. Good luck,John

Share this post


Link to post
Share on other sites
Guest kranky22

>Chris,>>I did a little research using scenery decompilers for FS, and>I find that FSX has runway 7R at 69.62 degrees in its scenery>files.>>Hopefully this will give you good results. Good luck,>>John>This will help as well as keeping the same number of significant figures in your formulas. Don't round.i.e. make sure your long/lat coordinates of point "D" are also at least 15 sig figs.

Share this post


Link to post
Share on other sites
Guest Testili

Thanx alot for your replies!I will try my best to get the problem solved. Sincerely,CHris.

Share this post


Link to post
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
Sign in to follow this  

  • Tom Allensworth,
    Founder of AVSIM Online


  • Flight Simulation's Premier Resource!

    AVSIM is a free service to the flight simulation community. AVSIM is staffed completely by volunteers and all funds donated to AVSIM go directly back to supporting the community. Your donation here helps to pay our bandwidth costs, emergency funding, and other general costs that crop up from time to time. Thank you for your support!

    Click here for more information and to see all donations year to date.
×
×
  • Create New...