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:
110:a6439e13be8b
Parent:
99:7030e9790b1d
Child:
111:43c0881fe7e7
Child:
115:d8d2968981f3
--- a/main.cpp	Mon Oct 26 12:45:41 2015 +0000
+++ b/main.cpp	Tue Oct 27 14:45:15 2015 +0000
@@ -14,6 +14,8 @@
 #include "debug.h"
 #include "emg.h"
 
+int a =4;
+
 Ticker switchesTick, debugTick, motorTick, EMGTick, safetyTick;
 volatile bool switches_go=false, debug_go=false, motor_go=false, emg_go=false, safety_go=false;
 
@@ -27,10 +29,11 @@
 const int sample = 0;  // Constant for mode switching for program readability
 const int normalize = 1; // Constant for mode switching for program readability
 bool mode = normalize; // Set program mode
+bool calReady = false; // flag for calibration ready
 
 int main(){
     motorInit();    
-//    calibrateMotors(); // start motor calibration
+    calReady = calibrateMotors(); // start motor calibration
 
     EMGTick.attach(&emg_activate, 0.005f);
     switchesTick.attach(&switches_activate, 0.02f);