-
Notifications
You must be signed in to change notification settings - Fork 113
Improve PID parameter validation #510
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
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## ros2-master #510 +/- ##
===============================================
+ Coverage 82.35% 82.69% +0.33%
===============================================
Files 29 29
Lines 1984 1982 -2
Branches 114 113 -1
===============================================
+ Hits 1634 1639 +5
+ Misses 281 274 -7
Partials 69 69
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
dfb701e
to
98ed56d
Compare
@bijoua29 @ViktorCVS maybe you can have a quick look please, do you agree? |
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.
Have you checked if i_min=i_max=0, that it is internally consistent?
98ed56d
to
b419fc3
Compare
From: https://en.cppreference.com/w/cpp/algorithm/clamp.html
If it equals, then std::clamp will just force it to zero, right? |
(cherry picked from commit 84a0c5c) # Conflicts: # control_toolbox/include/control_toolbox/pid.hpp # control_toolbox/include/control_toolbox/pid_ros.hpp # control_toolbox/src/pid_ros.cpp # control_toolbox/test/pid_ros_parameters_tests.cpp
#507 (comment)