Thread
:
GPS Units = Show road steepness?
View Single Post
#
127
March 19th 19, 06:20 PM posted to rec.bicycles.tech
Radey Shouman
external usenet poster
Posts: 1,747
GPS Units = Show road steepness?
writes:
[ ... ]
averages in particular. And I think that it was Radey talking about
using IIR which would require a high end FPGA wouldn't it? I'm buying
a new, wireless VDO for $50.
An IIR can be very simple to implement. The "leaky integrator" or
"exponential filter" is probably the simplest digital low-pass filter
possible:
y_i = y_{i-1} + k (x_i - y_{i-1})
In C:
y += k*(x - y);
If you're not too fussed about the actual cutoff frequency the
multiplication can be done as a shift. The precision used for the
state, y, does need to be higher than that of the input.
If you need precise control over the frequency response then more work
in design and more expense in implementation is needed, but not always.
Radey Shouman
View Public Profile
View message headers
Find all posts by Radey Shouman
Find all threads started by Radey Shouman
Ads
Home
-
Home
-
Home
-
Home
-
Home