mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 01:35:41 +03:00
Add more drivers to Motolab
This commit is contained in:
parent
d61f7320cf
commit
f68add5d4d
2 changed files with 12 additions and 2 deletions
1
Makefile
1
Makefile
|
@ -652,6 +652,7 @@ MOTOLAB_SRC = \
|
||||||
drivers/accgyro_mpu.c \
|
drivers/accgyro_mpu.c \
|
||||||
drivers/display_ug2864hsweg01.c \
|
drivers/display_ug2864hsweg01.c \
|
||||||
drivers/accgyro_mpu6050.c \
|
drivers/accgyro_mpu6050.c \
|
||||||
|
drivers/accgyro_spi_mpu6000.c \
|
||||||
drivers/barometer_ms5611.c \
|
drivers/barometer_ms5611.c \
|
||||||
drivers/compass_hmc5883l.c \
|
drivers/compass_hmc5883l.c \
|
||||||
drivers/serial_usb_vcp.c \
|
drivers/serial_usb_vcp.c \
|
||||||
|
|
|
@ -41,15 +41,24 @@
|
||||||
//#define ENSURE_MPU_DATA_READY_IS_LOW
|
//#define ENSURE_MPU_DATA_READY_IS_LOW
|
||||||
|
|
||||||
#define GYRO
|
#define GYRO
|
||||||
#define USE_GYRO_MPU6050
|
#define ACC
|
||||||
|
|
||||||
|
#define USE_GYRO_MPU6050
|
||||||
#define GYRO_MPU6050_ALIGN CW180_DEG
|
#define GYRO_MPU6050_ALIGN CW180_DEG
|
||||||
|
|
||||||
#define ACC
|
|
||||||
#define USE_ACC_MPU6050
|
#define USE_ACC_MPU6050
|
||||||
|
|
||||||
#define ACC_MPU6050_ALIGN CW180_DEG
|
#define ACC_MPU6050_ALIGN CW180_DEG
|
||||||
|
|
||||||
|
#define USE_GYRO_SPI_MPU6000
|
||||||
|
#define GYRO_MPU6000_ALIGN CW180_DEG
|
||||||
|
#define USE_ACC_SPI_MPU6000
|
||||||
|
#define ACC_MPU6000_ALIGN CW180_DEG
|
||||||
|
|
||||||
|
#define MPU6000_CS_GPIO GPIOB
|
||||||
|
#define MPU6000_CS_PIN GPIO_Pin_12
|
||||||
|
#define MPU6000_SPI_INSTANCE SPI2
|
||||||
|
|
||||||
//#define BARO
|
//#define BARO
|
||||||
//#define USE_BARO_MS5611
|
//#define USE_BARO_MS5611
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue