-
Notifications
You must be signed in to change notification settings - Fork 8
Closed
Description
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
Labels
No labels