Quoted message said:
DiabloScott said:
Quoted message said:I'm also still puzzled by the idea that the average speed
will somehow vary according to how often it's calculated
when the elapsed time is 60 minutes and the elapsed distance
is 5.00 miles--what's that got to do with current speed?
What calculation at sixty minutes and five miles can make it
anything but 5.00 mph average?
Carl Fogel
Dear Carl:
Cateye's response isn't necessarily hokum. Whether or not it's true is
still questionable but it is not logically inconsistant with any of the
known facts in this case.
It could be that the average speed function hadn't yet been updated to
reflect the most current time and distance readings. Imagine riding at
15.1 miles per hour for 59 minutes and 30 seconds - you would have
travelled 14.97 miles. Then in the next 30 seconds you travel at 3.6
mph and go 0.03 miles. Your distance would read 15.00 miles and your
time would read 60 minutes and 00 seconds. But if your average speed
were calculated once every 30 seconds, and it hadn't been updated since
the 59m30s calc - the average speed would still read 15.1 mph.
I'm sure the statistical sampling method isn't used - that would
require storage of large amounts of data, where recalculation every few
seconds does not - and is more accurate by definition.
Dear Diablo,
I suspect that your idea, though ingenious, doesn't explain
the actual situation.
Yes, a rider could travel at a higher average speed for most
of the trip and then slow down during the last 29 seconds,
just before the next half-minute re-calculation of the
average speed.
Yes, this would preserve a higher-than-actual average speed.
And yes, It works for your example of displaying a 15.1 mph
average when the true average is 15.0 mph.
But it works only if you slow to a crawl in the last 30
seconds and sample only every 30 seconds.
And it won't work if we go 5.4 mph for 59:30 and want to
cover 5.00 miles in an hour, unless we do some time travel
or ride backwards..
At 5.4 mph, we cover 5.00 miles in about 55:30.
So we'd have spend the last four-and-a-half minutes stopped
dead an inch from the finish line to preserve a 5.4 mph
average.
A 4.5 minute sampling time is unlikely to explain things.
Frankly, I'm doubtful of claims that the average is updated
only every 30 seconds to save batteries. The calculation is
trivial (current distance divided by current elapsed time)
and the speedometer is constantly updating all the other
functions.
I also doubt that tiny computations every three seconds or
so (roughly the sampling rate for the speed function) is
what drains the battery. The display's turn-off function
suggests that running the LCD is what really drains the
battery, not twenty calculations per minute. But maybe
someone who knows more about circuits will surprise me by
revealing that the calculations are trickier than I think.
Carl Fogel
Well, yes, the calculations are trickier than you (might) think. The
device in question probably uses a microcontroller, not a
microprocessor. Although the latter usually has multiply and divide,
the former usually does not; divides are accomplished by repeated
subtractions and/or shift or rotate operations, and multiplies by
repeated additions ... etc. Bottom line: more than just one math
operation per computation.
That said, floating point multiplies or divides in a bike computer
application are not terribly difficult to code nor terribly time
consuming in execution. I built a little computer (housed in an Altoids
tin that clips to handlebar) that computes and stores instantaneous
speed in real time. While there is no display to add to power
consumption (data are downloaded later for display and manipulation),
the circuit draws only microamperes for a tiny fraction of a second
after each wheel revolution. To the microcontroller, one wheel
revolution takes FOREVER, even at 20-30 miles/hour.
Michael