-
Notifications
You must be signed in to change notification settings - Fork 100
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
[PID] Add support for saving i-term when PID is reset #180
base: ros2-master
Are you sure you want to change the base?
Conversation
Added save_iterm_ to PID gains Added save_iterm() and clear_saved_iterm() methods to update and clear save integral term Cleared saved integral term in constructor Called save_iterm() in reset() method Added saved integral term to PID output
Simplified saving of integral term
Co-authored-by: Dr. Denis <[email protected]>
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.
LGTM
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.
There is no test if this parameter has the desired effect. Could you please add any? e.g., to gainSettingCopyPIDTest
or add a new one..
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## ros2-master #180 +/- ##
===============================================
+ Coverage 74.88% 75.41% +0.53%
===============================================
Files 24 24
Lines 1107 1135 +28
Branches 86 89 +3
===============================================
+ Hits 829 856 +27
Misses 231 231
- Partials 47 48 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
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.
I added a test for this functionality to integralOnlyTest
This reverts commit 92f7d6f.
Saves integral term on reset to maintain steady state offset output.
This is required for controlling of system without integral part to achieve correct steady-state output.
If intergral term is reset for some time there will be incorrect output in steady-state. This features avoids such situations and makes btter performance.