FastPWM library, modified by benkatz

Dependents:   WangBoard_MotorScience

Fork of FastPWM3 by Ben Katz

filters.h

Committer:
nki
Date:
2016-06-15
Revision:
27:9c0cc4d4a0bf

File content as of revision 27:9c0cc4d4a0bf:

#ifndef __FILTERS_H
#define __FILTERS_H

class MeanFilter {
public:
    MeanFilter(float strength);
    virtual float Update(float x);
private:
    float _mean;
    float _strength;
};

#endif