Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Biquad.h
00001 #ifndef _BIQUAD_H_ 00002 #define _BIQUAD_H_ 00003 00004 #include "mbed.h" 00005 00006 class Biquad 00007 { 00008 public: 00009 ///Instantiate the biquad filter 00010 Biquad(void); 00011 00012 /**Filters the given signal with the filter values. 00013 * @param u : double signal to filter 00014 * @param &v1 : double variable to store previous values 00015 * @param &v2 : double variable to store previous values 00016 * @param a1 : double filter coefficient a1 00017 * @param a1 : double filter coefficient a2 00018 * @param a1 : double filter coefficient b0 00019 * @param a1 : double filter coefficient b1 00020 * @param a1 : double filter coefficient b2 00021 * @return v : double filtered signal 00022 */ 00023 double filter( double u, double &v1, double &v2, const double a1, const double a2, 00024 const double b0, const double b1, const double b2 ); 00025 }; 00026 #endif
Generated on Sat Aug 27 2022 02:12:02 by
