mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Fixed ICM20689 gyro init.
This commit is contained in:
parent
be99725ee9
commit
393d3f35a6
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ void icm20689GyroInit(gyroDev_t *gyro)
|
||||||
// delay(100);
|
// delay(100);
|
||||||
spiBusWriteRegister(&gyro->bus, MPU_RA_PWR_MGMT_1, INV_CLK_PLL);
|
spiBusWriteRegister(&gyro->bus, MPU_RA_PWR_MGMT_1, INV_CLK_PLL);
|
||||||
delay(15);
|
delay(15);
|
||||||
uint8_t raGyroConfigData = gyro->gyroRateKHz = INV_FSR_2000DPS << 3;
|
uint8_t raGyroConfigData = INV_FSR_2000DPS << 3;
|
||||||
if (gyro->gyroRateKHz > GYRO_RATE_8_kHz) {
|
if (gyro->gyroRateKHz > GYRO_RATE_8_kHz) {
|
||||||
// use otherwise redundant LPF value to configure FCHOICE_B
|
// use otherwise redundant LPF value to configure FCHOICE_B
|
||||||
// see REGISTER 27 – GYROSCOPE CONFIGURATION in datasheet
|
// see REGISTER 27 – GYROSCOPE CONFIGURATION in datasheet
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue