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:
1:80f098c05d4b
Parent:
0:525558a26464
Child:
3:47c76be6d402
diff -r 525558a26464 -r 80f098c05d4b main.cpp
--- a/main.cpp	Mon Sep 28 13:54:34 2015 +0000
+++ b/main.cpp	Thu Oct 01 15:09:24 2015 +0200
@@ -9,17 +9,25 @@
 #define DEBUG // send debug data to serial console
 #define ARM  // enable motors
 
+#ifdef DEBUG
+    MODSERIAL pc(USBTX, USBRX);
+    pc.baud(115200);
+#endif
+
+enablePins();
 motorInit(); 
 
 int main()
 {
+    Timer time; // create timer object
+    time.start(); // start the timer
+    
     while (true) {
         checkSwitches();
         readEMG();
         motorControl();
         servoControl();
         pumpControl();
-                
         
         #ifdef DEBUG
             debugProcess();