(ACTIVE) Gyroscope (BNO055)

Plan

https://github.com/fm4dd/pi-bno055 is a nice commandline tool (under the MIT license) that appears to work. It is not entirely object oriented, and it has global variables. Code is clearly structured though.

Rip it apart, and create a class that can be used like so:

BNO055 my_sensor("/dev/i2c-1", 0x23 /*whatever the address is*/);
auto acc_vector = my_sensor.get_acc(); // and more such methods
cout << acc_vector.x << ',' << acc_vector.y << ',' << acc_vector.z << '\n';

Status

  • 2024-11-05: ongoing

Notes