2nd try
Diff: IIR_filter.h
- Revision:
- 2:8706bb4e8f93
- Parent:
- 0:72b60c5271cc
--- a/IIR_filter.h Thu Mar 07 09:16:03 2019 +0000 +++ b/IIR_filter.h Fri Mar 08 13:34:39 2019 +0000 @@ -1,6 +1,10 @@ +#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); @@ -12,6 +16,7 @@ virtual ~IIR_filter(); void reset(float); float filter(double); + void setup(float,float,float); private: @@ -23,3 +28,4 @@ double *yk; double K; }; +#endif