Added call to resetPID() when robot speed is 0. This eliminates hysteresis from the robot motion.

This commit is contained in:
Patrick Goebel 2016-04-18 16:29:04 -07:00
parent cbbc0d6e8a
commit 9231e6c8bd

View File

@ -208,6 +208,7 @@ int runCommand() {
lastMotorCommand = millis();
if (arg1 == 0 && arg2 == 0) {
setMotorSpeeds(0, 0);
resetPID();
moving = 0;
}
else moving = 1;