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:
54:c14c3bc48b8a
Parent:
44:a947bc232d84
Child:
57:43f707648f2b
diff -r 3573a1c8b71a -r c14c3bc48b8a buttons.cpp
--- a/buttons.cpp	Fri Oct 09 11:44:05 2015 +0000
+++ b/buttons.cpp	Fri Oct 09 12:08:35 2015 +0000
@@ -58,11 +58,11 @@
     	switch (actuatorState){
         	case 0: 				// potmeters control X speed
         		redLed.write(0); greenLed.write(1); blueLed.write(1);
-        		motorSetSpeed1 = 300*(pot2.read()-pot1.read());
+        		motor1SetSpeed = 300*(pot2.read()-pot1.read());
         		break;
         	case 1:         		// potmeters control Y speed
         		redLed.write(1); greenLed.write(0); blueLed.write(1);
-        		motorSetSpeed2 = 300*(pot2.read()-pot1.read());
+        		motor2SetSpeed = 300*(pot2.read()-pot1.read());
         		break;
         	case 2:         		// potmeters control Servo pos
         		redLed.write(1); greenLed.write(1); blueLed.write(0);