From b8a1a0ac8f23648827240a991d5b479979bbb538 Mon Sep 17 00:00:00 2001 From: cvetaevvitaliy Date: Thu, 22 Aug 2024 16:32:12 +0300 Subject: [PATCH] Update DRONIUSF7 config.h --- configs/DRONIUSF7/config.h | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/configs/DRONIUSF7/config.h b/configs/DRONIUSF7/config.h index 39e65b3d..495d9c5b 100644 --- a/configs/DRONIUSF7/config.h +++ b/configs/DRONIUSF7/config.h @@ -26,6 +26,12 @@ #define BOARD_NAME DRONIUSF7 #define MANUFACTURER_ID FOSS +#define USE_ACC_SPI_MPU6000 +#define USE_GYRO_SPI_MPU6000 +#define USE_BARO_BMP280 +#define USE_FLASH_M25P16 +#define USE_MAX7456 + #define BEEPER_PIN PC13 #define MOTOR1_PIN PA9 #define MOTOR2_PIN PA8 @@ -79,12 +85,16 @@ #define ADC1_DMA_OPT 1 #define MAG_I2C_INSTANCE (I2CDEV_1) - +#define USE_BARO +#define BARO_I2C_INSTANCE (I2CDEV_1) +#define DEFAULT_BARO_I2C_ADDRESS 119 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON +#define ADC_INSTANCE ADC1 #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC #define DEFAULT_CURRENT_METER_SCALE 119 +#define DEFAULT_CURRENT_METER_SCALE 182 #define BEEPER_INVERTED //TODO #define OSD_DISPLAYPORT_DEVICE MAX7456 #define MAX7456_SPI_INSTANCE SPI2 @@ -93,3 +103,4 @@ #define GYRO_1_ALIGN CW0_DEG_FLIP #define GYRO_1_ALIGN_PITCH 1800 #define PINIO1_BOX 40 +//TODO set box_user_1_name = VTX POWER