mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 05:45:31 +03:00
Add support for ICM-20649 acc/gyro
This commit is contained in:
parent
36133164e2
commit
afec0258c7
10 changed files with 325 additions and 5 deletions
|
@ -45,6 +45,7 @@
|
|||
#include "drivers/accgyro/accgyro_mpu6050.h"
|
||||
#include "drivers/accgyro/accgyro_mpu6500.h"
|
||||
#include "drivers/accgyro/accgyro_spi_bmi160.h"
|
||||
#include "drivers/accgyro/accgyro_spi_icm20649.h"
|
||||
#include "drivers/accgyro/accgyro_spi_icm20689.h"
|
||||
#include "drivers/accgyro/accgyro_spi_mpu6000.h"
|
||||
#include "drivers/accgyro/accgyro_spi_mpu6500.h"
|
||||
|
@ -243,6 +244,17 @@ retry:
|
|||
}
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
; // fallthrough
|
||||
case ACC_ICM20649:
|
||||
#ifdef USE_ACC_SPI_ICM20649
|
||||
if (icm20649SpiAccDetect(dev)) {
|
||||
accHardware = ACC_ICM20649;
|
||||
#ifdef ACC_ICM20649_ALIGN
|
||||
dev->accAlign = ACC_ICM20649_ALIGN;
|
||||
#endif
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
; // fallthrough
|
||||
case ACC_ICM20689:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue