control for robotic arm that can play chess using a granular gripper

Dependencies:   Encoder mbed HIDScope Servo MODSERIAL

Fork of chessRobot by a steenbeek

Revision:
78:0cc7c64ba94c
Parent:
62:6c566e6f9664
Child:
88:dd198c58f053
--- a/debug.cpp	Tue Oct 20 12:36:12 2015 +0200
+++ b/debug.cpp	Tue Oct 20 12:58:13 2015 +0200
@@ -20,7 +20,8 @@
     scope.send();
 }
 
-#else
+#endif
+#ifdef TUNEPWM
 HIDScope scope(4);
 
 void debugProcess(){
@@ -31,4 +32,16 @@
     scope.send();
 }
 
+#endif
+
+#ifdef TUNEEMG
+HIDScope    scope(4);                   // Number of scopes
+
+void debugProcess(){
+    scope.set(0,x_velocity);
+    scope.set(1,y_velocity);
+    scope.set(2,pump);
+    scope.set(3,DOF);
+    scope.send();
+}
 #endif
\ No newline at end of file