add 60Hz/50Hz notch filter

Dependencies:   mbed

Files at this revision

API Documentation at this revision

Comitter:
nagasm
Date:
Sat Dec 20 02:08:03 2014 +0000
Parent:
1:8fa2f521009a
Commit message:
revised

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 8fa2f521009a -r 048d8bddb100 main.cpp
--- a/main.cpp	Tue Dec 16 23:41:53 2014 +0000
+++ b/main.cpp	Sat Dec 20 02:08:03 2014 +0000
@@ -8,7 +8,7 @@
     xbee.baud(38400);
     xbee.attach(&rx_fifoset, xbee.RxIrq);
     timer_setup.attach_us(&timer_interrupt, 5); // 5usec
-    notch_1 = notch_2 = 60;
+    notch_1 = notch_2 = 1;
     coef_set(60);   // Ham notch filter set
     while(1){
         tx_fifo_check();