Control up to two motors using filtered EMG signals and a PID controller

Dependencies:   FastPWM HIDScope MODSERIAL QEI Matrix biquadFilter controller errorFetch mbed motorConfig refGen MatrixMath inverseKinematics

Fork of Minor_test_serial by First Last

Revision:
11:d1692be2de30
Parent:
10:e23cbcdde7e3
Child:
12:0462757e1ed2
--- a/main.cpp	Thu Sep 21 08:12:58 2017 +0000
+++ b/main.cpp	Thu Sep 21 08:20:49 2017 +0000
@@ -4,7 +4,6 @@
 #include "QEI.h"
 
 QEI Encoder(D12,D13,NC,32);
-HIDScope scope(2);
 MODSERIAL pc(USBTX, USBRX);
 
 Ticker encoderTicker;
@@ -20,7 +19,8 @@
 int main()
     {
     pc.baud(115200);
+    encoderTicker.attach(readEncoder, 0.5);    
     pc.printf("Encoder ticker attached and baudrate set");
-    encoderTicker.attach(readEncoder, 2.0);    
+
     }