-
Notifications
You must be signed in to change notification settings - Fork 106
Use RealtimeThreadSafeBox for PID class #387
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
Use RealtimeThreadSafeBox for PID class #387
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## ros2-master #387 +/- ##
===============================================
- Coverage 78.41% 78.38% -0.04%
===============================================
Files 30 30
Lines 1886 1888 +2
Branches 113 114 +1
===============================================
+ Hits 1479 1480 +1
Misses 338 338
- Partials 69 70 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
🚀 New features to boost your workflow:
|
This pull request is in conflict. Could you fix it @christophfroehlich? |
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 changes are fine but I've some questions. I've mentioned those comments.
BTW why not use the RTThreadSafeBox Directly?. As we are using the realtime mutexes, it is safe. This way we can avoid another variable completely
Co-authored-by: Sai Kishor Kothakota <[email protected]>
what do you mean? instead of the gain_ copy? but what happens if try_get in the compute_command fails, then we can't proceed? |
This pull request is in conflict. Could you fix it @christophfroehlich? |
4a64d8f
into
ros-controls:ros2-master
Co-authored-by: Sai Kishor Kothakota <[email protected]> (cherry picked from commit 4a64d8f) # Conflicts: # control_toolbox/include/control_toolbox/pid.hpp
Co-authored-by: Sai Kishor Kothakota <[email protected]> Co-authored-by: Christoph Fröhlich <[email protected]>
ros-controls/realtime_tools#347