-
Notifications
You must be signed in to change notification settings - Fork 13.7k
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
sensors: refactor common corrections and rotation helpers #14036
Conversation
1386a11
to
4be4b27
Compare
4be4b27
to
de086ae
Compare
de086ae
to
5f9fb45
Compare
Codecov Report
@@ Coverage Diff @@
## master #14036 +/- ##
==========================================
- Coverage 42.33% 36.18% -6.16%
==========================================
Files 605 546 -59
Lines 51208 46834 -4374
==========================================
- Hits 21680 16946 -4734
- Misses 29528 29888 +360
|
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.
Nice! Looks good to me.
5f9fb45
to
e1fa69b
Compare
e1fa69b
to
4339ce9
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.
Looks good to me.
How about doing the same for sensor biases?
BTW, isn't vehicle_imu bias compensated? I understand that this data is consumed by the estimator, who is responsible for bias estimation, however it would be useful to have unbiased data in vehicle_imu in case it is consumed elsewhere.
The vehicle_imu's are without bias, however we're publishing one for each IMU (accel + gyro paired), so it's not necessarily appropriate for other usage. At the moment |
This was bench tested. |
This PR refactors the duplicated board rotation and sensor correction (if available) handling in the sensors module.
It saves about 1.5 kB of flash.