till
Dependencies: mbed
Fork of RT2_P3_students_G4 by
IIR_filter.h
- Committer:
- altb
- Date:
- 2018-04-17
- Revision:
- 6:8ed679044a72
- Parent:
- 2:769ce5f06d3e
File content as of revision 6:8ed679044a72:
#ifndef IIR_FILTER_H_ #define IIR_FILTER_H_ class IIR_filter{ public: IIR_filter(float T, float Ts); IIR_filter(float T, float Ts, float K); IIR_filter(float w0, float D, float Ts, float K); IIR_filter(float *b, float *a, int nb_, int na_); float operator()(float u){ return filter((double)u); } virtual ~IIR_filter(); void reset(float); float filter(double); private: unsigned int nb; unsigned int na; double *B; double *A; double *uk; double *yk; double K; }; #endif /* IIR_FILTER_H_ */