![](/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: debug.cpp
- Revision:
- 57:43f707648f2b
- Parent:
- 56:f730962fbb53
- Child:
- 60:20945383ad1b
--- a/debug.cpp Fri Oct 09 13:06:14 2015 +0000 +++ b/debug.cpp Mon Oct 12 11:46:47 2015 +0200 @@ -6,6 +6,20 @@ #include "config.h" // all the debugging functions + +#ifdef TUNEPID +HIDScope scope(5); + +void debugProcess(){ + scope.set(0, Kp); + scope.set(1, Ki); + scope.set(2, Kd); + scope.set(3, motor2SetSpeed); + scope.set(4, motor2Speed); + scope.send(); +} + +#elif HIDScope scope(4); void debugProcess(){ @@ -14,4 +28,6 @@ scope.set(2, motor2Speed); scope.set(3, motor2PWM); scope.send(); -} \ No newline at end of file +} + +#endif \ No newline at end of file