mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 22:35:23 +03:00
Add support for Bosch BMI270 gyro/accelerometer sensor
This commit is contained in:
parent
c29b125a59
commit
447cbac988
27 changed files with 26435 additions and 11 deletions
|
@ -43,6 +43,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_bmi270.h"
|
||||
#include "drivers/accgyro/accgyro_spi_icm20649.h"
|
||||
#include "drivers/accgyro/accgyro_spi_icm20689.h"
|
||||
#include "drivers/accgyro/accgyro_spi_icm42605.h"
|
||||
|
@ -292,6 +293,15 @@ retry:
|
|||
FALLTHROUGH;
|
||||
#endif
|
||||
|
||||
#ifdef USE_ACCGYRO_BMI270
|
||||
case ACC_BMI270:
|
||||
if (bmi270SpiAccDetect(dev)) {
|
||||
accHardware = ACC_BMI270;
|
||||
break;
|
||||
}
|
||||
FALLTHROUGH;
|
||||
#endif
|
||||
|
||||
#ifdef USE_FAKE_ACC
|
||||
case ACC_FAKE:
|
||||
if (fakeAccDetect(dev)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue