I've been looking at refining the Alpha500 calcs for Trackpoints at the ka72 site, and running again and again into discrepancies between my own calculations of distance between two points, and the results from these programs.
So I was wondering how Realspeed and the other programs calculate the distance between two points?
For instance, I have two points in a track that are:
Lat1: -26.8169905
Long1: 153.1287358
Lat2: -26.8170081
Long2: 153.1288241
Now, my calculations say that the distance between these two points is 8.97843m
However, Realspeed calculates the difference at 8.992m. GPSResults (which only seems to display 1 decimal point accuracy) says 9.0m.
When I plug the same coordinates into a web-based distance calculator (like the one at
www.movable-type.co.uk/scripts/latlong.html) it gives me a distance of 8.978m, the same as my code
These tiny differences in distance calculation are leading to small but significant differences in Alpha 500 calculations. I can't work out whether I am wrong, or RealSpeed/GPSResults is wrong. I would like to think that the speed apps have it right, but I can't find a calculation that agrees with their results.
The only thing I can think is that they are either:
a) using a different formula than me or
b) building in some kind of correction for curvature between two points (I am calculating a straight line, but you don't tend to sail through a gybe in a series of short straight lines.)
Dylan.