Skip to content

Commit 6bf2667

Browse files
authored
fix scale factor for st imus (#63)
1 parent efc7b28 commit 6bf2667

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

src/main/drivers/accgyro/accgyro_spi_asm330lhh_init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ bool asm330lhhSpiGyroDetect(gyroDev_t *gyro)
237237

238238
gyro->initFn = asm330lhhSpiGyroInit;
239239
gyro->readFn = asm330lhhGyroRead;
240-
gyro->scale = GYRO_SCALE_2000DPS;
240+
gyro->scale = 0.07f;
241241

242242
return true;
243243
}

src/main/drivers/accgyro/accgyro_spi_lsm6ds3_init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ bool lsm6ds3SpiGyroDetect(gyroDev_t *gyro)
212212

213213
gyro->initFn = lsm6ds3SpiGyroInit;
214214
gyro->readFn = lsm6ds3GyroRead;
215-
gyro->scale = GYRO_SCALE_2000DPS;
215+
gyro->scale = 0.07f;
216216

217217
return true;
218218
}

src/main/drivers/accgyro/accgyro_spi_lsm6dsl_init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,7 +232,7 @@ bool lsm6dslSpiGyroDetect(gyroDev_t *gyro)
232232

233233
gyro->initFn = lsm6dslSpiGyroInit;
234234
gyro->readFn = lsm6dslGyroRead;
235-
gyro->scale = GYRO_SCALE_2000DPS;
235+
gyro->scale = 0.07f;
236236

237237
return true;
238238
}

src/main/drivers/accgyro/accgyro_spi_lsm6dso_init.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ bool lsm6dsoSpiGyroDetect(gyroDev_t *gyro)
237237

238238
gyro->initFn = lsm6dsoSpiGyroInit;
239239
gyro->readFn = lsm6dsoGyroRead;
240-
gyro->scale = GYRO_SCALE_2000DPS;
240+
gyro->scale = 0.07f;
241241

242242
return true;
243243
}

0 commit comments

Comments
 (0)