mirror of
https://github.com/YikeStone/ros_arduino_bridge.git
synced 2025-08-05 20:14:07 +05:30
Added resetPID() call when robot velocities are 0 to fix motion perserverance bug
This commit is contained in:
parent
d03061ae60
commit
2b4567ec08
@ -316,6 +316,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