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:
76:0aa90e728e4a
Parent:
74:75be98779124
Child:
78:0cc7c64ba94c
--- a/main.cpp	Tue Oct 20 12:14:18 2015 +0200
+++ b/main.cpp	Tue Oct 20 12:33:23 2015 +0200
@@ -22,12 +22,10 @@
 void motor_activate(){motor_go=true;};
 void emg_activate(){emg_go=true;};
 
-bool safetyOn = false; // start with safety off for calibration
 double motorCall = 0.01; // set motor frequency global so it can be used for speed.
 int main(){
 motorInit();    
-// calibrateMotors(); // start calibration procedure
-safetyOn = true; // turn safety on after calibration
+calibrateMotors(); // start calibration procedure
 
 switches.attach(&switches_activate, 0.02f);
 debug.attach(&debug_activate, 0.03f);