Gps Navigation
Bstamp_gps
Posts: 9
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?
Regards,
YL
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?
Regards,
YL
Comments
Another possibility is to use CorrectedNavCalculation from DynamicMathLib2...
Edit: MathLib2 not NavLib2 ...
Post Edited (deSilva) : 10/28/2007 1:14:51 PM GMT
thanks