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:
25:874675516927
Parent:
14:0c0d1bfd94ea
Child:
26:0a9e4147a31a
--- a/debug.cpp	Mon Oct 05 21:27:52 2015 +0200
+++ b/debug.cpp	Tue Oct 06 14:24:40 2015 +0000
@@ -1,19 +1,15 @@
 #include "mbed.h"
 #include "debug.h"
+#include "HIDScope.h"
+#include "buttons.h"
+#include "actuators.h"
+#include "config.h"
 // all the debugging functions
-void debugInit(){
-	#include "HIDScope.h"
-    HIDScope scope(1);
-    Ticker sendScope;
-    sendscope.attach(&debugProcess, 1/1000);
-}
+
+HIDScope scope(1);
 
 void debugProcess(){
-	scope.set(0, motorSetSpeed1);
-	scope.set(1, scopevalue);
-	scope.set(2, scopevalue);
-	scope.set(3, scopevalue);
-	scope.set(4, scopevalue);
-	scope.set(5, scopevalue);
-	scope.send
+    scope.set(0, motorSetSpeed1);
+    scope.send();
+    wait(0.2f);
 }
\ No newline at end of file