Test of pmic GPA with filter

Dependencies:   mbed

Fork of nucf446-cuboid-balance1_strong by RT2_Cuboid_demo

Revision:
5:d6c7ccbbce78
Parent:
0:15be70d21d7c
Child:
10:600d7cf652e7
diff -r 6457d61fd234 -r d6c7ccbbce78 IIR_filter.h
--- a/IIR_filter.h	Thu Mar 01 13:48:32 2018 +0000
+++ b/IIR_filter.h	Fri Mar 09 12:53:45 2018 +0000
@@ -1,11 +1,13 @@
 class IIR_filter{
      public:
-                    IIR_filter(unsigned int nb,unsigned int na);
-                    IIR_filter(float b,float a);
-                    IIR_filter(float tau,float Ts,float dc);
-                    IIR_filter(float tau);
+     
+        //IIR_filter(float *A[],float *B[]);       
+        IIR_filter(float T,float Ts);
+        IIR_filter(float T,float Ts,float K);
+        IIR_filter(float w0,float D, float Ts, float K);
+                    
         float operator()(float u){
-         return filter(u);
+            return filter(u);
          }
         virtual     ~IIR_filter();
         void        reset(float);
@@ -14,9 +16,9 @@
     private:
         unsigned int nb;
         unsigned int na;
-        float *b;
-        float *a;
+        float *B;
+        float *A;
         float *uk;
         float *yk;
-        float dc;
+        float K;
 };
\ No newline at end of file