atoombom

Dependencies:   Encoder HIDScope mbed

Fork of EMG by Tom Tom

Revision:
20:4fe3cab02341
Parent:
19:6eefdb204444
--- a/main.cpp	Mon Sep 28 10:12:00 2015 +0000
+++ b/main.cpp	Mon Sep 28 10:25:22 2015 +0000
@@ -1,6 +1,6 @@
 #include "mbed.h"
 #include "HIDScope.h"
-//#include "LowPassFilter.h"
+#include "LowPassFilter.h"
 
 //Define objects
 AnalogIn    emg(A0); //Analog input
@@ -41,8 +41,10 @@
     * this ensures that 'sample' is executed every... 0.002 seconds
     */
     button.fall(&time);
-    sample_timer.attach(&sample, 0.002);
-
+    sample_timer.attach(&sample, 0.002); //500 Hz
+   
+    biquadTicker.attach(&computeBiquad, 0.01); // 100 Hz
+    
     /*empty loop, sample() is executed periodically*/
     while(1) {}
 }
\ No newline at end of file