-
Notifications
You must be signed in to change notification settings - Fork 64
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
fix(velodyne): remove heavy get_snapshot from HW monitor #279
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #279 +/- ##
==========================================
- Coverage 29.28% 26.57% -2.71%
==========================================
Files 112 112
Lines 9733 9489 -244
Branches 3252 2121 -1131
==========================================
- Hits 2850 2522 -328
- Misses 6359 6543 +184
+ Partials 524 424 -100
Flags with carried forward coverage won't be shown. Click here to find out more.
|
cc1607d
to
19c1050
Compare
Signed-off-by: Max SCHMELLER <[email protected]>
19c1050
to
4a615da
Compare
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.
Thank you for fixing issue for diagnostics.
I've added a single comment for a small suggestion, but totally looks great so I approved this PR.
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 creating the fix PR!
I tested this fix using both the VLP-16 and VLS-128, and it looks good to me.
… timer Signed-off-by: Max SCHMELLER <[email protected]>
PR Type
Related Links
Description
The
/cgi/snapshot.hdl
endpoint of the sensor is not meant to be polled every second. Doing that causes the sensor to sometimes drop communication for a while (see the linked issue above).This hotfix removes the timer polling
get_snapshot
and the related, now unused code.As far as I can tell, marking diag info stale did not work reliably before (updates from
get_diag
andget_status
were ignored, and will not work at all now.All diag information will still be output as before.
Review Procedure
Test with a real VLP16, VLP32 and VLS128 and compare before/after, especially with advanced diag enabled.
Pre-Review Checklist for the PR Author
PR Author should check the checkboxes below when creating the PR.
Checklist for the PR Reviewer
Reviewers should check the checkboxes below before approval.
Post-Review Checklist for the PR Author
PR Author should check the checkboxes below before merging.
CI Checks