a 10-Point moving average filter that can return an int or a float depending on the function used
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