Arduino-PID-Library
Arduino-PID-Library copied to clipboard
integral reset
Hi,
What is the correct method of resetting the controller, specifically integral term?
setmode doesn't seem to have any effect, other than "pausing it".
I.e I tell my robot to drive in a straight line, and then abruptly stop it, and put the controller into manual mode. When i then direct it to say reverse, and put it back into automatic, that robot still travels forward for a bit, before decelerating and accelerating rearwards.
Thanks!
Hm, I don't think an abstract PID controller is able to handle such a switch in direction the way you want it.
Can you please describe your use case in a little bit more details? What are you using as an input? How the output gets applied to a motor?