Test program with the RT black boxes

Dependencies:   mbed

Committer:
pmic
Date:
Thu Apr 05 08:28:32 2018 +0000
Revision:
12:6287235b2570
Parent:
10:a28f393c6716
Child:
13:a308f5e6c306
change filter and difffilter to double

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 12:6287235b2570 11 return filter((double)u);
rtlabor 0:15be70d21d7c 12 }
rtlabor 0:15be70d21d7c 13 virtual ~IIR_filter();
rtlabor 0:15be70d21d7c 14 void reset(float);
pmic 12:6287235b2570 15 float filter(double);
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 12:6287235b2570 21 double *B;
pmic 12:6287235b2570 22 double *A;
pmic 12:6287235b2570 23 double *uk;
pmic 12:6287235b2570 24 double *yk;
pmic 12:6287235b2570 25 double K;
rtlabor 0:15be70d21d7c 26 };