-
Notifications
You must be signed in to change notification settings - Fork 59
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
Add API for enabling / disabling IMU orientation #142
Conversation
Signed-off-by: Ian Chen <[email protected]>
Codecov Report
@@ Coverage Diff @@
## ign-sensors4 #142 +/- ##
================================================
+ Coverage 76.10% 76.16% +0.05%
================================================
Files 23 23
Lines 2390 2396 +6
================================================
+ Hits 1819 1825 +6
Misses 571 571
Continue to review full report at Codecov.
|
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, just a nit about style.
Signed-off-by: Ian Chen <[email protected]>
Signed-off-by: Ian Chen <[email protected]>
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.
A minor style issue, but otherwise LGTM
// orientation should still be the previous value because it is not being | ||
// updated. | ||
EXPECT_EQ(newOrientValue, sensor->Orientation()); | ||
|
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.
Signed-off-by: Ian Chen [email protected]
🎉 New feature
Not all IMUs produce orientation estimates. This PR adds a new API to the IMU sensor class to allow users to disable computing and publishing orientation values.
Checklist
codecheck
passed (See contributing)Note to maintainers: Remember to use Squash-Merge