A 10-Point moving average filter that returns a float each time a new value is added to the moving average array.
Fork of MovingAverageFilter by
Diff: MAF.h
- Revision:
- 0:c1b48befe066
- Child:
- 1:fbc57eb4e61d
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MAF.h Wed Dec 26 10:44:34 2012 +0000 @@ -0,0 +1,17 @@ +#ifndef MAF_H +#define MAF_H + +#include "mbed.h" + +class MAF { + + public: + MAF(void); + float update(float data); + + private : + float _k[4]; + float _result; +}; + +#endif \ No newline at end of file