![](/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:
- 107:de47331612d9
- Parent:
- 106:1773bf7b95c5
- Child:
- 118:49605b5bd802
diff -r 1773bf7b95c5 -r de47331612d9 buttons.cpp --- a/buttons.cpp Mon Oct 26 12:46:29 2015 +0100 +++ b/buttons.cpp Mon Oct 26 13:04:22 2015 +0100 @@ -4,6 +4,9 @@ #include "actuators.h" #include "PID.h" +#define SETPOS + + // functions for reading all the buttons and switches AnalogIn pot1(pot1Pin); AnalogIn pot2(pot2Pin); @@ -49,7 +52,8 @@ #ifdef TUNEPID setForPID(); // if TUNEPID is defined, use potmeters for PID tuning - #else + #endif + #ifdef SETPOS setForPositions(); // else use it for motor control #endif }