Remco Dasselaar / Mbed 2 deprecated TotalControlEmg2

Dependencies:   HIDScope MODSERIAL QEI TextLCD mbed

Fork of TotalControlEmg2 by Remco Dasselaar

Revision:
29:9610df479f89
Parent:
28:e6d2fe0e593e
Child:
30:8ae855348d22
diff -r e6d2fe0e593e -r 9610df479f89 main.cpp
--- a/main.cpp	Fri Oct 16 13:08:38 2015 +0000
+++ b/main.cpp	Sat Oct 17 14:13:57 2015 +0000
@@ -6,7 +6,6 @@
 #include "Filterdesigns.h"
 #include "Kalibratie.h"
 #include "Mode.h"
-#include <math.h>
 //--------------------Classes------------------------
 InterruptIn btnSet(PTC6);           // kalibreer knop
 DigitalOut ledR(LED_RED), LedB(LED3); // Led op moederbord
@@ -85,8 +84,7 @@
     if((ymax-ymin) < 0.05){                 // voor als er geen kabels in de EMG zitten
         ymin = 10;
         ymax = 10;
-        }    
-    // bepalen van thresholds voor aan/uit
+        }        
     thresholdlowR = 8 * ymin; // standaardwaarde
     thresholdmidR = 0.5 * ymax; // afhankelijk van max output gebruiker
     thresholdhighR = 0.8 * ymax;
@@ -231,8 +229,7 @@
                     if(regelaarFlag){       // motor regelen op GoFlag
                         regelaarFlag = false;                  
                         checkAim();         // Controleer positie                       
-                        }
-                        
+                        }                        
                     if(emgFlag){            // Go flag EMG sampelen
                         emgFlag = false;                                                                        
                         if(controlAim()){           // Buttons met control, if true = beide knoppen = bevestigen