1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-24 16:55:36 +03:00

Enabled Multigyro on NanoV7 F4

Updated unified target config

Remove EXT1 and MULTI_GYRO
This commit is contained in:
Asizon 2019-05-14 15:17:45 +02:00
parent a8e9dd94e8
commit 211da9d583
3 changed files with 14 additions and 4 deletions

View file

@ -41,15 +41,22 @@
#define USE_GYRO
#define USE_GYRO_SPI_MPU6500
#define GYRO_1_CS_PIN PD2
#define GYRO_1_SPI_INSTANCE SPI3
#define USE_GYRO_SPI_MPU6000
#define USE_ACC
#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_2_CS_PIN PC4
#define GYRO_2_SPI_INSTANCE SPI1
#define GYRO_2_EXTI_PIN NONE
#define GYRO_2_ALIGN CW0_DEG
// *************** OSD **************************
#define USE_SPI_DEVICE_2

View file

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

View file

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