![](/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:
- 90:1d0c96a5bc5f
- Parent:
- 89:9063484e8a1b
- Child:
- 92:12e2e57e900a
--- a/main.cpp Tue Oct 20 16:47:11 2015 +0200 +++ b/main.cpp Wed Oct 21 11:13:10 2015 +0200 @@ -27,13 +27,14 @@ double motorCall = 0.01; // set motor frequency global so it can be used for speed. int main(){ DigitalIn startButton(startPin); +while(start == false){ if(startButton.read()==0){ start=true; } - -if(start){ +} +else{ motorInit(); -// calibrateMotors(); // start calibration procedure +calibrateMotors(); // start calibration procedure switchesTick.attach(&switches_activate, 0.02f); debugTick.attach(&debug_activate, 0.03f);