mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 01:05:27 +03:00
Merge pull request #4842 from mikeller/fix_gyro_icm20689_init
Fixed ICM20689 gyro init.
This commit is contained in:
commit
ffe43ed8ce
1 changed files with 1 additions and 1 deletions
|
@ -126,7 +126,7 @@ void icm20689GyroInit(gyroDev_t *gyro)
|
|||
// delay(100);
|
||||
spiBusWriteRegister(&gyro->bus, MPU_RA_PWR_MGMT_1, INV_CLK_PLL);
|
||||
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) {
|
||||
// use otherwise redundant LPF value to configure FCHOICE_B
|
||||
// see REGISTER 27 – GYROSCOPE CONFIGURATION in datasheet
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue