Commit Graph

15 Commits

Author SHA1 Message Date
Andrew Tridgell 43d6015811 Filter: split the DerivativeFilter steps into update() and slope()
this allows us to apply new data at a different rate than we calculate
the slope.
2012-07-06 15:11:30 +10:00
Andrew Tridgell 9f3da1bf7f Filter: fixed DerivativeFilter example build 2012-07-05 16:29:21 +10:00
Andrew Tridgell 92001e3e7d Filter: fixed typo in 9 point DerivativeFilter 2012-07-05 16:29:20 +10:00
Andrew Tridgell a07e280eda Filter: cope with non-uniform time steps in the DerivativeFilter
this helps with the barometer a lot, as the timing is quite variable
2012-07-05 13:00:47 +10:00
Andrew Tridgell f97289792b Filter: added DerivativeFilter implementation
this adds a DerivativeFilter implementation of up to 10 points
2012-07-05 13:00:46 +10:00
Andrew Tridgell 9fd3d15026 Filter: added 5 point average float filter 2012-06-27 16:01:50 +10:00
rmackay9 fd5e1c2f7b Filter - added FilterWithBuffer typedefs for int32t and uint32 for ease of use 2012-03-28 22:02:52 +09:00
rmackay9 2324be7e68 Filter - added simple LowPassFilter (simple but it's possible to make errors with simple stuff too so might as well have one) 2012-03-25 16:15:25 +09:00
rmackay9 bdda74fd28 Filter - remove obsolete warning from comments re alloc/malloc dangers 2012-03-25 16:14:07 +09:00
rmackay9 5b89c65d9c Filter - updated example sketch to use modified library 2012-02-28 21:01:35 +09:00
rmackay9 d17a015df1 Filter - added AverageFilter, removed SumFilter
added FilterWithBuffer to allow removal of malloc/free without losing ability to pass around filter objects
2012-02-28 21:01:11 +09:00
rmackay9 747e045193 ModeFilter - corrected shadowed variable compiler warning for drop_high_sample 2012-02-26 17:57:28 +09:00
rmackay9 e01477a7a8 Filter - added AverageFilter - this will be used in place of SumFilter because it removes the possibility of overflows 2012-02-26 17:34:36 +09:00
rmackay9 b345529241 Filter - removed shadowing of variables in constructors for Filter, ModeFilter and SumFilter (sorry tridge!)
increased maximum sample buffer size from 6 to 10
2012-02-26 17:17:46 +09:00
rmackay9 ae8fd43335 Filter - first version of filter library include ModeFilter 2012-02-26 15:34:05 +09:00