Defines a second order section of a biquadChain
Diff: biquadFilter.h
- Revision:
- 0:5484e3da74be
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/biquadFilter.h Fri Oct 20 12:23:40 2017 +0000 @@ -0,0 +1,25 @@ +#ifndef BIQUADFILTER_H +#define BIQUADFILTER_H + +#include "mbed.h" + +class biquadFilter { +public: + biquadFilter(double, double, double, double, double, double); + double filterInput(double u); + volatile double v; + volatile double y; + volatile double v1; + volatile double v2; + +private: + // Filter coefficients + const double b0; + const double b1; + const double b2; + const double a0; + const double a1; + const double a2; + + }; +#endif \ No newline at end of file