-
Notifications
You must be signed in to change notification settings - Fork 935
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
Fix ordering of windup args to control_toolbox::Pid #2370
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Badly needed. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nbbrooks, I cannot follow your argumentation: The linked doc to the Pid constructor, lists i_max
before i_min
. So, if I'm not completely mistaken, the current order was fine any our PR willb break it. What do I miss?
Please take a quick second look. Here's the constructor definition:
Here's Nathan's change:
(The negative value is the second-to-last arg.) Also, we were testing this on a robot 2 days ago, so it was really obvious that it was wrong. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry. I'm too tired...
Description
The control_toolbox::Pid constructor expects i_max followed by i_min (and does not check that the former is greater than the latter). The current arguments are passed in reverse order and this PR addresses that.
This work is sponsored by RE2 Robotics.
Checklist