-
Notifications
You must be signed in to change notification settings - Fork 13.5k
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
drivers/imu/invensense/icm42670p: cleanup and small fixes #19660
Conversation
GYRO_FS_SEL_2000_DPS = 0, // 0b000 = ±2000dps | ||
GYRO_FS_SEL_1000_DPS = Bit5, // 0b001 = ±1000 dps | ||
GYRO_FS_SEL_500_DPS = Bit6, // 0b010 = ±500 dps | ||
GYRO_FS_SEL_250_DPS = Bit6 | Bit5, // 0b011 = ±250 dps |
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.
Hi @dagar . What do you think about leaving the lower dynamic gyro and accel ranges in the enum so that if anyone wants to configure the range manually they have an easy copy paste into the register config in the header file?
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.
@mcsauder can we merge this As is?
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.
Do we have any evidence that the lower range offered any measurable improvement? At the moment I'm much more concerned with the failures that happen due to the range being insufficient (eg accel clipping).
Additionally the icm42670p supports 20 bit data output (just like the icm42688p), but we haven't implemented it. Bothering to get the full output resolution at max dynamic range is still more resolution than lower dynamic range + 16 bit raw data.
I can add 20 bit support to this driver later.
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.
One comment, otherwise these changes look good to me. I do not have hardware to test, but the logic changes all look correct from what I can see. Nice cleanup @dagar !
@dagar Tested and working! |
|
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.
Actual == requested == 24mHZ
No description provided.