![](/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: emg.cpp
- Revision:
- 127:831f03471efb
- Parent:
- 113:7af0ae9a24c0
--- a/emg.cpp Thu Oct 29 20:06:41 2015 +0000 +++ b/emg.cpp Thu Oct 29 22:46:30 2015 +0100 @@ -26,7 +26,7 @@ // Initialize movement parameters int DOF = 1; // Switch variable for controlled DOF: 1=x 2=y 3=z -bool pump = false; // Pump switch +bool enablePump = false; // Pump switch bool thr_pass1 = false; // Processing threshold passed for signal 1? bool thr_pass2 = false; // Processing threshold passed for signal 2? double velocity = 0; // Forward velocity @@ -165,7 +165,7 @@ } } else { // Switch pump --------------------------------------------------------------------------- - pump = !pump; + enablePump = !enablePump; } } // No input: set all value to zero ---------------------------------------------------------------