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:
60:20945383ad1b
Parent:
59:fe00be2cf8fd
Child:
61:157df6f8ceec
--- a/main.cpp	Mon Oct 12 12:16:58 2015 +0200
+++ b/main.cpp	Mon Oct 12 11:46:05 2015 +0000
@@ -15,16 +15,16 @@
 #include "EMG.h"
 
 Ticker switches, debug, motor, EMG;
-volatile bool switches_go=false, debug_go=false, motor_go=false, EMG_activate= false;
+volatile bool switches_go=false, debug_go=false, motor_go=false, emg_go= false;
 
 void switches_activate(){switches_go=true;};
 void debug_activate(){debug_go=true;};
 void motor_activate(){motor_go=true;};
-void motor_activate(){emg_go=true;};
+void emg_activate(){emg_go=true;};
 
 
-float motorCall = 0.001; // set motor frequency global so it can be used for speed.
-
+float motorCall = 0.1; // set motor frequency global so it can be used for speed.
+int a = 4;
 int main(){
 motorInit(); 
 // calibrateMotors();
@@ -32,7 +32,7 @@
 switches.attach(&switches_activate, 0.02f);
 debug.attach(&debug_activate, 0.03f);
 motor.attach(&motor_activate, motorCall);
-EMG.attach(&EMG_activate, motorCall);
+//EMG.attach(&emg_activate, 0.01f);
 
 
     while (true) {