Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

integral reset #6

Open
Chick92 opened this issue Oct 16, 2022 · 1 comment
Open

integral reset #6

Chick92 opened this issue Oct 16, 2022 · 1 comment

Comments

@Chick92
Copy link

Chick92 commented Oct 16, 2022

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!

@imax9000
Copy link
Owner

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants