Arduino-PID-Library icon indicating copy to clipboard operation
Arduino-PID-Library copied to clipboard

integral reset

Open Chick92 opened this issue 2 years ago • 1 comments

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!

Chick92 avatar Oct 16 '22 02:10 Chick92

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?

imax9000 avatar Apr 25 '24 16:04 imax9000