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:
12:61759f94c07a
Parent:
6:b957d8809e7c
Child:
13:4837b36b9a68
--- a/main.cpp	Mon Oct 05 15:59:52 2015 +0000
+++ b/main.cpp	Mon Oct 05 16:44:52 2015 +0000
@@ -1,18 +1,21 @@
+#include "mbed.h"
 #include "PID.h"
-#include "mbed.h"
 #include "encoder.h"
 #include "config.h"  // settings and pin configurations
 
-#define DEBUG // send debug data to HIDScope
+
+using namespace std;
+
+//#define DEBUG // send debug data to HIDScope
 #ifdef DEBUG
     dubugInit();
 #endif
 
-enablePins();
-motorInit(); 
+
 
 int main(){
-
+    setPins();
+    motorInit(); 
     while (true) {
         // checkSwitches();
         // readEMG();