mirror of
https://github.com/YikeStone/ros_arduino_bridge.git
synced 2025-08-03 03:04:09 +05:30
Added call to resetPID() when robot speed is 0. This eliminates hysteresis from the robot motion.
This commit is contained in:
parent
cbbc0d6e8a
commit
9231e6c8bd
@ -208,6 +208,7 @@ int runCommand() {
|
||||
lastMotorCommand = millis();
|
||||
if (arg1 == 0 && arg2 == 0) {
|
||||
setMotorSpeeds(0, 0);
|
||||
resetPID();
|
||||
moving = 0;
|
||||
}
|
||||
else moving = 1;
|
||||
|
Loading…
x
Reference in New Issue
Block a user