control for robotic arm that can play chess using a granular gripper
Dependencies: Encoder mbed HIDScope Servo MODSERIAL
Fork of chessRobot by
Diff: actuators.cpp
- Revision:
- 22:c562b9a4176d
- Parent:
- 21:3e6ebec86438
- Child:
- 25:874675516927
diff -r 3e6ebec86438 -r c562b9a4176d actuators.cpp --- a/actuators.cpp Mon Oct 05 21:25:16 2015 +0200 +++ b/actuators.cpp Mon Oct 05 21:27:52 2015 +0200 @@ -68,8 +68,8 @@ PIDmotor1.setProcessValue(motorSpeed1); PIDmotor2.setProcessValue(motorSpeed2); // set PID mode - PIDmotor1.setMode(AUTOMATIC); - PIDmotor2.setMode(AUTOMATIC); + PIDmotor1.setMode(1); + PIDmotor2.setMode(1); // set limits for PID output to avoid integrator build up. PIDmotor1.setOutputLimits(-1.0, 1.0);