Shop OBEX P1 Docs P2 Docs Learn Events
Gps Navigation — Parallax Forums

Gps Navigation

Bstamp_gpsBstamp_gps Posts: 9
edited 2007-10-28 13:10 in Propeller 1
Hi all,

How do we calculate the distance in Nautical miles and direction in degrees, from two GPS positions ?

i.e. I have the GPS position from NMEA in @LatA (3932.57559,N), @LonA (00230.09943,E ) and the remote position @LatB (4000.32663,N) @LonB (00412.95500,E).

- Do I have to convert the string to numeric value?

I Have looked DynamicMathLib object with FCoordsToDist(x1,y1,x2,y2) and FCoordsToDegs(x1,y1,x2,y2).
What value do I need on x1,y1,x2,y2 ?

Concretely, how do we go from @latA, @LonA, @LatB, @LonB to x1,y1,x2,y2 ?

Is it the best way to do it?
confused.gif

Regards,
YL

Comments

  • deSilvadeSilva Posts: 2,967
    edited 2007-10-28 12:46
    The best way is always to understand what you intend to do....
    Another possibility is to use CorrectedNavCalculation from DynamicMathLib2...

    Edit: MathLib2 not NavLib2 ...

    Post Edited (deSilva) : 10/28/2007 1:14:51 PM GMT
  • Bstamp_gpsBstamp_gps Posts: 9
    edited 2007-10-28 13:05
    I can not find DynamicNavLib2... any link ?

    thanks
  • deSilvadeSilva Posts: 2,967
    edited 2007-10-28 13:10
    Sorry... Dynamic MATH Lib2 of course...
Sign In or Register to comment.