![](/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: main.cpp
- Revision:
- 74:75be98779124
- Parent:
- 62:6c566e6f9664
- Child:
- 76:0aa90e728e4a
--- a/main.cpp Tue Oct 20 12:09:58 2015 +0200 +++ b/main.cpp Tue Oct 20 12:14:18 2015 +0200 @@ -22,11 +22,12 @@ void motor_activate(){motor_go=true;}; void emg_activate(){emg_go=true;}; - +bool safetyOn = false; // start with safety off for calibration double motorCall = 0.01; // set motor frequency global so it can be used for speed. int main(){ motorInit(); -// calibrateMotors(); +// calibrateMotors(); // start calibration procedure +safetyOn = true; // turn safety on after calibration switches.attach(&switches_activate, 0.02f); debug.attach(&debug_activate, 0.03f);