Skip to content
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

Remove all build warnings #1233

Merged
merged 4 commits into from
Jan 17, 2025
Merged

Conversation

urfeex
Copy link
Member

@urfeex urfeex commented Jan 14, 2025

This PR aims at reducing the build warnings to 0.

Fail the controller function if writing to a command interface fails.
For the GPIO controller we ignore the return value, as we are checking the result anyway.
Copy link

codecov bot commented Jan 14, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 3.77%. Comparing base (1b121b7) to head (4d53104).
Report is 381 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff            @@
##            main   #1233      +/-   ##
========================================
+ Coverage   3.59%   3.77%   +0.18%     
========================================
  Files         13     395     +382     
  Lines        947   43513   +42566     
  Branches     152    6407    +6255     
========================================
+ Hits          34    1643    +1609     
- Misses       843   41727   +40884     
- Partials      70     143      +73     
Flag Coverage Δ
unittests 3.77% <ø> (+0.18%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@urfeex
Copy link
Member Author

urfeex commented Jan 14, 2025

Note: For the time being I expect main builds to fail, due to PickNikRobotics/generate_parameter_library@01e9dce just being released and only available in testing.

The remaining warning is due to a missing release of control_toolbox, see ros-controls/control_toolbox@74510fd

@urfeex urfeex force-pushed the no_build_warnings branch from 9e8f3cf to 2158dab Compare January 15, 2025 10:21
@urfeex urfeex marked this pull request as ready for review January 16, 2025 11:42
@urfeex urfeex requested a review from a team January 16, 2025 11:42
@urfeex
Copy link
Member Author

urfeex commented Jan 16, 2025

This now builds successfully on jazzy testing. I don't quite know why the tests are failing on rolling currently, they don't do that locally, but that test has to be fixed separately. Hence, I'll mark this ready for review.

@@ -407,16 +408,17 @@ bool GPIOController::setAnalogOutput(ur_msgs::srv::SetAnalogOutput::Request::Sha
return false;
}

if (req->data.pin < 0 || req->data.pin > 1) {
if (!(req->data.pin == 0 || req->data.pin == 1)) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it a digital pin?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, but that't the pin index. There are only pins 0 and 1. It's not the analog value.

@urfeex
Copy link
Member Author

urfeex commented Jan 17, 2025

With fixing the test pipelines are as expected. I'll remove the test fix from this PR again, merge it and make a separate PR about fixing the test.

@urfeex urfeex force-pushed the no_build_warnings branch from 4d53104 to 2158dab Compare January 17, 2025 07:42
@urfeex urfeex merged commit ee89eed into UniversalRobots:main Jan 17, 2025
12 of 25 checks passed
@urfeex urfeex deleted the no_build_warnings branch January 17, 2025 08:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants