Skip to content

Commit

Permalink
fix scale factor for st imus (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
DusKing1 authored Jun 30, 2024
1 parent efc7b28 commit 6bf2667
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/drivers/accgyro/accgyro_spi_asm330lhh_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ bool asm330lhhSpiGyroDetect(gyroDev_t *gyro)

gyro->initFn = asm330lhhSpiGyroInit;
gyro->readFn = asm330lhhGyroRead;
gyro->scale = GYRO_SCALE_2000DPS;
gyro->scale = 0.07f;

return true;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/drivers/accgyro/accgyro_spi_lsm6ds3_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ bool lsm6ds3SpiGyroDetect(gyroDev_t *gyro)

gyro->initFn = lsm6ds3SpiGyroInit;
gyro->readFn = lsm6ds3GyroRead;
gyro->scale = GYRO_SCALE_2000DPS;
gyro->scale = 0.07f;

return true;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/drivers/accgyro/accgyro_spi_lsm6dsl_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ bool lsm6dslSpiGyroDetect(gyroDev_t *gyro)

gyro->initFn = lsm6dslSpiGyroInit;
gyro->readFn = lsm6dslGyroRead;
gyro->scale = GYRO_SCALE_2000DPS;
gyro->scale = 0.07f;

return true;
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/drivers/accgyro/accgyro_spi_lsm6dso_init.c
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ bool lsm6dsoSpiGyroDetect(gyroDev_t *gyro)

gyro->initFn = lsm6dsoSpiGyroInit;
gyro->readFn = lsm6dsoGyroRead;
gyro->scale = GYRO_SCALE_2000DPS;
gyro->scale = 0.07f;

return true;
}
Expand Down

0 comments on commit 6bf2667

Please sign in to comment.