ShellAddicted / BNO055ESP32

C++ Interface for the Bosch-Sensortec's BNO055 compatible with Espressif's ESP32 SoC running esp-idf.
MIT License
24 stars 9 forks source link

enum BNO055_CONF_ACCEL_BANDWIDTH_500HZ wrong #8

Closed josephpal closed 3 years ago

josephpal commented 3 years ago

It looks like this type definition is wrong (BNO055ESP32.h, line 304):

typedef enum {
    BNO055_CONF_ACCEL_BANDWIDTH_7_81HZ = 0x00,
    BNO055_CONF_ACCEL_BANDWIDTH_15_63HZ = 0x04,
    BNO055_CONF_ACCEL_BANDWIDTH_31_25HZ = 0x08,
    BNO055_CONF_ACCEL_BANDWIDTH_62_5HZ = 0x0C,
    BNO055_CONF_ACCEL_BANDWIDTH_125HZ = 0x10,
    BNO055_CONF_ACCEL_BANDWIDTH_250HZ = 0x14,
    BNO055_CONF_ACCEL_BANDWIDTH_500HZ = 0x08,    <---
    BNO055_CONF_ACCEL_BANDWIDTH_1000HZ = 0x1C
} bno055_accel_bandwidth_t;

It has to be 0x18 in order to configure the sensor for 500Hz bandwidth.

Greetings, Joe

ShellAddicted commented 3 years ago

Hi Joe, thanks for noticing that, now it's fixed.