Skip to content

No Gyro data #8

@joesbox

Description

@joesbox

Using the basic read example with an STM32F407. I'm able to get acceleration data, but no gyroscope data.

Wire.setSCL(PB6);
Wire.setSDA(PB7);
Wire.begin();

imu.beginI2C(BMI2_I2C_PRIM_ADDR);

Values read to local variables and printed to serial:

imu.getSensorData();

accelX = imu.data.accelX;
accelY = imu.data.accelY;
accelZ = imu.data.accelZ;
gyroX = imu.data.gyroX;
gyroY = imu.data.gyroY;
gyroZ = imu.data.gyroZ;

Serial debug output. Acceleration changes with movement, rotation remains zero:

IMU data (Accel X, Y, Z, Rotation X, Y, Z): -0.042, -0.169, 0.971, 0.000, 0.000, 0.000

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions