Control Library by altb

Dependents:   My_Libraries IndNav_QK3_T265

Revision:
0:d49418189c5c
Child:
13:6ad25476ec59
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/IIR_filter.h	Mon Mar 04 11:03:08 2019 +0000
@@ -0,0 +1,25 @@
+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;
+};
\ No newline at end of file