Skip to content

Add functions to check if new IMU data is available #317

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

Merged
merged 1 commit into from
Oct 14, 2016

Conversation

eriknyquist
Copy link
Contributor

accelDataReady() and gyroDataReady() read the drdy_acc and drdy_gyr
bits, respectively, of the BMI160's sensor status register. This removes
the burden of syncronising sensor reads from the user.

(adapted from descampsa/corelibs-arduino101@773a800)

@bigdinotech @calvinatintel @SidLeung please review.
Don't merge this. I'm gonna do some testing and I'll merge it when that's done.

accelDataReady() and gyroDataReady() read the drdy_acc and drdy_gyr
bits, respectively, of the BMI160's sensor status register. This removes
the burden of syncronising sensor reads from the user.

(adapted from descampsa/corelibs-arduino101@773a800)
@calvinatintel
Copy link
Contributor

Now that we're using the "All Issues" and "All PRs" with "Assigned" filters, can you please assign the ticket to me if you need me to test or merge? Thanks

@PaulStoffregen
Copy link

Why is this "DataReady" when the Arduino style guide requires "available"?

@eriknyquist
Copy link
Contributor Author

Well, because I didn't implement an 'available' function. There's no buffering going on, just wrappers for reading the DRDY bits of the BMI160 status reg.

Copy link
Contributor

@bigdinotech bigdinotech left a comment

Choose a reason for hiding this comment

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

+1

@eriknyquist
Copy link
Contributor Author

@PaulStoffregen are you conceding? gonna merge this unless you have major issues with it

@eriknyquist eriknyquist merged commit 1c8de0d into arduino:master Oct 14, 2016
@eriknyquist eriknyquist deleted the imu_drdy branch October 14, 2016 18:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants