FastPWM library, modified by benkatz
Dependents: WangBoard_MotorScience
Fork of FastPWM3 by
Diff: filters.h
- Revision:
- 27:9c0cc4d4a0bf
diff -r 51c979bca21e -r 9c0cc4d4a0bf filters.h --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/filters.h Wed Jun 15 05:24:05 2016 +0000 @@ -0,0 +1,13 @@ +#ifndef __FILTERS_H +#define __FILTERS_H + +class MeanFilter { +public: + MeanFilter(float strength); + virtual float Update(float x); +private: + float _mean; + float _strength; +}; + +#endif \ No newline at end of file