You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Don't place accel and gyro into low power mode. Ensure gyro DLPF is enabled. Return chip to low power state changing DMP (even though accel and gyro are _not_ in low power mode).
uint8_t pwrMgmt2 = 0x40; // Set the reserved bit 6 (pressure sensor disable?)
1216
1216
result = write(AGB0_REG_PWR_MGMT_2, &pwrMgmt2, 1); if (result > worstResult) worstResult = result; // Write one byte to the PWR_MGMT_2 register
1217
1217
1218
-
// Configure I2C_Master/Gyro/Accel in Low Power Mode (cycled) with LP_CONFIG
1219
-
result = setSampleMode((ICM_20948_Internal_Mst | ICM_20948_Internal_Acc | ICM_20948_Internal_Gyr), ICM_20948_Sample_Mode_Cycled); if (result > worstResult) worstResult = result;
1218
+
// Place _only_ I2C_Master in Low Power Mode (cycled) via LP_CONFIG
1219
+
// The InvenSense Nucleo example initially puts the accel and gyro into low power mode too, but then later updates LP_CONFIG so only the I2C_Master is in Low Power Mode
1220
+
result = setSampleMode(ICM_20948_Internal_Mst, ICM_20948_Sample_Mode_Cycled); if (result > worstResult) worstResult = result;
1220
1221
1221
1222
// Disable the FIFO
1222
1223
result = enableFIFO(false); if (result > worstResult) worstResult = result;
0 commit comments