![](/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.h
- Revision:
- 57:43f707648f2b
- Parent:
- 54:c14c3bc48b8a
- Child:
- 59:fe00be2cf8fd
--- a/buttons.h Fri Oct 09 13:06:14 2015 +0000 +++ b/buttons.h Mon Oct 12 11:46:47 2015 +0200 @@ -1,12 +1,17 @@ #ifndef BUTTONS_H #define BUTTONS_H +#include "PID.h" extern float motor1SetSpeed; extern float motor2SetSpeed; extern bool motorsEnable; extern float servoPos; +extern PID motor2PID; -void setPins(); -void checkSwitches(); - +public: + void setPins(); + void checkSwitches(); +private: + void setForPositions(); + void setForPID(); #endif \ No newline at end of file