Test of pmic GPA with filter
Dependencies: mbed
Fork of nucf446-cuboid-balance1_strong by
Diff: IIR_filter.h
- Revision:
- 10:600d7cf652e7
- Parent:
- 5:d6c7ccbbce78
- Child:
- 20:0319a4a56db8
--- a/IIR_filter.h Thu Mar 22 17:34:18 2018 +0000 +++ b/IIR_filter.h Thu Mar 29 19:15:31 2018 +0000 @@ -5,6 +5,7 @@ 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 *,float *, int,int); float operator()(float u){ return filter(u); @@ -14,6 +15,7 @@ float filter(float); private: + unsigned int nb; unsigned int na; float *B;