On Sat, 11 Apr 2020 17:56:33 -0700 (PDT), Tom Kunich
<
cycl...@yahoo.com> wrote:
>Strava was consistently 6% shorter than my speedo. MapMyRide wasn't
>even in the same ballpark. At first I attempted to explain the
>6% loss on the climbing and descending but this course is so flat
>that there isn't a total of 100 feet change in altitude over the
>entire course. This would make a maximum error of about a 1/10th
>of a percent.
In my limited experience, the GPS derived distance traveled is greater
than what is indicated by a cycling computah. My guess(tm) is the
algorithm employed by the GPS software was over-compensating for GPS
errors. Not so short explanation:
If you log the NMEA-0183 GGA and GLL position reports produced by a
commodity GPS, and plot all the points on a map, you'll see a not very
good approximation of a curve or straight line. If you connect each
point in the order in which they are logged (time sequential), the
length of the resultant zig-zag line will be MUCH longer than the path
traveled. At best, any given point is accurate to within a 4.9 meter
(16ft) radius circle. Imagine yourself riding down a straight road,
where the position reports can be randomly placed anywhere within this
circle. That's not going to be even close to a straight line.
However, that's the worst case and without any attempt at error
reduction, error correction, line smoothing, etc. The simplest form
of smoothing the line of travel is to first throw out any wildly
erroneous position reports (usually caused by reflections, diffraction
around buildings, or ground bounce). Next, connect the remaining line
segments, divide each segment in half, and connect all the mid-points
together. Do that a few dozen times, and you will get a fairly smooth
curve. However, since the points can be both ahead and behind the
actually position, the order in which the midpoints are connected is
switched from ordered by time, to ordered by position along the
estimate path traveled. From here, there are a large number of
statistical tweaks that can be used to improve the accuracy. The
resultant smoothed path will be less than the original jagged path (as
long as the path of travel is roughly a straight line). When
smoothing can no longer reduce the path length, then you've done as
much smoothing as possible.
Making 90 degree turns is another interesting problem. If you take
the raw NMEA-0183 data, and plot a path of travel that has a 90 degree
turn, the GPS will usually produce an overshoot on the straight path
before making the turn. It will eventually return to the correct path
of travel, but only after wandering around and adding additional
length too the path of travel. There are processors that look for
such turns and compensate.
That should be enough for now. If you have any questions, feel free
to ask AFTER you've provided my previously requested retraction to
your "nearly 100%" positive test rate claim for Alameda County:
<
https://groups.google.com/d/msg/rec.bicycles.tech/EuiU0nkYAVM/7M0k1cdxAAAJ>
--
Jeff Liebermann
je...@cruzio.com
150 Felker St #D
http://www.LearnByDestroying.com
Santa Cruz CA 95060
http://802.11junk.com
Skype: JeffLiebermann AE6KS
831-336-2558