Code for emg controlled robotic arm

Dependencies:   HIDScope biquadFilter mbed QEI

Files at this revision

API Documentation at this revision

Comitter:
WouterJS
Date:
Tue Oct 30 08:26:42 2018 +0000
Parent:
5:892531e4e015
Commit message:
Next one;

Changed in this revision

main.cpp Show annotated file Show diff for this revision Revisions of this file
diff -r 892531e4e015 -r b526cf83fd4f main.cpp
--- a/main.cpp	Tue Oct 30 08:24:14 2018 +0000
+++ b/main.cpp	Tue Oct 30 08:26:42 2018 +0000
@@ -110,7 +110,7 @@
     //Reading of motor
             
     counts_m1 = Encoder1.getPulses() - counts_m1_prev;
-    counts_m2 = Encoder1.getPulses() - counts_m2_prev;
+    counts_m2 = Encoder2.getPulses() - counts_m2_prev;
     deg_m1 = deg_m1 + counts_m1*(360/(full_ratio));
     deg_m2 = deg_m2 + counts_m2*(360/(full_ratio));
     counts_m1_prev = Encoder1.getPulses();