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:
- 54:c14c3bc48b8a
- Parent:
- 52:2ac9dee099ce
- Child:
- 55:ee5257fb73df
diff -r 3573a1c8b71a -r c14c3bc48b8a actuators.cpp --- a/actuators.cpp Fri Oct 09 11:44:05 2015 +0000 +++ b/actuators.cpp Fri Oct 09 12:08:35 2015 +0000 @@ -110,8 +110,8 @@ } void writeMotors(){ - motor1PID.compute(); // calculate PID outputs, output changes automatically - motor2PID.compute(); + motor1PID.Compute(); // calculate PID outputs, output changes automatically + motor2PID.Compute(); // write new values to motor's if (motor1PWM >= 0 ){ // CCW rotation direction1 = false;