1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-15 04:15:44 +03:00

Enabled Multi Gyro on OmnibusF4 Nano V7 (#8267)

Enabled Multi Gyro on OmnibusF4 Nano V7
This commit is contained in:
Michael Keller 2019-05-18 19:03:01 +12:00 committed by mikeller
parent 5493ffceac
commit a0d1388d85
3 changed files with 14 additions and 4 deletions

View file

@ -41,16 +41,23 @@
#define USE_GYRO #define USE_GYRO
#define USE_GYRO_SPI_MPU6500 #define USE_GYRO_SPI_MPU6500
#define USE_GYRO_SPI_MPU6000
#define GYRO_1_CS_PIN PD2
#define GYRO_1_SPI_INSTANCE SPI3
#define USE_ACC #define USE_ACC
#define USE_ACC_SPI_MPU6500 #define USE_ACC_SPI_MPU6500
#define USE_ACC_SPI_MPU6000
#define GYRO_1_CS_PIN PD2
#define GYRO_1_SPI_INSTANCE SPI3
#define GYRO_1_EXTI_PIN NONE
#define GYRO_1_ALIGN CW0_DEG #define GYRO_1_ALIGN CW0_DEG
#define ACC_1_ALIGN CW0_DEG #define ACC_1_ALIGN CW0_DEG
#define GYRO_2_CS_PIN PC4
#define GYRO_2_SPI_INSTANCE SPI1
#define GYRO_2_EXTI_PIN NONE
#define GYRO_2_ALIGN CW0_DEG
// *************** OSD ************************** // *************** OSD **************************
#define USE_SPI_DEVICE_2 #define USE_SPI_DEVICE_2

View file

@ -5,4 +5,5 @@ TARGET_SRC = \
drivers/accgyro/accgyro_spi_mpu6000.c \ drivers/accgyro/accgyro_spi_mpu6000.c \
drivers/accgyro/accgyro_mpu6500.c \ drivers/accgyro/accgyro_mpu6500.c \
drivers/accgyro/accgyro_spi_mpu6500.c \ drivers/accgyro/accgyro_spi_mpu6500.c \
drivers/accgyro/accgyro_spi_icm20689.c \
drivers/max7456.c drivers/max7456.c

View file

@ -37,6 +37,7 @@ resource ADC_CURR 1 C01
resource FLASH_CS 1 A02 resource FLASH_CS 1 A02
resource OSD_CS 1 C15 resource OSD_CS 1 C15
resource GYRO_CS 1 D02 resource GYRO_CS 1 D02
resource GYRO_CS 2 C04
# timer # timer
timer A15 0 timer A15 0
@ -87,4 +88,5 @@ set flash_spi_bus = 1
set gyro_1_bustype = SPI set gyro_1_bustype = SPI
set gyro_1_spibus = 3 set gyro_1_spibus = 3
set gyro_1_sensor_align = CW0 set gyro_1_sensor_align = CW0
set gyro_2_spibus = 3 set gyro_2_spibus = 1
set gyro_2_sensor_align = CW0