Test program with the RT black boxes

Dependencies:   mbed

Committer:
rtlabor
Date:
Wed Jan 10 16:08:07 2018 +0000
Revision:
0:15be70d21d7c
Child:
5:d6c7ccbbce78
balance cuboid

Who changed what in which revision?

UserRevisionLine numberNew contents of line
rtlabor 0:15be70d21d7c 1 class IIR_filter{
rtlabor 0:15be70d21d7c 2 public:
rtlabor 0:15be70d21d7c 3 IIR_filter(unsigned int nb,unsigned int na);
rtlabor 0:15be70d21d7c 4 IIR_filter(float b,float a);
rtlabor 0:15be70d21d7c 5 IIR_filter(float tau,float Ts,float dc);
rtlabor 0:15be70d21d7c 6 IIR_filter(float tau);
rtlabor 0:15be70d21d7c 7 float operator()(float u){
rtlabor 0:15be70d21d7c 8 return filter(u);
rtlabor 0:15be70d21d7c 9 }
rtlabor 0:15be70d21d7c 10 virtual ~IIR_filter();
rtlabor 0:15be70d21d7c 11 void reset(float);
rtlabor 0:15be70d21d7c 12 float filter(float);
rtlabor 0:15be70d21d7c 13
rtlabor 0:15be70d21d7c 14 private:
rtlabor 0:15be70d21d7c 15 unsigned int nb;
rtlabor 0:15be70d21d7c 16 unsigned int na;
rtlabor 0:15be70d21d7c 17 float *b;
rtlabor 0:15be70d21d7c 18 float *a;
rtlabor 0:15be70d21d7c 19 float *uk;
rtlabor 0:15be70d21d7c 20 float *yk;
rtlabor 0:15be70d21d7c 21 float dc;
rtlabor 0:15be70d21d7c 22 };