Werkt. (hopelijk)

Dependencies:   MODSERIAL mbed

Files at this revision

API Documentation at this revision

Comitter:
DanAuhust
Date:
Mon Nov 04 20:10:50 2013 +0000
Parent:
2:e609cd999fd2
Commit message:
Nu met alle gains, thresholds en spieren

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r e609cd999fd2 -r 117c0bb09513 main.cpp
--- a/main.cpp	Mon Nov 04 20:09:22 2013 +0000
+++ b/main.cpp	Mon Nov 04 20:10:50 2013 +0000
@@ -295,8 +295,8 @@
     //static int sig_count = 1;
 emg_value_biceps=std_dev(filter(1),1);
 emg_value_triceps=std_dev(filter(2),2);
-/*emg_value_flexoren = (100*filter(3)-44);
-emg_value_extensoren = (100*filter(4)-44);*/
+emg_value_flexoren = std_dev(filter(3),3);
+emg_value_extensoren = std_dev(filter(4),4);
 
     if(emg_value_biceps < 4.5)
         emg_value_biceps=0;