Control Library by altb
Dependents: My_Libraries IndNav_QK3_T265
IIR_filter.h
- Committer:
- altb2
- Date:
- 2019-10-28
- Revision:
- 14:9184aa9fdac7
- Parent:
- 13:6ad25476ec59
- Child:
- 15:c70cad2f4e64
File content as of revision 14:9184aa9fdac7:
#ifndef IIR_FILTER_H_ #define IIR_FILTER_H_ class IIR_filter{ public: IIR_filter(){}; 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); void setup(float,float,float); private: unsigned int nb; unsigned int na; double *B; double *A; double *uk; double *yk; double K; }; #endif