-
Notifications
You must be signed in to change notification settings - Fork 109
Update documentation of PID class #388
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
Update documentation of PID class #388
Conversation
Clarify and expand migration instructions now that pull request ros-controls#298 has been merged, ensuring users know how to adjust their configurations accordingly.
@christophfroehlich I’ve created a PR to update the documentation, but I’m not sure if there are other repositories or files I need to update. Can you help me with that? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## ros2-master #388 +/- ##
============================================
Coverage 78.38% 78.38%
============================================
Files 30 30
Lines 1888 1888
Branches 114 114
============================================
Hits 1480 1480
Misses 338 338
Partials 70 70
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
I suggest that you add the documentation here Add a new section for the PID, copy basis information from the docstring and add your antiwindup description from the other PR there. |
Adds a comprehensive PID section to control_toolbox.md, covering the standard PID equation, descriptions of proportional, integral, and derivative gains, output limits, detailed explanations of anti-windup strategies (back-calculation and conditional integration) with update rules and default values, and a C++ usage example.
Clarify and expand migration instructions now that pull request ros-controls#298 has been merged, ensuring users know how to adjust their configurations accordingly.
Done! I changed it from draft to open. If there is still documentation to add, I’ll add more commits. |
Adds a comprehensive PID section to control_toolbox.md, covering the standard PID equation, descriptions of proportional, integral, and derivative gains, output limits, detailed explanations of anti-windup strategies (back-calculation and conditional integration) with update rules and default values, and a C++ usage example.
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.
Thanks for this addition. Some details got outdated, comments see below.
please update also the docstring of the Pid Class in pid.hpp accordingly (remove i_clamp etc).
/*! \class Pid |
And could you please also add the references to literature?
doc/migration.rst
Outdated
|
||
Pid/PidRos | ||
*********************************************************** | ||
* The parameters :paramref:`antiwindup`, :paramref:`i_clamp_max`, and :paramref:`i_clamp_min` have been removed. The anti-windup behavior is now configured via the :paramref:`AntiwindupStrategy` enum. (`#298 <https://github.com/ros-controls/control_toolbox/pull/298>`_). |
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.
* The parameters :paramref:`antiwindup`, :paramref:`i_clamp_max`, and :paramref:`i_clamp_min` have been removed. The anti-windup behavior is now configured via the :paramref:`AntiwindupStrategy` enum. (`#298 <https://github.com/ros-controls/control_toolbox/pull/298>`_). | |
* The parameters :paramref:`antiwindup`, :paramref:`i_clamp_max`, and :paramref:`i_clamp_min` have been removed. The anti-windup behavior is now configured via the :paramref:`AntiWindupStrategy` enum. (`#298 <https://github.com/ros-controls/control_toolbox/pull/298>`_). |
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.
Thanks! Solved in commit eaf1721
Done! |
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.
Thanks a lot. Next time, please use the github UI to apply suggested changes if you fully agree, this makes the re-review faster for us ;)
ff1f2d6
into
ros-controls:ros2-master
(cherry picked from commit ff1f2d6) # Conflicts: # doc/migration.rst
Documentation PR post-PR #298 merge