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:
- 45:5631954927e0
- Parent:
- 44:a947bc232d84
- Child:
- 46:a00cc8a751f5
diff -r a947bc232d84 -r 5631954927e0 actuators.cpp --- a/actuators.cpp Thu Oct 08 14:28:42 2015 +0200 +++ b/actuators.cpp Thu Oct 08 14:38:32 2015 +0200 @@ -125,8 +125,8 @@ PIDmotor1.setSetPoint(abs(motorSetSpeed1)); PIDmotor2.setSetPoint(abs(motorSetSpeed2)); - PIDmotor1.setProcessValue(motorSpeed1); - PIDmotor2.setProcessValue(motorSpeed2); + PIDmotor1.setProcessValue(abs(motorSpeed1)); + PIDmotor2.setProcessValue(abs(motorSpeed2)); motorPWM1 = PIDmotor1.compute(); motorPWM2 = PIDmotor2.compute();