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:
27:5eb5ec295ab2
Parent:
25:874675516927
Child:
30:a20f16bf8dda
diff -r 0a9e4147a31a -r 5eb5ec295ab2 buttons.cpp
--- a/buttons.cpp	Tue Oct 06 16:37:07 2015 +0200
+++ b/buttons.cpp	Tue Oct 06 16:45:41 2015 +0200
@@ -4,7 +4,7 @@
 #include "actuators.h"
 // functions for reading all the buttons and switches 
 
-AnalogIn pot1(pot1Pin);
+AnalogIn pot2(pot2Pin);
 
 void checkSwitches(){
     // read motor enable switch
@@ -14,7 +14,7 @@
     // read servo potmeter position
     
     // read x speed potmeter position
-        motorSetSpeed1 = pot1.read();
+        motorSetSpeed2 = pot2.read();
     
     // read y speed potmeter position