Will Pybricks PID control over correct? #2447
fancooling
started this conversation in
General
Replies: 1 comment
-
|
For many teams, the default values work well enough. When adjustment was needed, the majority of teams reported they wanted to increase the parameters, so it depends on your robot. What you may be referring to is maintaining the angle after a turn or straight. This is also a default requested by most teams, but you can turn it off by using then=Stop.Coast for your movements. If you've found that it still works quite well even with PID nearly turned off, that's a pretty good sign, because that's close to perfection. We recommend keeping it on though, so that it can account for errors when they do occur. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Pybricks PID algorithm seems to over correct if robot makes a turn then goes straight. Does anyone know why?
In a test, I made robot move a distance, make a 90 degree turn, then move a short distance.
I realized two things:
I made a little change to the code, set PID parameters very small to essentially disable PID.
Without PID, the heading after drive_base.straight(100) seems to be very close to 90 degree, ~91 degree. It still grew from 89.5 to 91, but much better.
This behavior caused a lot of inconsistency in our recent competition.
Any thought?
Beta Was this translation helpful? Give feedback.
All reactions