to send emg signal to motor with test programm

Dependencies:   HIDScope biquadFilter mbed

Fork of EMGvoorjan by Roy Theussing

Revision:
35:5a8a7bd8ae59
Parent:
34:008bd226d37e
Child:
36:7d7c16c688df
--- a/main.cpp	Thu Oct 26 09:29:42 2017 +0000
+++ b/main.cpp	Thu Oct 26 10:05:07 2017 +0000
@@ -160,8 +160,12 @@
 motor2DirectionPin = 1;
 
     while(1) {
-        MotorOn.rise(&MotorLocker);
-        motor2MagnitudePin = EMGInput;
+        if (Vwaarde[1] == 0 || x==1) {
+            MotorLock = 0;
+        }
+        else MotorLock = 1;
+       // MotorOn.rise(&MotorLocker);
+        motor2MagnitudePin = EMGInput*MotorLock;
         wait(0.01);
     }
 }
\ No newline at end of file