sparkfun / SparkFun_BNO08x_Arduino_Library

An Arduino Library for the BNO08x IMU combination triple axis accelerometer/gyro/magnetometer packaged with an ARM Cortex M0+ running powerful algorithms.
Other
14 stars 7 forks source link

Example 20 Bitwise OR Fix #23

Open rcxking opened 1 month ago

rcxking commented 1 month ago

This commit fixes a bug in the Example 20 - Calibration Settings where logical OR was used instead of bitwise OR. The result is that the IMU's setCalibrationConfig() was evaluated with value 1 rather than 7.

rcxking commented 1 month ago

Hello, I'm using the BNO086 Sparkfun board for a robotics competition and happened to see this bug when I was looking at examples on how to calibrate the sensor. As this is my first PR to this repo I read the contributing guidelines but got a 404 error when trying to find the requested release-candidate branch; please let me know if I should not PR to main. Thank you!