zauberzeug / lizard

Domain-specific language to specify behaviour of microcontroller managed hardware
MIT License
15 stars 5 forks source link

BNO055 Module Modes #105

Open SeaTechRC opened 1 day ago

SeaTechRC commented 1 day ago

Hello,

As of now, it is not possible to select a mode for the BNO055. It is currently hardcoded in the NDOF mode (using gyrometer, accelerometer and magnetometer) giving an absolute orientation. For certain applications, only the relative orientation (BNO055 in IMU mode) is enough.

The advantage of using a different mode, for example IMU mode, is that it doesnt require movement of the sensor for intialization as the NDOF mode does.

https://github.com/zauberzeug/lizard/blob/4a45032f7565c8bcef9c7767a4ac95758339159a/main/modules/imu.cpp#L30