-
Notifications
You must be signed in to change notification settings - Fork 54
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(at128): allow negative values in points' elevation
fields
#193
Conversation
8b19e03
to
cc5aa7c
Compare
cc5aa7c
to
a1e184e
Compare
@knzo25 Thank you for the reminder, done. 👍 |
@knzo25 As discussed internally, since this is a small 'hotfix'-style change, this is fine to merge into main. |
…nicely with visualization
a1e184e
to
7245521
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #193 +/- ##
==========================================
- Coverage 29.65% 25.78% -3.88%
==========================================
Files 99 99
Lines 8760 8747 -13
Branches 2173 2146 -27
==========================================
- Hits 2598 2255 -343
+ Misses 6116 6106 -10
- Partials 46 386 +340
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Quality Gate passedIssues Measures |
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
question though:
You are using MAX_AZIMUTH
to normalize elevation
.
I know that it is set to 360 * AngleUnit
but if there comes a time where that stops being true (separate directly solid state from mechanical devices, etc), it would be worth considering using a separate variable
@knzo Thanks for the input! The angle corrector classes are very sensor-specific (e.g. only AT128) so I think we are fine for some time to come. Other sensors such as the Aeries II don't have such variables at all for example. |
PR Type
Related Links
Description
Only AT128 normalized its points'
elevation
field to [0, 2pi) while other sensors allowed negativeelevation
values. While the normalization is done on azimuth as well and thus, for consistency sake, would be nice on the elevation field, too, this causes visualizations to look ugly when coloring byelevation
.Anyway, trigonometry functions won't care about this change as they are periodic, and given that all other sensors are not normalizing elevation, it is safe to assume this doesn't impact downstream modules.
Review Procedure
Confirm the
elevation
field looks correct. Code review.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