Skip to content
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

Adis16477 driver standardization work #11629

Closed
wants to merge 1 commit into from

Conversation

mcsauder
Copy link
Contributor

@mcsauder mcsauder commented Mar 12, 2019

Describe problem solved by the proposed pull request
The ADIS16477 driver lacks standardization with the other Analog Devices IMU drivers.

This PR, (and future subsequent PR's), begins aligning the AD imu drivers so that more general imu driver work can proceed in the future.

Describe your preferred solution
This PR and a series of subsequent PR will align the ADIS16477 class with the ADIS16448 and ADIS16497 classes. To align all classes, a lot of copy/paste and formatting is going to take place, please be patient with this process as it will take a number of PRs to keep the review work managable.

Describe possible alternatives
Maintaining the status quo in the IMU drivers is always an option, (albeit a painful one).

Test data / coverage
NOTE: This PR requires hardware validation. (I do not have access to hardware to test this PR against.)

Additional context
See related work in PR #11224.

Please let me know if you have questions on this PR.

-Mark

@dagar

@@ -71,17 +81,11 @@ static constexpr uint16_t PROD_ID_ADIS16477 = 0x405D; /* ADIS16477 Identificatio

static constexpr int T_STALL = 16;

#define GYROINITIALSENSITIVITY 250
#define ACCELINITIALSENSITIVITY (1.0f / 1200.0f)
#define ACCELDYNAMICRANGE 18.0f
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These values are unused at present. The modified values in this PR are taken from the datasheet. The difference in values has no functional impact, and the datasheet values are being put in place here to prevent any future issues.

@mcsauder mcsauder force-pushed the adis16477_work branch 6 times, most recently from 3b9302e to 9b7dbec Compare March 18, 2019 18:12
@mcsauder mcsauder force-pushed the adis16477_work branch 6 times, most recently from 1c96230 to 09c76dc Compare April 4, 2019 16:02
@mcsauder mcsauder force-pushed the adis16477_work branch 3 times, most recently from eefbe9d to b5b1934 Compare April 11, 2019 16:34
@mcsauder mcsauder mentioned this pull request Apr 13, 2019
@mcsauder mcsauder force-pushed the adis16477_work branch 5 times, most recently from 9abb058 to 0ac777d Compare April 22, 2019 04:11
@mcsauder mcsauder force-pushed the adis16477_work branch 2 times, most recently from 44c6fc1 to 9fba5ff Compare April 24, 2019 16:20
@mcsauder mcsauder force-pushed the adis16477_work branch 2 times, most recently from fcb01c9 to e7cec58 Compare May 24, 2019 16:54
@mcsauder mcsauder force-pushed the adis16477_work branch 2 times, most recently from f905155 to ca0dea7 Compare May 31, 2019 21:41
@mcsauder mcsauder force-pushed the adis16477_work branch 2 times, most recently from f2a3ab7 to 3c3dead Compare June 5, 2019 15:47
…y and alphabetize #includes.

Group/alphabetize some methods and vars, in ADIS16477.hpp, move var initialization to declarations, and format whitespace.
@mcsauder
Copy link
Contributor Author

mcsauder commented Jul 2, 2019

Closing in favor of #12140.

@mcsauder mcsauder closed this Jul 2, 2019
@mcsauder mcsauder deleted the adis16477_work branch July 11, 2019 14:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant