Extended and refactored library for BNO055, an intelligent 9-axis absolute orientation sensor by Bosch Sensortec. It includes ACC, MAG and GYRO sensors and Cortex-M0 processor.
Fork of BNO055_fusion by
Please note: pitch and roll in get_euler_angles are switched, the code should be like this:
h = dt[1] << 8 | dt[0]; r = dt[3] << 8 | dt[2]; p = dt[5] << 8 | dt[4];
See https://www.bosch-sensortec.com/media/boschsensortec/downloads/datasheets/bst-bno055-ds000.pdf
Diff: BNO055.h
- Revision:
- 9:e7c8d34bf79a
- Parent:
- 8:46134e7474e7
- Child:
- 10:63a9849f0e97
diff -r 46134e7474e7 -r e7c8d34bf79a BNO055.h --- a/BNO055.h Sun Jan 28 19:38:51 2018 +0000 +++ b/BNO055.h Sun Jan 28 19:46:06 2018 +0000 @@ -264,10 +264,10 @@ protected: void initialize(void); - void check_id(void); + void get_id(void); void set_initial_dt_to_regs(void); void unit_selection(void); - uint8_t check_operating_mode(void); + uint8_t get_operating_mode(void); uint8_t select_page(uint8_t page); I2C *_i2c_p;