Commit Graph

15 Commits

Author SHA1 Message Date
Andrew Tridgell 520d762382 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 6534dab719 Filter: fixed DerivativeFilter example build 2012-07-05 16:29:21 +10:00
Andrew Tridgell 1a42b10255 Filter: fixed typo in 9 point DerivativeFilter 2012-07-05 16:29:20 +10:00
Andrew Tridgell 75470dc912 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 f19e5a6273 Filter: added DerivativeFilter implementation
this adds a DerivativeFilter implementation of up to 10 points
2012-07-05 13:00:46 +10:00
Andrew Tridgell 06c8763881 Filter: added 5 point average float filter 2012-06-27 16:01:50 +10:00
rmackay9 2ce597642e Filter - added FilterWithBuffer typedefs for int32t and uint32 for ease of use 2012-03-28 22:02:52 +09:00
rmackay9 2b2dbf2a7f 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 39fd24ed14 Filter - remove obsolete warning from comments re alloc/malloc dangers 2012-03-25 16:14:07 +09:00
rmackay9 033347f8ee Filter - updated example sketch to use modified library 2012-02-28 21:01:35 +09:00
rmackay9 645fda2fb2 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 297d2ae457 ModeFilter - corrected shadowed variable compiler warning for drop_high_sample 2012-02-26 17:57:28 +09:00
rmackay9 b9b88ba237 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 f53ff8de97 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 c14d7768f7 Filter - first version of filter library include ModeFilter 2012-02-26 15:34:05 +09:00