Test program with the RT black boxes

Dependencies:   mbed

Committer:
pmic
Date:
Wed Apr 04 14:18:43 2018 +0000
Revision:
10:a28f393c6716
Parent:
5:d6c7ccbbce78
Child:
12:6287235b2570
introduce updated classes, e.g. double prescision integral controler in biquad formulation

Who changed what in which revision?

UserRevisionLine numberNew contents of line
rtlabor 0:15be70d21d7c 1 class IIR_filter{
rtlabor 0:15be70d21d7c 2 public:
pmic 5:d6c7ccbbce78 3
pmic 5:d6c7ccbbce78 4 //IIR_filter(float *A[],float *B[]);
pmic 5:d6c7ccbbce78 5 IIR_filter(float T,float Ts);
pmic 5:d6c7ccbbce78 6 IIR_filter(float T,float Ts,float K);
pmic 5:d6c7ccbbce78 7 IIR_filter(float w0,float D, float Ts, float K);
pmic 10:a28f393c6716 8 IIR_filter(float *,float *, int,int);
pmic 5:d6c7ccbbce78 9
rtlabor 0:15be70d21d7c 10 float operator()(float u){
pmic 5:d6c7ccbbce78 11 return filter(u);
rtlabor 0:15be70d21d7c 12 }
rtlabor 0:15be70d21d7c 13 virtual ~IIR_filter();
rtlabor 0:15be70d21d7c 14 void reset(float);
rtlabor 0:15be70d21d7c 15 float filter(float);
rtlabor 0:15be70d21d7c 16
rtlabor 0:15be70d21d7c 17 private:
pmic 10:a28f393c6716 18
rtlabor 0:15be70d21d7c 19 unsigned int nb;
rtlabor 0:15be70d21d7c 20 unsigned int na;
pmic 5:d6c7ccbbce78 21 float *B;
pmic 5:d6c7ccbbce78 22 float *A;
rtlabor 0:15be70d21d7c 23 float *uk;
rtlabor 0:15be70d21d7c 24 float *yk;
pmic 5:d6c7ccbbce78 25 float K;
rtlabor 0:15be70d21d7c 26 };