MadgwickAHRS icon indicating copy to clipboard operation
MadgwickAHRS copied to clipboard

Visualize101.ino: Simplify sensor reading

Open eriknyquist opened this issue 9 years ago • 5 comments

CurieIMU now has dataReady() functions to check for newly available accel/gyro data, and also readAccelerometer/GyroScaled(), which reads then sensor and returns values scaled according to the configured range. Using these functions in the Visualize101 example makes the source much simpler

eriknyquist avatar Oct 11 '16 17:10 eriknyquist

01org/corelibs-arduino101#317 has been merged, this can also be merged now.

eriknyquist avatar Oct 14 '16 18:10 eriknyquist

Has this new 101 core been released to the boards manager downloads?

If it's only been merged on github, but not yet officially released via the boards manger, then updating this library could break things for 101 users.

With this in mind, just tell me when you want it merged. They're your users....

PaulStoffregen avatar Oct 15 '16 21:10 PaulStoffregen

Good point @PaulStoffregen-- I was not thinking straight on Friday. So don't merge yet- I'll let you know when our next release is available from the IDE library manager (currently it is not).

eriknyquist avatar Oct 17 '16 18:10 eriknyquist

Updated to use readAccelerometerScaled, and readGyroScaled, which greatly simplifies the example (manual conversion no longer required).

eriknyquist avatar Jan 24 '17 19:01 eriknyquist

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

CLAassistant avatar Apr 09 '21 13:04 CLAassistant