Cutoff frequency variable LPF by IIR 6th-order Butterworth filter for ST Nucleo F401RE.

Dependencies:   UIT_IIR_Filter UIT_ACM1602NI UITDSP_ADDA mbed UIT_AQM1602

Revision:
5:b291c4653eb9
Parent:
4:460f2285dd87
Child:
6:116f72cda0f4
--- a/main.cpp	Sat Nov 15 06:51:05 2014 +0000
+++ b/main.cpp	Sun Dec 07 05:45:07 2014 +0000
@@ -56,7 +56,7 @@
     const int ORDER = 6;
     myDac_.ScfClockTim3(1000000);   // cutoff frequency: 10 kHz
 
-    BiliearDesign lpfDsgn(ORDER, FS_, BiliearDesign::LPF);
+    BilinearDesign lpfDsgn(ORDER, FS_, BilinearDesign::LPF);
     Acm1602Ni lcd;  // objetc for display using LCD
 
     myAdc_.SetIntrVec(AdcIsr);  // Assign ISR for ADC interrupt
@@ -86,7 +86,7 @@
                 fc1 = fc;
 
                 // Design new coefficients based on new fc
-                BiliearDesign::Coefs coefsLpf[ORDER/2];
+                BilinearDesign::Coefs coefsLpf[ORDER/2];
                 float g0;
                 lpfDsgn.Execute(fc, coefsLpf, g0);