![](/media/cache/group/default_image.jpg.50x50_q85.jpg)
control for robotic arm that can play chess using a granular gripper
Dependencies: Encoder mbed HIDScope Servo MODSERIAL
Fork of chessRobot by
Diff: buttons.cpp
- Revision:
- 25:874675516927
- Parent:
- 18:97eeb2686a6a
- Child:
- 27:5eb5ec295ab2
--- a/buttons.cpp Mon Oct 05 21:27:52 2015 +0200 +++ b/buttons.cpp Tue Oct 06 14:24:40 2015 +0000 @@ -1,12 +1,10 @@ #include "buttons.h" #include "mbed.h" #include "config.h" +#include "actuators.h" // functions for reading all the buttons and switches -void setPins(){ - // set input/output pins - AnalogIn pot1(pot1Pin); -} +AnalogIn pot1(pot1Pin); void checkSwitches(){ // read motor enable switch @@ -16,7 +14,7 @@ // read servo potmeter position // read x speed potmeter position - float motorSetSpeed1 = pot1.read(); + motorSetSpeed1 = pot1.read(); // read y speed potmeter position