From af97415da218e98ed22cd94d2e2cd554db5a7cbe Mon Sep 17 00:00:00 2001 From: Mark Haslinghuis Date: Mon, 10 Apr 2023 00:38:00 +0200 Subject: [PATCH] CONFIG: Fix TODO MAG & I2C (#12545) Fix mag --- src/config/AG3XF4/config.h | 1 - src/config/AG3XF7/config.h | 1 - src/config/AIRBOTF4/config.h | 1 - src/config/AIRBOTF4SD/config.h | 1 - src/config/ALIENFLIGHTF4/config.h | 3 +-- src/config/ALIENFLIGHTNGF7/config.h | 5 +++-- src/config/ALIENFLIGHTNGF7_DUAL/config.h | 2 +- src/config/ALIENWHOOPF4/config.h | 1 - src/config/ANYFCF7/config.h | 1 - src/config/ANYFCM7/config.h | 1 - src/config/AOCODAF405/config.h | 1 - src/config/AOCODAF405V2MPU6000/config.h | 1 - src/config/AOCODAF405V2MPU6500/config.h | 1 - src/config/AOCODAF722MINI/config.h | 1 - src/config/AOCODARCF7DUAL/config.h | 1 - src/config/AOCODARCH7DUAL/config.h | 1 - src/config/AXISFLYINGF7PRO/config.h | 1 - src/config/BETAFLIGHTF4/config.h | 1 - src/config/BETAFPVF405/config.h | 2 -- src/config/BETAFPVF411/config.h | 1 - src/config/BETAFPVH743/config.h | 1 - src/config/BLUEJAYF4/config.h | 1 - src/config/CLRACINGF7/config.h | 1 - src/config/COLIBRI/config.h | 1 - src/config/CYCLONEF405_PRO/config.h | 1 - src/config/CYCLONEF722_PRO/config.h | 1 - src/config/DALRCF405/config.h | 1 - src/config/DALRCF722DUAL/config.h | 1 - src/config/DARWINF722HD/config.h | 2 -- src/config/DFR_F722_DUAL_HD/config.h | 1 - src/config/DRONIUSF7/config.h | 2 -- src/config/DYSF4PRO/config.h | 1 - src/config/EACHINEF722/config.h | 1 - src/config/EACHINEF722_AIO/config.h | 1 - src/config/ELINF405/config.h | 1 - src/config/ELINF722/config.h | 1 - src/config/ELLE0/config.h | 1 - src/config/EXF722DUAL/config.h | 1 - src/config/EXUAVF4PRO/config.h | 1 - src/config/F4BY/config.h | 1 - src/config/FF_RACEPIT/config.h | 2 +- src/config/FF_RACEPIT_MINI/config.h | 2 +- src/config/FLYCOLORF7/config.h | 1 - src/config/FLYCOLORF7_AIO/config.h | 1 - src/config/FLYWOOF405/config.h | 1 - src/config/FLYWOOF405NANO/config.h | 1 - src/config/FLYWOOF405PRO/config.h | 1 - src/config/FLYWOOF411/config.h | 1 - src/config/FLYWOOF411EVO_HD/config.h | 1 - src/config/FLYWOOF411HEX/config.h | 1 - src/config/FLYWOOF411V2/config.h | 1 - src/config/FLYWOOF411_5IN1_AIO/config.h | 1 - src/config/FLYWOOF745/config.h | 1 - src/config/FLYWOOF745NANO/config.h | 1 - src/config/FLYWOOF7DUAL/config.h | 1 - src/config/FOXEERF722DUAL/config.h | 1 - src/config/FOXEERF722V2/config.h | 1 - src/config/FOXEERF722V3/config.h | 1 - src/config/FOXEERF722V4/config.h | 1 - src/config/FOXEERF745V2_AIO/config.h | 1 - src/config/FOXEERF745V3_AIO/config.h | 1 - src/config/FOXEERF745_AIO/config.h | 1 - src/config/FOXEERH743/config.h | 1 - src/config/FPVM_BETAFLIGHTF7/config.h | 1 - src/config/FURYF4/config.h | 1 - src/config/FURYF4OSD/config.h | 3 +-- src/config/GEELANGF411/config.h | 1 - src/config/GEMEF411/config.h | 1 - src/config/GEPRCF411/config.h | 2 -- src/config/GEPRCF411_AIO/config.h | 1 - src/config/GEPRCF722/config.h | 1 - src/config/GEPRCF722BT/config.h | 1 - src/config/GEPRCF722_BT_HD/config.h | 1 - src/config/GEPRC_F722_AIO/config.h | 1 - src/config/GRAVITYF7/config.h | 1 - src/config/HAKRCF411D/config.h | 1 - src/config/HAKRCF722D/config.h | 1 - src/config/HAKRCF722MINI/config.h | 2 -- src/config/HAKRCF722V2/config.h | 1 - src/config/HAKRCF7230D/config.h | 1 - src/config/HGLRCF405/config.h | 11 +++++------ src/config/HGLRCF405AS/config.h | 1 - src/config/HGLRCF722/config.h | 1 - src/config/HGLRCF722E/config.h | 1 - src/config/HGLRCF745/config.h | 13 ++++++------- src/config/HOBBYWING_XROTORF4G3/config.h | 1 - src/config/HOBBYWING_XROTORF7CONV/config.h | 1 - src/config/IFLIGHT_BLITZ_F722/config.h | 1 - src/config/IFLIGHT_BLITZ_F722_X1/config.h | 1 - src/config/IFLIGHT_BLITZ_F7_AIO/config.h | 1 - src/config/IFLIGHT_BLITZ_F7_PRO/config.h | 1 - src/config/IFLIGHT_F405_TWING/config.h | 1 - src/config/IFLIGHT_F411_AIO32/config.h | 1 - src/config/IFLIGHT_F722_TWING/config.h | 1 - src/config/IFLIGHT_F745_AIO/config.h | 1 - src/config/IFLIGHT_F745_AIO_V2/config.h | 1 - src/config/IFLIGHT_H743_AIO_V2/config.h | 1 - src/config/IFLIGHT_H7_TWING/config.h | 1 - src/config/IFLIGHT_SUCCEX_E_F7/config.h | 1 - src/config/JBF7/config.h | 1 - src/config/JBF7_DJI/config.h | 1 - src/config/JBF7_V2/config.h | 1 - src/config/JHEF405/config.h | 1 - src/config/JHEF405PRO/config.h | 1 - src/config/JHEF411/config.h | 1 - src/config/JHEF745/config.h | 1 - src/config/JHEH743_AIO/config.h | 2 -- src/config/KAKUTEF4V2/config.h | 1 - src/config/KAKUTEF7/config.h | 2 -- src/config/KAKUTEF7HDV/config.h | 2 -- src/config/KAKUTEF7MINIV3/config.h | 2 -- src/config/KAKUTEF7V2/config.h | 1 - src/config/KAKUTEH7/config.h | 1 - src/config/KAKUTEH7MINI/config.h | 1 - src/config/KAKUTEH7V2/config.h | 1 - src/config/KD722/config.h | 1 - src/config/KROOZX/config.h | 1 - src/config/LDARC_F411/config.h | 2 -- src/config/LUXF4OSD/config.h | 1 - src/config/MAMBAF405US/config.h | 1 - src/config/MAMBAF405US_I2C/config.h | 1 - src/config/MAMBAF405_2022A/config.h | 1 - src/config/MAMBAF405_2022B/config.h | 1 - src/config/MAMBAF722/config.h | 1 - src/config/MAMBAF722_2022A/config.h | 1 - src/config/MAMBAF722_2022B/config.h | 1 - src/config/MAMBAF722_I2C/config.h | 1 - src/config/MAMBAF722_X8/config.h | 1 - src/config/MAMBAH743/config.h | 1 - src/config/MATEKF405AIO/config.h | 2 -- src/config/MATEKF405CTR/config.h | 2 -- src/config/MATEKF405MINI/config.h | 2 -- src/config/MATEKF405SE/config.h | 2 -- src/config/MATEKF405STD/config.h | 2 -- src/config/MATEKF405STD_CLONE/config.h | 2 -- src/config/MATEKF405TE/config.h | 2 -- src/config/MATEKF405TEMINI/config.h | 2 -- src/config/MATEKF411/config.h | 2 -- src/config/MATEKF411SE/config.h | 2 -- src/config/MATEKF722/config.h | 2 -- src/config/MATEKF722HD/config.h | 1 - src/config/MATEKF722MINI/config.h | 2 -- src/config/MATEKF722SE/config.h | 2 -- src/config/MERAKRCF405/config.h | 1 - src/config/MERAKRCF722/config.h | 1 - src/config/NBD_GALAXYAIO255/config.h | 1 - src/config/NBD_INFINITYAIOV2PRO/config.h | 1 - src/config/NBD_INFINITYF4/config.h | 1 - src/config/NEUTRONRCF407/config.h | 1 - src/config/NEUTRONRCF411AIO/config.h | 1 - src/config/NEUTRONRCF722AIO/config.h | 1 - src/config/NEUTRONRCF7AIO/config.h | 3 ++- src/config/NEUTRONRCH743AIO/config.h | 1 - src/config/NEUTRONRCH7BT/config.h | 1 - src/config/NUCLEOF722/config.h | 1 - src/config/OMNIBUSF4/config.h | 1 - src/config/OMNIBUSF4FW/config.h | 1 - src/config/OMNIBUSF4SD/config.h | 1 - src/config/OMNIBUSF4V6/config.h | 1 - src/config/OMNIBUSF7/config.h | 1 - src/config/OMNIBUSF7V2/config.h | 1 - src/config/OMNINXT4/config.h | 1 - src/config/OMNINXT7/config.h | 1 - src/config/PODIUMF4/config.h | 1 - src/config/PYRODRONEF4/config.h | 1 - src/config/REVO/config.h | 1 - src/config/RUSHCORE7/config.h | 1 - src/config/RUSRACE_F4/config.h | 1 - src/config/RUSRACE_F7/config.h | 1 - src/config/SIRMIXALOT/config.h | 1 - src/config/SKYSTARSF405/config.h | 1 - src/config/SKYSTARSF411/config.h | 1 - src/config/SKYSTARSF7HD/config.h | 1 - src/config/SKYSTARSF7HDPRO/config.h | 1 - src/config/SKYSTARSH7HD/config.h | 1 - src/config/SKYZONEF405/config.h | 1 - src/config/SOULF4/config.h | 1 - src/config/SPARKY2/config.h | 1 - src/config/SPEDIXF4/config.h | 1 - src/config/SPEEDYBEEF4/config.h | 1 - src/config/SPEEDYBEEF405V3/config.h | 1 - src/config/SPEEDYBEEF7/config.h | 1 - src/config/SPEEDYBEEF7MINI/config.h | 1 - src/config/SPEEDYBEEF7MINIV2/config.h | 1 - src/config/SPEEDYBEEF7V2/config.h | 1 - src/config/SPEEDYBEEF7V3/config.h | 1 - src/config/SPRACINGF4EVO/config.h | 1 - src/config/SPRACINGF4NEO/config.h | 1 - src/config/SPRACINGF7DUAL/config.h | 1 - src/config/STM32F411DISCOVERY/config.h | 1 - src/config/TALONF4V2/config.h | 1 - src/config/TALONF7FUSION/config.h | 2 -- src/config/TALONF7V2/config.h | 1 - src/config/TCMMF7/config.h | 2 -- src/config/TMH7/config.h | 1 - src/config/TMOTORF4/config.h | 1 - src/config/TMOTORF7/config.h | 1 - src/config/TMOTORF722SE/config.h | 1 - src/config/TMOTORF7V2/config.h | 1 - src/config/TMOTORVELOXF7V2/config.h | 1 - src/config/TMVELOXF411/config.h | 1 - src/config/TMVELOXF7/config.h | 1 - src/config/TRANSTECF405HD/config.h | 1 - src/config/TRANSTECF411/config.h | 1 - src/config/TRANSTECF411HD/config.h | 1 - src/config/TRANSTECF7/config.h | 1 - src/config/TRANSTECF7HD/config.h | 1 - src/config/UAVPNG030MINI/config.h | 1 - src/config/VGOODF722DUAL/config.h | 1 - src/config/VGOODRCF4/config.h | 1 - src/config/VIVAF4AIO/config.h | 1 - src/config/WIZZF7HD/config.h | 1 - src/config/XRACERF4/config.h | 1 - src/config/YUPIF7/config.h | 1 - src/config/ZEEZF7/config.h | 1 - src/config/ZEEZF7V2/config.h | 1 - src/config/ZEEZF7V3/config.h | 1 - src/config/ZEUSF722_AIO/config.h | 1 - src/main/sensors/compass.c | 10 +++++++--- 219 files changed, 28 insertions(+), 260 deletions(-) diff --git a/src/config/AG3XF4/config.h b/src/config/AG3XF4/config.h index b20d6223e9..73b9af6032 100644 --- a/src/config/AG3XF4/config.h +++ b/src/config/AG3XF4/config.h @@ -99,7 +99,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_SPI_INSTANCE SPI2 diff --git a/src/config/AG3XF7/config.h b/src/config/AG3XF7/config.h index a7a4a08881..2508d96a1b 100644 --- a/src/config/AG3XF7/config.h +++ b/src/config/AG3XF7/config.h @@ -98,7 +98,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_SPI_INSTANCE SPI2 diff --git a/src/config/AIRBOTF4/config.h b/src/config/AIRBOTF4/config.h index 947560c543..c4e3992bcc 100644 --- a/src/config/AIRBOTF4/config.h +++ b/src/config/AIRBOTF4/config.h @@ -101,7 +101,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_SPI_INSTANCE SPI1 diff --git a/src/config/AIRBOTF4SD/config.h b/src/config/AIRBOTF4SD/config.h index 871b272210..289e2670bb 100644 --- a/src/config/AIRBOTF4SD/config.h +++ b/src/config/AIRBOTF4SD/config.h @@ -104,7 +104,6 @@ #define SPI3_TX_DMA_OPT 0 #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_SPI_INSTANCE SPI1 diff --git a/src/config/ALIENFLIGHTF4/config.h b/src/config/ALIENFLIGHTF4/config.h index 65bd360500..c22c575bc8 100644 --- a/src/config/ALIENFLIGHTF4/config.h +++ b/src/config/ALIENFLIGHTF4/config.h @@ -107,7 +107,6 @@ #define MAG_ALIGN CW180_DEG_FLIP #define MAG_ALIGN_PITCH 1800 #define MAG_ALIGN_YAW 1800 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) @@ -125,4 +124,4 @@ #define GYRO_1_SPI_INSTANCE SPI1 #define GYRO_1_ALIGN CW270_DEG #define GYRO_1_ALIGN_YAW 2700 -//TODO #define I2C1_PULLUP ON +#define USE_I2C1_PULLUP ON diff --git a/src/config/ALIENFLIGHTNGF7/config.h b/src/config/ALIENFLIGHTNGF7/config.h index c059e574f0..c1d9026c2e 100644 --- a/src/config/ALIENFLIGHTNGF7/config.h +++ b/src/config/ALIENFLIGHTNGF7/config.h @@ -108,7 +108,8 @@ #define MAG_ALIGN CW180_DEG_FLIP #define MAG_ALIGN_PITCH 1800 #define MAG_ALIGN_YAW 1800 -//TODO #define MAG_SPI_DEVICE 3 +#define USE_SPI_MAG +#define MAG_SPI_DEVICE SPI3 #define USE_BARO #define BARO_SPI_INSTANCE SPI3 //TODO #define SERIALRX_PROVIDER SPEK2048 @@ -126,4 +127,4 @@ #define GYRO_1_SPI_INSTANCE SPI1 #define GYRO_1_ALIGN CW270_DEG #define GYRO_1_ALIGN_YAW 2700 -//TODO #define I2C1_PULLUP ON +#define USE_I2C1_PULLUP ON diff --git a/src/config/ALIENFLIGHTNGF7_DUAL/config.h b/src/config/ALIENFLIGHTNGF7_DUAL/config.h index a94d3cf69f..5a577c57af 100644 --- a/src/config/ALIENFLIGHTNGF7_DUAL/config.h +++ b/src/config/ALIENFLIGHTNGF7_DUAL/config.h @@ -115,4 +115,4 @@ #define GYRO_2_SPI_INSTANCE SPI3 #define GYRO_2_ALIGN CW270_DEG #define GYRO_2_ALIGN_YAW 2700 -//TODO #define I2C1_PULLUP ON +#define USE_I2C1_PULLUP ON diff --git a/src/config/ALIENWHOOPF4/config.h b/src/config/ALIENWHOOPF4/config.h index 207419df33..54a56530a3 100644 --- a/src/config/ALIENWHOOPF4/config.h +++ b/src/config/ALIENWHOOPF4/config.h @@ -74,7 +74,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE SLAVE #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define BEEPER_INVERTED #define SYSTEM_HSE_MHZ 8 diff --git a/src/config/ANYFCF7/config.h b/src/config/ANYFCF7/config.h index b21b970e32..70ccf2e862 100644 --- a/src/config/ANYFCF7/config.h +++ b/src/config/ANYFCF7/config.h @@ -115,7 +115,6 @@ #define SPI4_TX_DMA_OPT 0 #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) diff --git a/src/config/ANYFCM7/config.h b/src/config/ANYFCM7/config.h index 7f63e84646..aa1539e38c 100644 --- a/src/config/ANYFCM7/config.h +++ b/src/config/ANYFCM7/config.h @@ -100,7 +100,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE NONE #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/src/config/AOCODAF405/config.h b/src/config/AOCODAF405/config.h index 055380170b..2f15f5bffe 100644 --- a/src/config/AOCODAF405/config.h +++ b/src/config/AOCODAF405/config.h @@ -92,7 +92,6 @@ #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/AOCODAF405V2MPU6000/config.h b/src/config/AOCODAF405V2MPU6000/config.h index 6782d8ffbe..07bbfa17af 100644 --- a/src/config/AOCODAF405V2MPU6000/config.h +++ b/src/config/AOCODAF405V2MPU6000/config.h @@ -94,7 +94,6 @@ #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/AOCODAF405V2MPU6500/config.h b/src/config/AOCODAF405V2MPU6500/config.h index 70ae9fc612..a5a7be3f86 100644 --- a/src/config/AOCODAF405V2MPU6500/config.h +++ b/src/config/AOCODAF405V2MPU6500/config.h @@ -94,7 +94,6 @@ #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/AOCODAF722MINI/config.h b/src/config/AOCODAF722MINI/config.h index a746d74691..57b71b10fd 100644 --- a/src/config/AOCODAF722MINI/config.h +++ b/src/config/AOCODAF722MINI/config.h @@ -92,7 +92,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/AOCODARCF7DUAL/config.h b/src/config/AOCODARCF7DUAL/config.h index 952a9d763c..63165f4dd6 100644 --- a/src/config/AOCODARCF7DUAL/config.h +++ b/src/config/AOCODARCF7DUAL/config.h @@ -97,7 +97,6 @@ #define ADC1_DMA_OPT 0 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_2 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/AOCODARCH7DUAL/config.h b/src/config/AOCODARCH7DUAL/config.h index 37ac5c92ec..42f3a44681 100644 --- a/src/config/AOCODARCH7DUAL/config.h +++ b/src/config/AOCODARCH7DUAL/config.h @@ -120,7 +120,6 @@ #define TIMUP5_DMA_OPT 0 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) diff --git a/src/config/AXISFLYINGF7PRO/config.h b/src/config/AXISFLYINGF7PRO/config.h index c4837bbbd1..9234dce303 100644 --- a/src/config/AXISFLYINGF7PRO/config.h +++ b/src/config/AXISFLYINGF7PRO/config.h @@ -97,7 +97,6 @@ #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/BETAFLIGHTF4/config.h b/src/config/BETAFLIGHTF4/config.h index cb3d1b9d76..82454ace65 100644 --- a/src/config/BETAFLIGHTF4/config.h +++ b/src/config/BETAFLIGHTF4/config.h @@ -90,7 +90,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) diff --git a/src/config/BETAFPVF405/config.h b/src/config/BETAFPVF405/config.h index c261a9577e..f4212a75f3 100644 --- a/src/config/BETAFPVF405/config.h +++ b/src/config/BETAFPVF405/config.h @@ -97,9 +97,7 @@ #define SPI2_TX_DMA_OPT 0 #define ADC2_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) -//TODO #define MAG_HARDWARE NONE #define USE_BARO #define BARO_SPI_INSTANCE SPI3 #define DEFAULT_BARO_DEVICE BARO_NONE diff --git a/src/config/BETAFPVF411/config.h b/src/config/BETAFPVF411/config.h index a271308ba7..b21aa35f1b 100644 --- a/src/config/BETAFPVF411/config.h +++ b/src/config/BETAFPVF411/config.h @@ -95,7 +95,6 @@ //TODO #define MOTOR_PWM_PROTOCOL DSHOT600 #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC -//TODO #define MAG_HARDWARE NONE #define BEEPER_INVERTED #define SYSTEM_HSE_MHZ 8 #define MAX7456_SPI_INSTANCE SPI2 diff --git a/src/config/BETAFPVH743/config.h b/src/config/BETAFPVH743/config.h index c0d5709904..dacf441157 100644 --- a/src/config/BETAFPVH743/config.h +++ b/src/config/BETAFPVH743/config.h @@ -118,7 +118,6 @@ #define TIMUP8_DMA_OPT 0 #define TIMUP0_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/BLUEJAYF4/config.h b/src/config/BLUEJAYF4/config.h index cd9201f911..26571a9cbc 100644 --- a/src/config/BLUEJAYF4/config.h +++ b/src/config/BLUEJAYF4/config.h @@ -85,7 +85,6 @@ #define SPI3_TX_DMA_OPT 0 #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/CLRACINGF7/config.h b/src/config/CLRACINGF7/config.h index 325c3301da..a937980a97 100644 --- a/src/config/CLRACINGF7/config.h +++ b/src/config/CLRACINGF7/config.h @@ -106,7 +106,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/COLIBRI/config.h b/src/config/COLIBRI/config.h index e4baec76e8..35a80ad65a 100644 --- a/src/config/COLIBRI/config.h +++ b/src/config/COLIBRI/config.h @@ -100,7 +100,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_3) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_3) diff --git a/src/config/CYCLONEF405_PRO/config.h b/src/config/CYCLONEF405_PRO/config.h index ff62f9e54a..6b96ca0b65 100644 --- a/src/config/CYCLONEF405_PRO/config.h +++ b/src/config/CYCLONEF405_PRO/config.h @@ -87,7 +87,6 @@ #define ADC3_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/CYCLONEF722_PRO/config.h b/src/config/CYCLONEF722_PRO/config.h index 9779a0bb86..1837ee6004 100644 --- a/src/config/CYCLONEF722_PRO/config.h +++ b/src/config/CYCLONEF722_PRO/config.h @@ -96,7 +96,6 @@ #define ADC3_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/DALRCF405/config.h b/src/config/DALRCF405/config.h index fe7fe097d4..5cd7583b6d 100644 --- a/src/config/DALRCF405/config.h +++ b/src/config/DALRCF405/config.h @@ -96,7 +96,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/src/config/DALRCF722DUAL/config.h b/src/config/DALRCF722DUAL/config.h index cfc2857a1f..84b56d01be 100644 --- a/src/config/DALRCF722DUAL/config.h +++ b/src/config/DALRCF722DUAL/config.h @@ -94,7 +94,6 @@ #define ADC3_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/DARWINF722HD/config.h b/src/config/DARWINF722HD/config.h index 86c516f755..2218d445e5 100644 --- a/src/config/DARWINF722HD/config.h +++ b/src/config/DARWINF722HD/config.h @@ -105,9 +105,7 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) -//TODO #define MAG_HARDWARE NONE #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/DFR_F722_DUAL_HD/config.h b/src/config/DFR_F722_DUAL_HD/config.h index f65bc59411..056fd65829 100644 --- a/src/config/DFR_F722_DUAL_HD/config.h +++ b/src/config/DFR_F722_DUAL_HD/config.h @@ -93,7 +93,6 @@ #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_ADC diff --git a/src/config/DRONIUSF7/config.h b/src/config/DRONIUSF7/config.h index 42d9fe258f..c24096f16a 100644 --- a/src/config/DRONIUSF7/config.h +++ b/src/config/DRONIUSF7/config.h @@ -78,9 +78,7 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) -//TODO #define MAG_HARDWARE NONE #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BARO_I2C_ADDRESS 119 diff --git a/src/config/DYSF4PRO/config.h b/src/config/DYSF4PRO/config.h index f2a41df308..19f1a6d151 100644 --- a/src/config/DYSF4PRO/config.h +++ b/src/config/DYSF4PRO/config.h @@ -95,7 +95,6 @@ #define ADC2_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) diff --git a/src/config/EACHINEF722/config.h b/src/config/EACHINEF722/config.h index 629ffbe5f9..3cc067f1e6 100644 --- a/src/config/EACHINEF722/config.h +++ b/src/config/EACHINEF722/config.h @@ -102,7 +102,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_SPI_INSTANCE SPI1 diff --git a/src/config/EACHINEF722_AIO/config.h b/src/config/EACHINEF722_AIO/config.h index 1151bf49e2..b88809e140 100644 --- a/src/config/EACHINEF722_AIO/config.h +++ b/src/config/EACHINEF722_AIO/config.h @@ -100,7 +100,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_SPI_INSTANCE SPI1 diff --git a/src/config/ELINF405/config.h b/src/config/ELINF405/config.h index d368277c54..2532645916 100644 --- a/src/config/ELINF405/config.h +++ b/src/config/ELINF405/config.h @@ -89,7 +89,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_HARDWARE NONE #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/ELINF722/config.h b/src/config/ELINF722/config.h index 59e03b1902..2f2ce34b97 100644 --- a/src/config/ELINF722/config.h +++ b/src/config/ELINF722/config.h @@ -86,7 +86,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_HARDWARE NONE #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/ELLE0/config.h b/src/config/ELLE0/config.h index 5c683cd088..9a0aec3b53 100644 --- a/src/config/ELLE0/config.h +++ b/src/config/ELLE0/config.h @@ -71,7 +71,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE SLAVE #define SYSTEM_HSE_MHZ 25 #define USE_SPI_GYRO #define GYRO_1_SPI_INSTANCE SPI2 diff --git a/src/config/EXF722DUAL/config.h b/src/config/EXF722DUAL/config.h index 26114d3f38..1e3c35dd61 100644 --- a/src/config/EXF722DUAL/config.h +++ b/src/config/EXF722DUAL/config.h @@ -101,7 +101,6 @@ #define ADC3_DMA_OPT 0 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) diff --git a/src/config/EXUAVF4PRO/config.h b/src/config/EXUAVF4PRO/config.h index f5d1b0e7c2..f35b708217 100644 --- a/src/config/EXUAVF4PRO/config.h +++ b/src/config/EXUAVF4PRO/config.h @@ -98,7 +98,6 @@ #define ADC2_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) diff --git a/src/config/F4BY/config.h b/src/config/F4BY/config.h index ef6cef67ca..b644eb207a 100644 --- a/src/config/F4BY/config.h +++ b/src/config/F4BY/config.h @@ -108,7 +108,6 @@ #define SPI2_TX_DMA_OPT 0 #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) diff --git a/src/config/FF_RACEPIT/config.h b/src/config/FF_RACEPIT/config.h index 4ad0ffa161..b094b14551 100644 --- a/src/config/FF_RACEPIT/config.h +++ b/src/config/FF_RACEPIT/config.h @@ -42,7 +42,7 @@ #define I2C3_SCL_PIN PA8 #define I2C3_SDA_PIN PC9 -//TODO #define I2C3_PULLUP ON +#define USE_I2C3_PULLUP ON #define SPI1_SCK_PIN PA5 #define SPI1_SDI_PIN PA6 diff --git a/src/config/FF_RACEPIT_MINI/config.h b/src/config/FF_RACEPIT_MINI/config.h index f92a3b2f11..5970cddfdf 100644 --- a/src/config/FF_RACEPIT_MINI/config.h +++ b/src/config/FF_RACEPIT_MINI/config.h @@ -41,7 +41,7 @@ #define I2C3_SCL_PIN PA8 #define I2C3_SDA_PIN PC9 -//TODO #define I2C3_PULLUP ON +#define USE_I2C3_PULLUP ON #define SPI1_SCK_PIN PA5 #define SPI1_SDI_PIN PA6 diff --git a/src/config/FLYCOLORF7/config.h b/src/config/FLYCOLORF7/config.h index 5f5542aac3..08f5eda75f 100644 --- a/src/config/FLYCOLORF7/config.h +++ b/src/config/FLYCOLORF7/config.h @@ -98,7 +98,6 @@ #define ADC3_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/FLYCOLORF7_AIO/config.h b/src/config/FLYCOLORF7_AIO/config.h index 4a95e250d6..59a9d4281f 100644 --- a/src/config/FLYCOLORF7_AIO/config.h +++ b/src/config/FLYCOLORF7_AIO/config.h @@ -90,7 +90,6 @@ #define ADC3_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/FLYWOOF405/config.h b/src/config/FLYWOOF405/config.h index 9e57443d5a..1a99870b1d 100644 --- a/src/config/FLYWOOF405/config.h +++ b/src/config/FLYWOOF405/config.h @@ -93,7 +93,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/FLYWOOF405NANO/config.h b/src/config/FLYWOOF405NANO/config.h index e53f4ac1ae..0fc2ca152d 100644 --- a/src/config/FLYWOOF405NANO/config.h +++ b/src/config/FLYWOOF405NANO/config.h @@ -96,7 +96,6 @@ #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/FLYWOOF405PRO/config.h b/src/config/FLYWOOF405PRO/config.h index 61ba0cb2a0..8d3f7b464c 100644 --- a/src/config/FLYWOOF405PRO/config.h +++ b/src/config/FLYWOOF405PRO/config.h @@ -94,7 +94,6 @@ #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/FLYWOOF411/config.h b/src/config/FLYWOOF411/config.h index 12dcda4fc7..73b9084e0c 100644 --- a/src/config/FLYWOOF411/config.h +++ b/src/config/FLYWOOF411/config.h @@ -86,7 +86,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/FLYWOOF411EVO_HD/config.h b/src/config/FLYWOOF411EVO_HD/config.h index b9aeacbbf4..a3cd7676c3 100644 --- a/src/config/FLYWOOF411EVO_HD/config.h +++ b/src/config/FLYWOOF411EVO_HD/config.h @@ -80,7 +80,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/FLYWOOF411HEX/config.h b/src/config/FLYWOOF411HEX/config.h index fb3908564d..90f76196ec 100644 --- a/src/config/FLYWOOF411HEX/config.h +++ b/src/config/FLYWOOF411HEX/config.h @@ -80,7 +80,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/FLYWOOF411V2/config.h b/src/config/FLYWOOF411V2/config.h index 638fd5a238..66b4e630fd 100644 --- a/src/config/FLYWOOF411V2/config.h +++ b/src/config/FLYWOOF411V2/config.h @@ -83,7 +83,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/FLYWOOF411_5IN1_AIO/config.h b/src/config/FLYWOOF411_5IN1_AIO/config.h index 72a61c484c..e6d53f23d3 100644 --- a/src/config/FLYWOOF411_5IN1_AIO/config.h +++ b/src/config/FLYWOOF411_5IN1_AIO/config.h @@ -82,7 +82,6 @@ #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/FLYWOOF745/config.h b/src/config/FLYWOOF745/config.h index 0b87c3e904..a5ace73fa8 100644 --- a/src/config/FLYWOOF745/config.h +++ b/src/config/FLYWOOF745/config.h @@ -100,7 +100,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/FLYWOOF745NANO/config.h b/src/config/FLYWOOF745NANO/config.h index 33930169c0..142ae0c3e3 100644 --- a/src/config/FLYWOOF745NANO/config.h +++ b/src/config/FLYWOOF745NANO/config.h @@ -101,7 +101,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/FLYWOOF7DUAL/config.h b/src/config/FLYWOOF7DUAL/config.h index 6f42333990..e34d2b6777 100644 --- a/src/config/FLYWOOF7DUAL/config.h +++ b/src/config/FLYWOOF7DUAL/config.h @@ -107,7 +107,6 @@ #define ADC3_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/FOXEERF722DUAL/config.h b/src/config/FOXEERF722DUAL/config.h index a16d74ab82..afb8b1de76 100644 --- a/src/config/FOXEERF722DUAL/config.h +++ b/src/config/FOXEERF722DUAL/config.h @@ -93,7 +93,6 @@ #define ADC3_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/FOXEERF722V2/config.h b/src/config/FOXEERF722V2/config.h index b6803edc16..68e2b17f96 100644 --- a/src/config/FOXEERF722V2/config.h +++ b/src/config/FOXEERF722V2/config.h @@ -90,7 +90,6 @@ #define ADC3_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/FOXEERF722V3/config.h b/src/config/FOXEERF722V3/config.h index dd275494c8..713fafd902 100644 --- a/src/config/FOXEERF722V3/config.h +++ b/src/config/FOXEERF722V3/config.h @@ -91,7 +91,6 @@ #define ADC3_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/FOXEERF722V4/config.h b/src/config/FOXEERF722V4/config.h index 713550b694..6a1a232158 100644 --- a/src/config/FOXEERF722V4/config.h +++ b/src/config/FOXEERF722V4/config.h @@ -94,7 +94,6 @@ #define ADC3_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_1) #define USE_ADC diff --git a/src/config/FOXEERF745V2_AIO/config.h b/src/config/FOXEERF745V2_AIO/config.h index 846542a66e..46e973a9eb 100644 --- a/src/config/FOXEERF745V2_AIO/config.h +++ b/src/config/FOXEERF745V2_AIO/config.h @@ -88,7 +88,6 @@ #define MAG_ALIGN CW180_DEG #define MAG_ALIGN_YAW 1800 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/FOXEERF745V3_AIO/config.h b/src/config/FOXEERF745V3_AIO/config.h index 694d232d92..dfbf0faf38 100644 --- a/src/config/FOXEERF745V3_AIO/config.h +++ b/src/config/FOXEERF745V3_AIO/config.h @@ -89,7 +89,6 @@ #define MAG_ALIGN CW180_DEG #define MAG_ALIGN_YAW 1800 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/FOXEERF745_AIO/config.h b/src/config/FOXEERF745_AIO/config.h index 4529b2b8bf..f4a731effa 100644 --- a/src/config/FOXEERF745_AIO/config.h +++ b/src/config/FOXEERF745_AIO/config.h @@ -89,7 +89,6 @@ #define MAG_ALIGN CW180_DEG #define MAG_ALIGN_YAW 1800 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/FOXEERH743/config.h b/src/config/FOXEERH743/config.h index d48581532a..c9a1702700 100644 --- a/src/config/FOXEERH743/config.h +++ b/src/config/FOXEERH743/config.h @@ -110,7 +110,6 @@ #define MAG_ALIGN CW180_DEG #define MAG_ALIGN_YAW 1800 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/FPVM_BETAFLIGHTF7/config.h b/src/config/FPVM_BETAFLIGHTF7/config.h index b7c6a8dd07..63c681a5a4 100644 --- a/src/config/FPVM_BETAFLIGHTF7/config.h +++ b/src/config/FPVM_BETAFLIGHTF7/config.h @@ -96,7 +96,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_SPI_INSTANCE SPI1 diff --git a/src/config/FURYF4/config.h b/src/config/FURYF4/config.h index ed4a6c24cb..4a40103312 100644 --- a/src/config/FURYF4/config.h +++ b/src/config/FURYF4/config.h @@ -89,7 +89,6 @@ #define SPI2_TX_DMA_OPT 0 #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/FURYF4OSD/config.h b/src/config/FURYF4OSD/config.h index f568dd5cb2..f30c376a33 100644 --- a/src/config/FURYF4OSD/config.h +++ b/src/config/FURYF4OSD/config.h @@ -97,8 +97,7 @@ #define BEEPER_INVERTED #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) -//TODO #define MAG_BUSTYPE I2C -//TODO #define MAG_I2C_ADDRESS 1 +#define MAG_I2C_ADDRESS 1 #define SYSTEM_HSE_MHZ 8 #define MAX7456_SPI_INSTANCE SPI2 #define DASHBOARD_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/GEELANGF411/config.h b/src/config/GEELANGF411/config.h index 0897d37371..b25747dece 100644 --- a/src/config/GEELANGF411/config.h +++ b/src/config/GEELANGF411/config.h @@ -77,7 +77,6 @@ #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/GEMEF411/config.h b/src/config/GEMEF411/config.h index d26ade2378..b5d47923d0 100644 --- a/src/config/GEMEF411/config.h +++ b/src/config/GEMEF411/config.h @@ -85,7 +85,6 @@ #define ADC1_DMA_OPT 0 #define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_ON -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/GEPRCF411/config.h b/src/config/GEPRCF411/config.h index c2d7ecf7dd..ad70e538fd 100644 --- a/src/config/GEPRCF411/config.h +++ b/src/config/GEPRCF411/config.h @@ -84,9 +84,7 @@ #define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO #define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_OFF //TODO #define MOTOR_PWM_PROTOCOL DSHOT600 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) -//TODO #define MAG_HARDWARE NONE #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BARO_DEVICE BARO_NONE diff --git a/src/config/GEPRCF411_AIO/config.h b/src/config/GEPRCF411_AIO/config.h index ba6c1958ba..f273c285f9 100644 --- a/src/config/GEPRCF411_AIO/config.h +++ b/src/config/GEPRCF411_AIO/config.h @@ -90,7 +90,6 @@ #define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO #define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_OFF //TODO #define MOTOR_PWM_PROTOCOL DSHOT600 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/GEPRCF722/config.h b/src/config/GEPRCF722/config.h index 486d4f0c34..c8e737759f 100644 --- a/src/config/GEPRCF722/config.h +++ b/src/config/GEPRCF722/config.h @@ -98,7 +98,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/GEPRCF722BT/config.h b/src/config/GEPRCF722BT/config.h index 39d4fb09ad..e51ad55c55 100644 --- a/src/config/GEPRCF722BT/config.h +++ b/src/config/GEPRCF722BT/config.h @@ -89,7 +89,6 @@ #define ADC3_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/GEPRCF722_BT_HD/config.h b/src/config/GEPRCF722_BT_HD/config.h index 378008bb73..071236c2c7 100644 --- a/src/config/GEPRCF722_BT_HD/config.h +++ b/src/config/GEPRCF722_BT_HD/config.h @@ -103,7 +103,6 @@ #define ADC3_DMA_OPT 0 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) diff --git a/src/config/GEPRC_F722_AIO/config.h b/src/config/GEPRC_F722_AIO/config.h index 95dfb1a0cb..8684fc2bfd 100644 --- a/src/config/GEPRC_F722_AIO/config.h +++ b/src/config/GEPRC_F722_AIO/config.h @@ -92,7 +92,6 @@ #define ADC3_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) diff --git a/src/config/GRAVITYF7/config.h b/src/config/GRAVITYF7/config.h index 3ff6a7df34..fda9e9731b 100644 --- a/src/config/GRAVITYF7/config.h +++ b/src/config/GRAVITYF7/config.h @@ -89,7 +89,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/HAKRCF411D/config.h b/src/config/HAKRCF411D/config.h index 04e8435687..8858e151c9 100644 --- a/src/config/HAKRCF411D/config.h +++ b/src/config/HAKRCF411D/config.h @@ -96,7 +96,6 @@ #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC #define BEEPER_INVERTED -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define MAX7456_SPI_INSTANCE SPI2 #define PINIO1_BOX 40 diff --git a/src/config/HAKRCF722D/config.h b/src/config/HAKRCF722D/config.h index 7b48caf7e0..3a2a1d57c0 100644 --- a/src/config/HAKRCF722D/config.h +++ b/src/config/HAKRCF722D/config.h @@ -111,7 +111,6 @@ #define SPI3_TX_DMA_OPT 0 #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/HAKRCF722MINI/config.h b/src/config/HAKRCF722MINI/config.h index bc6c81e6e3..6e1ce13fca 100644 --- a/src/config/HAKRCF722MINI/config.h +++ b/src/config/HAKRCF722MINI/config.h @@ -106,9 +106,7 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) -//TODO #define MAG_HARDWARE NONE #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/src/config/HAKRCF722V2/config.h b/src/config/HAKRCF722V2/config.h index 08f2de51aa..96135ce6ef 100644 --- a/src/config/HAKRCF722V2/config.h +++ b/src/config/HAKRCF722V2/config.h @@ -99,7 +99,6 @@ #define ADC3_DMA_OPT 0 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/HAKRCF7230D/config.h b/src/config/HAKRCF7230D/config.h index 78df068e8a..ae4f8b8b73 100644 --- a/src/config/HAKRCF7230D/config.h +++ b/src/config/HAKRCF7230D/config.h @@ -106,7 +106,6 @@ #define SPI3_TX_DMA_OPT 0 #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/HGLRCF405/config.h b/src/config/HGLRCF405/config.h index 87922e5e40..199531d745 100644 --- a/src/config/HGLRCF405/config.h +++ b/src/config/HGLRCF405/config.h @@ -94,10 +94,9 @@ #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_1 #define MAG_ALIGN DEFAULT -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) -//TODO #define MAG_I2C_ADDRESS 0 -//TODO #define MAG_SPI_DEVICE 0 +#define USE_SPI_MAG +#define MAG_SPI_INSTANCE SPI0 #define USE_BARO #define BARO_SPI_INSTANCE SPI3 @@ -132,9 +131,9 @@ #define USE_SPI_GYRO #define GYRO_2_SPI_INSTANCE SPI1 #define GYRO_2_ALIGN CW0_DEG -//TODO #define I2C1_PULLUP OFF +#define USE_I2C1_PULLUP OFF //TODO #define I2C1_OVERCLOCK ON -//TODO #define I2C2_PULLUP OFF +#define USE_I2C2_PULLUP OFF //TODO #define I2C2_OVERCLOCK ON -//TODO #define I2C3_PULLUP OFF +#define USE_I2C3_PULLUP OFF //TODO #define I2C3_OVERCLOCK ON diff --git a/src/config/HGLRCF405AS/config.h b/src/config/HGLRCF405AS/config.h index 30d5746a45..79aea06854 100644 --- a/src/config/HGLRCF405AS/config.h +++ b/src/config/HGLRCF405AS/config.h @@ -96,7 +96,6 @@ #define ADC2_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) diff --git a/src/config/HGLRCF722/config.h b/src/config/HGLRCF722/config.h index 767ed1efb6..10ad22c9d3 100644 --- a/src/config/HGLRCF722/config.h +++ b/src/config/HGLRCF722/config.h @@ -104,7 +104,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/HGLRCF722E/config.h b/src/config/HGLRCF722E/config.h index 7818e1e86d..fbe4401c10 100644 --- a/src/config/HGLRCF722E/config.h +++ b/src/config/HGLRCF722E/config.h @@ -102,7 +102,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO diff --git a/src/config/HGLRCF745/config.h b/src/config/HGLRCF745/config.h index 406a584bb5..11de7093af 100644 --- a/src/config/HGLRCF745/config.h +++ b/src/config/HGLRCF745/config.h @@ -102,10 +102,9 @@ #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_1 #define MAG_ALIGN DEFAULT -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) -//TODO #define MAG_I2C_ADDRESS 0 -//TODO #define MAG_SPI_DEVICE 0 +#define USE_SPI_MAG +#define MAG_SPI_INSTANCE SPI0 #define USE_BARO #define BARO_SPI_INSTANCE SPI1 @@ -137,12 +136,12 @@ #define USE_SPI_GYRO #define GYRO_2_SPI_INSTANCE SPI1 #define GYRO_2_ALIGN DEFAULT -//TODO #define I2C1_PULLUP OFF +#define USE_I2C1_PULLUP OFF //TODO #define I2C1_OVERCLOCK ON -//TODO #define I2C2_PULLUP OFF +#define USE_I2C2_PULLUP OFF //TODO #define I2C2_OVERCLOCK ON -//TODO #define I2C3_PULLUP OFF +#define USE_I2C3_PULLUP OFF //TODO #define I2C3_OVERCLOCK ON -//TODO #define I2C4_PULLUP OFF +#define USE_I2C4_PULLUP OFF //TODO #define I2C4_OVERCLOCK ON //TODO #define MCO2_ON_PC9 OFF diff --git a/src/config/HOBBYWING_XROTORF4G3/config.h b/src/config/HOBBYWING_XROTORF4G3/config.h index 0e4e4a8841..4eeecdf813 100644 --- a/src/config/HOBBYWING_XROTORF4G3/config.h +++ b/src/config/HOBBYWING_XROTORF4G3/config.h @@ -101,7 +101,6 @@ #define SPI2_TX_DMA_OPT 0 #define ADC2_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_SPI_INSTANCE SPI3 diff --git a/src/config/HOBBYWING_XROTORF7CONV/config.h b/src/config/HOBBYWING_XROTORF7CONV/config.h index e5966be1cf..506f13d333 100644 --- a/src/config/HOBBYWING_XROTORF7CONV/config.h +++ b/src/config/HOBBYWING_XROTORF7CONV/config.h @@ -101,7 +101,6 @@ #define ADC3_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/IFLIGHT_BLITZ_F722/config.h b/src/config/IFLIGHT_BLITZ_F722/config.h index c27aade148..e70d80c364 100644 --- a/src/config/IFLIGHT_BLITZ_F722/config.h +++ b/src/config/IFLIGHT_BLITZ_F722/config.h @@ -97,7 +97,6 @@ #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/IFLIGHT_BLITZ_F722_X1/config.h b/src/config/IFLIGHT_BLITZ_F722_X1/config.h index 2e70e5b267..ba7cc9a855 100644 --- a/src/config/IFLIGHT_BLITZ_F722_X1/config.h +++ b/src/config/IFLIGHT_BLITZ_F722_X1/config.h @@ -94,7 +94,6 @@ #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/IFLIGHT_BLITZ_F7_AIO/config.h b/src/config/IFLIGHT_BLITZ_F7_AIO/config.h index 89b5a32564..d53cd37a6c 100644 --- a/src/config/IFLIGHT_BLITZ_F7_AIO/config.h +++ b/src/config/IFLIGHT_BLITZ_F7_AIO/config.h @@ -109,7 +109,6 @@ #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_4) diff --git a/src/config/IFLIGHT_BLITZ_F7_PRO/config.h b/src/config/IFLIGHT_BLITZ_F7_PRO/config.h index 1c86ea4f27..ccd668b5a8 100644 --- a/src/config/IFLIGHT_BLITZ_F7_PRO/config.h +++ b/src/config/IFLIGHT_BLITZ_F7_PRO/config.h @@ -93,7 +93,6 @@ #define SPI3_TX_DMA_OPT 0 #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) diff --git a/src/config/IFLIGHT_F405_TWING/config.h b/src/config/IFLIGHT_F405_TWING/config.h index a4f441f585..4c5191afb7 100644 --- a/src/config/IFLIGHT_F405_TWING/config.h +++ b/src/config/IFLIGHT_F405_TWING/config.h @@ -93,7 +93,6 @@ #define ADC1_DMA_OPT 1 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/IFLIGHT_F411_AIO32/config.h b/src/config/IFLIGHT_F411_AIO32/config.h index a40e031872..741983f6ed 100644 --- a/src/config/IFLIGHT_F411_AIO32/config.h +++ b/src/config/IFLIGHT_F411_AIO32/config.h @@ -87,7 +87,6 @@ #define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO #define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_OFF //TODO #define MOTOR_PWM_PROTOCOL DSHOT600 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/IFLIGHT_F722_TWING/config.h b/src/config/IFLIGHT_F722_TWING/config.h index cdeba2b11b..3e3762ffeb 100644 --- a/src/config/IFLIGHT_F722_TWING/config.h +++ b/src/config/IFLIGHT_F722_TWING/config.h @@ -104,7 +104,6 @@ #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_ADC diff --git a/src/config/IFLIGHT_F745_AIO/config.h b/src/config/IFLIGHT_F745_AIO/config.h index 1df3b82efa..cfa849bc7c 100644 --- a/src/config/IFLIGHT_F745_AIO/config.h +++ b/src/config/IFLIGHT_F745_AIO/config.h @@ -105,7 +105,6 @@ #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/src/config/IFLIGHT_F745_AIO_V2/config.h b/src/config/IFLIGHT_F745_AIO_V2/config.h index 95aee17b23..cb2db0175d 100644 --- a/src/config/IFLIGHT_F745_AIO_V2/config.h +++ b/src/config/IFLIGHT_F745_AIO_V2/config.h @@ -106,7 +106,6 @@ #define MAG_ALIGN CW180_DEG #define MAG_ALIGN_YAW 1800 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/IFLIGHT_H743_AIO_V2/config.h b/src/config/IFLIGHT_H743_AIO_V2/config.h index 2f85fde972..a55d384d73 100644 --- a/src/config/IFLIGHT_H743_AIO_V2/config.h +++ b/src/config/IFLIGHT_H743_AIO_V2/config.h @@ -113,7 +113,6 @@ #define TIMUP8_DMA_OPT 0 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/IFLIGHT_H7_TWING/config.h b/src/config/IFLIGHT_H7_TWING/config.h index bcdccea2ff..2cc83e3606 100644 --- a/src/config/IFLIGHT_H7_TWING/config.h +++ b/src/config/IFLIGHT_H7_TWING/config.h @@ -110,7 +110,6 @@ #define TIMUP8_DMA_OPT 4 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/IFLIGHT_SUCCEX_E_F7/config.h b/src/config/IFLIGHT_SUCCEX_E_F7/config.h index b319f9627c..63b9396164 100644 --- a/src/config/IFLIGHT_SUCCEX_E_F7/config.h +++ b/src/config/IFLIGHT_SUCCEX_E_F7/config.h @@ -98,7 +98,6 @@ #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_ADC diff --git a/src/config/JBF7/config.h b/src/config/JBF7/config.h index bd09fb5c4a..b12d932783 100644 --- a/src/config/JBF7/config.h +++ b/src/config/JBF7/config.h @@ -101,7 +101,6 @@ #define ADC3_DMA_OPT 0 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) diff --git a/src/config/JBF7_DJI/config.h b/src/config/JBF7_DJI/config.h index e70ad6b85b..2c08fec51b 100644 --- a/src/config/JBF7_DJI/config.h +++ b/src/config/JBF7_DJI/config.h @@ -101,7 +101,6 @@ #define ADC3_DMA_OPT 0 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) diff --git a/src/config/JBF7_V2/config.h b/src/config/JBF7_V2/config.h index 46131aadaf..316dc5872c 100644 --- a/src/config/JBF7_V2/config.h +++ b/src/config/JBF7_V2/config.h @@ -95,7 +95,6 @@ #define SPI3_TX_DMA_OPT 0 #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/JHEF405/config.h b/src/config/JHEF405/config.h index eeaf4b5aac..b2429719d2 100644 --- a/src/config/JHEF405/config.h +++ b/src/config/JHEF405/config.h @@ -87,7 +87,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) diff --git a/src/config/JHEF405PRO/config.h b/src/config/JHEF405PRO/config.h index 02c8a72d89..ab97a91cc2 100644 --- a/src/config/JHEF405PRO/config.h +++ b/src/config/JHEF405PRO/config.h @@ -85,7 +85,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/JHEF411/config.h b/src/config/JHEF411/config.h index b0f16a6d30..8f6b61280e 100644 --- a/src/config/JHEF411/config.h +++ b/src/config/JHEF411/config.h @@ -88,7 +88,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/JHEF745/config.h b/src/config/JHEF745/config.h index 6622d05f64..f7816d6b1d 100644 --- a/src/config/JHEF745/config.h +++ b/src/config/JHEF745/config.h @@ -92,7 +92,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/JHEH743_AIO/config.h b/src/config/JHEH743_AIO/config.h index 73acda83d0..7ef82460ad 100644 --- a/src/config/JHEH743_AIO/config.h +++ b/src/config/JHEH743_AIO/config.h @@ -112,9 +112,7 @@ #define TIMUP4_DMA_OPT 0 #define TIMUP8_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) -//TODO #define MAG_HARDWARE NONE #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/src/config/KAKUTEF4V2/config.h b/src/config/KAKUTEF4V2/config.h index 755be7f12d..b186c63539 100644 --- a/src/config/KAKUTEF4V2/config.h +++ b/src/config/KAKUTEF4V2/config.h @@ -86,7 +86,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/KAKUTEF7/config.h b/src/config/KAKUTEF7/config.h index 4d11e04964..d4b9ecd3af 100644 --- a/src/config/KAKUTEF7/config.h +++ b/src/config/KAKUTEF7/config.h @@ -92,9 +92,7 @@ #define SPI1_TX_DMA_OPT 1 #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) -//TODO #define MAG_HARDWARE NONE #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BARO_DEVICE BARO_BMP280 diff --git a/src/config/KAKUTEF7HDV/config.h b/src/config/KAKUTEF7HDV/config.h index 013d4e8111..f733824e41 100644 --- a/src/config/KAKUTEF7HDV/config.h +++ b/src/config/KAKUTEF7HDV/config.h @@ -91,9 +91,7 @@ //TODO #define MOTOR_PWM_PROTOCOL DSHOT600 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) -//TODO #define MAG_HARDWARE NONE #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BARO_DEVICE BARO_BMP280 diff --git a/src/config/KAKUTEF7MINIV3/config.h b/src/config/KAKUTEF7MINIV3/config.h index 2e4f52714c..a6582e9281 100644 --- a/src/config/KAKUTEF7MINIV3/config.h +++ b/src/config/KAKUTEF7MINIV3/config.h @@ -91,9 +91,7 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) -//TODO #define MAG_HARDWARE NONE #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BARO_DEVICE BARO_BMP280 diff --git a/src/config/KAKUTEF7V2/config.h b/src/config/KAKUTEF7V2/config.h index 89b88804ca..ec790cb5b5 100644 --- a/src/config/KAKUTEF7V2/config.h +++ b/src/config/KAKUTEF7V2/config.h @@ -93,7 +93,6 @@ #define SPI1_TX_DMA_OPT 1 #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/KAKUTEH7/config.h b/src/config/KAKUTEH7/config.h index 550c4ffe5d..18e74c6c9b 100644 --- a/src/config/KAKUTEH7/config.h +++ b/src/config/KAKUTEH7/config.h @@ -102,7 +102,6 @@ #define TIMUP5_DMA_OPT 0 #define TIMUP8_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/KAKUTEH7MINI/config.h b/src/config/KAKUTEH7MINI/config.h index 7ba188192a..145ddae0e5 100644 --- a/src/config/KAKUTEH7MINI/config.h +++ b/src/config/KAKUTEH7MINI/config.h @@ -104,7 +104,6 @@ #define TIMUP5_DMA_OPT 0 #define TIMUP8_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/KAKUTEH7V2/config.h b/src/config/KAKUTEH7V2/config.h index 86a41a6c01..0da8407912 100644 --- a/src/config/KAKUTEH7V2/config.h +++ b/src/config/KAKUTEH7V2/config.h @@ -102,7 +102,6 @@ #define TIMUP5_DMA_OPT 0 #define TIMUP8_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/KD722/config.h b/src/config/KD722/config.h index 9164bb43eb..3280c5d676 100644 --- a/src/config/KD722/config.h +++ b/src/config/KD722/config.h @@ -87,7 +87,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/KROOZX/config.h b/src/config/KROOZX/config.h index 30807e6e1a..0da5936534 100644 --- a/src/config/KROOZX/config.h +++ b/src/config/KROOZX/config.h @@ -94,7 +94,6 @@ #define SPI3_TX_DMA_OPT 0 #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_3) diff --git a/src/config/LDARC_F411/config.h b/src/config/LDARC_F411/config.h index 18f2b39f5b..e75890d75b 100644 --- a/src/config/LDARC_F411/config.h +++ b/src/config/LDARC_F411/config.h @@ -77,9 +77,7 @@ #define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO #define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_OFF //TODO #define MOTOR_PWM_PROTOCOL DSHOT600 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) -//TODO #define MAG_HARDWARE AUTO #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/src/config/LUXF4OSD/config.h b/src/config/LUXF4OSD/config.h index e0d3644fc9..058f56cc99 100644 --- a/src/config/LUXF4OSD/config.h +++ b/src/config/LUXF4OSD/config.h @@ -99,7 +99,6 @@ #define ADC2_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) diff --git a/src/config/MAMBAF405US/config.h b/src/config/MAMBAF405US/config.h index 94cc99d564..d7d76f5cff 100644 --- a/src/config/MAMBAF405US/config.h +++ b/src/config/MAMBAF405US/config.h @@ -115,7 +115,6 @@ #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define MAG_I2C_INSTANCE (I2CDEV_1) -//TODO #define MAG_BUSTYPE I2C #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON diff --git a/src/config/MAMBAF405US_I2C/config.h b/src/config/MAMBAF405US_I2C/config.h index d43f1dfdfa..8ae31a0a83 100644 --- a/src/config/MAMBAF405US_I2C/config.h +++ b/src/config/MAMBAF405US_I2C/config.h @@ -115,7 +115,6 @@ #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/src/config/MAMBAF405_2022A/config.h b/src/config/MAMBAF405_2022A/config.h index eefc4421a5..84352eb8e0 100644 --- a/src/config/MAMBAF405_2022A/config.h +++ b/src/config/MAMBAF405_2022A/config.h @@ -97,7 +97,6 @@ #define PINIO1_PIN PC2 #define PINIO2_PIN PC5 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/MAMBAF405_2022B/config.h b/src/config/MAMBAF405_2022B/config.h index c46c6a30ee..8c5401ef88 100644 --- a/src/config/MAMBAF405_2022B/config.h +++ b/src/config/MAMBAF405_2022B/config.h @@ -96,7 +96,6 @@ #define ADC3_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/MAMBAF722/config.h b/src/config/MAMBAF722/config.h index 92112c8af4..2db34eadcd 100644 --- a/src/config/MAMBAF722/config.h +++ b/src/config/MAMBAF722/config.h @@ -111,7 +111,6 @@ #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define MAG_I2C_INSTANCE (I2CDEV_1) -//TODO #define MAG_BUSTYPE I2C #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON diff --git a/src/config/MAMBAF722_2022A/config.h b/src/config/MAMBAF722_2022A/config.h index fd5245d7ad..dcbba3efc4 100644 --- a/src/config/MAMBAF722_2022A/config.h +++ b/src/config/MAMBAF722_2022A/config.h @@ -97,7 +97,6 @@ #define PINIO1_PIN PC2 #define PINIO2_PIN PC0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/MAMBAF722_2022B/config.h b/src/config/MAMBAF722_2022B/config.h index 9dee03e1e3..ea0e251faf 100644 --- a/src/config/MAMBAF722_2022B/config.h +++ b/src/config/MAMBAF722_2022B/config.h @@ -98,7 +98,6 @@ #define ADC3_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/MAMBAF722_I2C/config.h b/src/config/MAMBAF722_I2C/config.h index 8e32eea80d..8803027d7b 100644 --- a/src/config/MAMBAF722_I2C/config.h +++ b/src/config/MAMBAF722_I2C/config.h @@ -114,7 +114,6 @@ #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/src/config/MAMBAF722_X8/config.h b/src/config/MAMBAF722_X8/config.h index 801ac6e412..b7d87fd782 100644 --- a/src/config/MAMBAF722_X8/config.h +++ b/src/config/MAMBAF722_X8/config.h @@ -95,7 +95,6 @@ #define ADC3_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/MAMBAH743/config.h b/src/config/MAMBAH743/config.h index 931c92ace9..9cf6cc7b23 100644 --- a/src/config/MAMBAH743/config.h +++ b/src/config/MAMBAH743/config.h @@ -120,7 +120,6 @@ #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) //TODO #define SDCARD_MODE OFF #define FLASH_SPI_INSTANCE SPI3 diff --git a/src/config/MATEKF405AIO/config.h b/src/config/MATEKF405AIO/config.h index e8c927abdc..14830b6c29 100644 --- a/src/config/MATEKF405AIO/config.h +++ b/src/config/MATEKF405AIO/config.h @@ -98,9 +98,7 @@ #define SPI3_TX_DMA_OPT 1 #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) -//TODO #define MAG_HARDWARE NONE #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BARO_DEVICE BARO_NONE diff --git a/src/config/MATEKF405CTR/config.h b/src/config/MATEKF405CTR/config.h index ffb8a04c18..fcbd92070c 100644 --- a/src/config/MATEKF405CTR/config.h +++ b/src/config/MATEKF405CTR/config.h @@ -99,9 +99,7 @@ #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) -//TODO #define MAG_HARDWARE NONE #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD diff --git a/src/config/MATEKF405MINI/config.h b/src/config/MATEKF405MINI/config.h index f7de846433..09834723ba 100644 --- a/src/config/MATEKF405MINI/config.h +++ b/src/config/MATEKF405MINI/config.h @@ -98,9 +98,7 @@ #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) -//TODO #define MAG_HARDWARE NONE #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BARO_DEVICE BARO_NONE diff --git a/src/config/MATEKF405SE/config.h b/src/config/MATEKF405SE/config.h index 0e2d1f86f8..8548da2ff8 100644 --- a/src/config/MATEKF405SE/config.h +++ b/src/config/MATEKF405SE/config.h @@ -100,9 +100,7 @@ #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) -//TODO #define MAG_HARDWARE AUTO #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BARO_I2C_ADDRESS 118 diff --git a/src/config/MATEKF405STD/config.h b/src/config/MATEKF405STD/config.h index ffc2b8989d..c26319c344 100644 --- a/src/config/MATEKF405STD/config.h +++ b/src/config/MATEKF405STD/config.h @@ -101,9 +101,7 @@ #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) -//TODO #define MAG_HARDWARE NONE #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD diff --git a/src/config/MATEKF405STD_CLONE/config.h b/src/config/MATEKF405STD_CLONE/config.h index 5f90325cff..d48c83355a 100644 --- a/src/config/MATEKF405STD_CLONE/config.h +++ b/src/config/MATEKF405STD_CLONE/config.h @@ -106,9 +106,7 @@ #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) -//TODO #define MAG_HARDWARE NONE #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD diff --git a/src/config/MATEKF405TE/config.h b/src/config/MATEKF405TE/config.h index 644a7da171..bb60970e87 100644 --- a/src/config/MATEKF405TE/config.h +++ b/src/config/MATEKF405TE/config.h @@ -101,9 +101,7 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) -//TODO #define MAG_HARDWARE AUTO #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/src/config/MATEKF405TEMINI/config.h b/src/config/MATEKF405TEMINI/config.h index 1d5bd70716..10c00b65f7 100644 --- a/src/config/MATEKF405TEMINI/config.h +++ b/src/config/MATEKF405TEMINI/config.h @@ -102,9 +102,7 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) -//TODO #define MAG_HARDWARE AUTO #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/src/config/MATEKF411/config.h b/src/config/MATEKF411/config.h index 52b519b6b0..422a35e307 100644 --- a/src/config/MATEKF411/config.h +++ b/src/config/MATEKF411/config.h @@ -82,9 +82,7 @@ #define DEFAULT_DSHOT_BURST DSHOT_DMAR_AUTO #define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_OFF -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) -//TODO #define MAG_HARDWARE NONE #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BARO_DEVICE BARO_NONE diff --git a/src/config/MATEKF411SE/config.h b/src/config/MATEKF411SE/config.h index 313e9f13c7..cff08bb78d 100644 --- a/src/config/MATEKF411SE/config.h +++ b/src/config/MATEKF411SE/config.h @@ -85,9 +85,7 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) -//TODO #define MAG_HARDWARE NONE #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/src/config/MATEKF722/config.h b/src/config/MATEKF722/config.h index 2804dfb2a7..d22cca6db1 100644 --- a/src/config/MATEKF722/config.h +++ b/src/config/MATEKF722/config.h @@ -100,9 +100,7 @@ #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) -//TODO #define MAG_HARDWARE NONE #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD diff --git a/src/config/MATEKF722HD/config.h b/src/config/MATEKF722HD/config.h index 6aced36b32..a5bc978931 100644 --- a/src/config/MATEKF722HD/config.h +++ b/src/config/MATEKF722HD/config.h @@ -109,7 +109,6 @@ #define SERIALRX_UART SERIAL_PORT_USART2 #define MAG_I2C_INSTANCE (I2CDEV_1) -//TODO #define MAG_HARDWARE AUTO #define BARO_BUSTYPE I2C #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/MATEKF722MINI/config.h b/src/config/MATEKF722MINI/config.h index 9259e8c11e..9f49d60e3b 100644 --- a/src/config/MATEKF722MINI/config.h +++ b/src/config/MATEKF722MINI/config.h @@ -107,9 +107,7 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) -//TODO #define MAG_HARDWARE NONE #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BARO_DEVICE BARO_NONE diff --git a/src/config/MATEKF722SE/config.h b/src/config/MATEKF722SE/config.h index 9215d4fb0e..99050b22e6 100644 --- a/src/config/MATEKF722SE/config.h +++ b/src/config/MATEKF722SE/config.h @@ -108,9 +108,7 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) -//TODO #define MAG_HARDWARE NONE #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD diff --git a/src/config/MERAKRCF405/config.h b/src/config/MERAKRCF405/config.h index e07c5b2591..392cda4ca6 100644 --- a/src/config/MERAKRCF405/config.h +++ b/src/config/MERAKRCF405/config.h @@ -87,7 +87,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/MERAKRCF722/config.h b/src/config/MERAKRCF722/config.h index c74c451080..40d3502afa 100644 --- a/src/config/MERAKRCF722/config.h +++ b/src/config/MERAKRCF722/config.h @@ -86,7 +86,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/NBD_GALAXYAIO255/config.h b/src/config/NBD_GALAXYAIO255/config.h index 8227767fab..2906a9c6dd 100644 --- a/src/config/NBD_GALAXYAIO255/config.h +++ b/src/config/NBD_GALAXYAIO255/config.h @@ -98,7 +98,6 @@ #define TIMUP5_DMA_OPT 4 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) diff --git a/src/config/NBD_INFINITYAIOV2PRO/config.h b/src/config/NBD_INFINITYAIOV2PRO/config.h index cc8ef2e694..404433e12e 100644 --- a/src/config/NBD_INFINITYAIOV2PRO/config.h +++ b/src/config/NBD_INFINITYAIOV2PRO/config.h @@ -84,7 +84,6 @@ #define ADC1_DMA_OPT 0 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/src/config/NBD_INFINITYF4/config.h b/src/config/NBD_INFINITYF4/config.h index 033b699b00..093f64ec73 100644 --- a/src/config/NBD_INFINITYF4/config.h +++ b/src/config/NBD_INFINITYF4/config.h @@ -77,7 +77,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_HARDWARE NONE #define DEFAULT_BARO_DEVICE BARO_NONE //TODO #define MOTOR_PWM_PROTOCOL DSHOT600 diff --git a/src/config/NEUTRONRCF407/config.h b/src/config/NEUTRONRCF407/config.h index a381a3536b..fb5bbfd35c 100644 --- a/src/config/NEUTRONRCF407/config.h +++ b/src/config/NEUTRONRCF407/config.h @@ -85,7 +85,6 @@ #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define USE_BARO diff --git a/src/config/NEUTRONRCF411AIO/config.h b/src/config/NEUTRONRCF411AIO/config.h index fda48a7341..9c40703486 100644 --- a/src/config/NEUTRONRCF411AIO/config.h +++ b/src/config/NEUTRONRCF411AIO/config.h @@ -85,7 +85,6 @@ #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/NEUTRONRCF722AIO/config.h b/src/config/NEUTRONRCF722AIO/config.h index a36705031a..405fc9bc99 100644 --- a/src/config/NEUTRONRCF722AIO/config.h +++ b/src/config/NEUTRONRCF722AIO/config.h @@ -78,7 +78,6 @@ #define ADC3_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) diff --git a/src/config/NEUTRONRCF7AIO/config.h b/src/config/NEUTRONRCF7AIO/config.h index d7be574718..255dcd3e0c 100644 --- a/src/config/NEUTRONRCF7AIO/config.h +++ b/src/config/NEUTRONRCF7AIO/config.h @@ -104,7 +104,8 @@ #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C +#define MAG_ALIGN CW180_DEG +#define MAG_ALIGN_YAW 1800 #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/NEUTRONRCH743AIO/config.h b/src/config/NEUTRONRCH743AIO/config.h index 3719f00e8c..550493b812 100644 --- a/src/config/NEUTRONRCH743AIO/config.h +++ b/src/config/NEUTRONRCH743AIO/config.h @@ -117,7 +117,6 @@ #define TIMUP8_DMA_OPT 0 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) diff --git a/src/config/NEUTRONRCH7BT/config.h b/src/config/NEUTRONRCH7BT/config.h index de11ffbd0f..4db8635a09 100644 --- a/src/config/NEUTRONRCH7BT/config.h +++ b/src/config/NEUTRONRCH7BT/config.h @@ -124,7 +124,6 @@ #define TIMUP8_DMA_OPT 0 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) diff --git a/src/config/NUCLEOF722/config.h b/src/config/NUCLEOF722/config.h index 502a090c58..8b34fee222 100644 --- a/src/config/NUCLEOF722/config.h +++ b/src/config/NUCLEOF722/config.h @@ -77,7 +77,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/OMNIBUSF4/config.h b/src/config/OMNIBUSF4/config.h index 8c5ba5fa6e..110b7b7a86 100644 --- a/src/config/OMNIBUSF4/config.h +++ b/src/config/OMNIBUSF4/config.h @@ -98,7 +98,6 @@ #define ADC2_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) diff --git a/src/config/OMNIBUSF4FW/config.h b/src/config/OMNIBUSF4FW/config.h index 66d759da71..04fcc82788 100644 --- a/src/config/OMNIBUSF4FW/config.h +++ b/src/config/OMNIBUSF4FW/config.h @@ -93,7 +93,6 @@ #define ADC2_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_SPI_INSTANCE SPI3 diff --git a/src/config/OMNIBUSF4SD/config.h b/src/config/OMNIBUSF4SD/config.h index 58c3f45232..a8d8eeffbc 100644 --- a/src/config/OMNIBUSF4SD/config.h +++ b/src/config/OMNIBUSF4SD/config.h @@ -104,7 +104,6 @@ #define SPI2_TX_DMA_OPT 0 #define ADC2_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_SPI_INSTANCE SPI3 diff --git a/src/config/OMNIBUSF4V6/config.h b/src/config/OMNIBUSF4V6/config.h index 3f4055fefe..0cc29f1bac 100644 --- a/src/config/OMNIBUSF4V6/config.h +++ b/src/config/OMNIBUSF4V6/config.h @@ -94,7 +94,6 @@ #define ADC2_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_SPI_INSTANCE SPI3 diff --git a/src/config/OMNIBUSF7/config.h b/src/config/OMNIBUSF7/config.h index 5ab7881e41..53f0f4ec62 100644 --- a/src/config/OMNIBUSF7/config.h +++ b/src/config/OMNIBUSF7/config.h @@ -96,7 +96,6 @@ #define SPI4_TX_DMA_OPT 0 #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_SPI_INSTANCE SPI1 diff --git a/src/config/OMNIBUSF7V2/config.h b/src/config/OMNIBUSF7V2/config.h index 7c228a5c13..2d286f1f44 100644 --- a/src/config/OMNIBUSF7V2/config.h +++ b/src/config/OMNIBUSF7V2/config.h @@ -97,7 +97,6 @@ #define SPI4_TX_DMA_OPT 0 #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_SPI_INSTANCE SPI1 diff --git a/src/config/OMNINXT4/config.h b/src/config/OMNINXT4/config.h index e0253ba1cc..2f2379172f 100644 --- a/src/config/OMNINXT4/config.h +++ b/src/config/OMNINXT4/config.h @@ -104,7 +104,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_SPI_INSTANCE SPI2 diff --git a/src/config/OMNINXT7/config.h b/src/config/OMNINXT7/config.h index aae87bf98d..9a63f4cf69 100644 --- a/src/config/OMNINXT7/config.h +++ b/src/config/OMNINXT7/config.h @@ -104,7 +104,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_SPI_INSTANCE SPI2 diff --git a/src/config/PODIUMF4/config.h b/src/config/PODIUMF4/config.h index 8da9026e1f..89ab4b2edf 100644 --- a/src/config/PODIUMF4/config.h +++ b/src/config/PODIUMF4/config.h @@ -93,7 +93,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/PYRODRONEF4/config.h b/src/config/PYRODRONEF4/config.h index 2a6c2b2427..1b74b6533f 100644 --- a/src/config/PYRODRONEF4/config.h +++ b/src/config/PYRODRONEF4/config.h @@ -76,7 +76,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_HARDWARE NONE #define DEFAULT_BARO_DEVICE BARO_NONE //TODO #define MOTOR_PWM_PROTOCOL DSHOT600 #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC diff --git a/src/config/REVO/config.h b/src/config/REVO/config.h index 862e98923e..754f8e87d1 100644 --- a/src/config/REVO/config.h +++ b/src/config/REVO/config.h @@ -94,7 +94,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/RUSHCORE7/config.h b/src/config/RUSHCORE7/config.h index 9738ef73e5..46cd78cfdf 100644 --- a/src/config/RUSHCORE7/config.h +++ b/src/config/RUSHCORE7/config.h @@ -92,7 +92,6 @@ #define ADC3_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/RUSRACE_F4/config.h b/src/config/RUSRACE_F4/config.h index fd15c9b0b3..76b022fa49 100644 --- a/src/config/RUSRACE_F4/config.h +++ b/src/config/RUSRACE_F4/config.h @@ -85,7 +85,6 @@ #define SPI3_TX_DMA_OPT 1 #define ADC1_DMA_OPT 0 -//TODO #define MAG_HARDWARE NONE #define DEFAULT_BARO_DEVICE BARO_NONE #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/src/config/RUSRACE_F7/config.h b/src/config/RUSRACE_F7/config.h index 5312b31f7b..b2a8b82058 100644 --- a/src/config/RUSRACE_F7/config.h +++ b/src/config/RUSRACE_F7/config.h @@ -84,7 +84,6 @@ #define SPI3_TX_DMA_OPT 1 #define ADC1_DMA_OPT 0 -//TODO #define MAG_HARDWARE NONE #define DEFAULT_BARO_DEVICE BARO_NONE #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/src/config/SIRMIXALOT/config.h b/src/config/SIRMIXALOT/config.h index 700c5e558e..9a4b2bda68 100644 --- a/src/config/SIRMIXALOT/config.h +++ b/src/config/SIRMIXALOT/config.h @@ -78,7 +78,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_HARDWARE AUTO #define USE_BARO #define BARO_SPI_INSTANCE SPI3 //TODO #define SERIALRX_PROVIDER FPORT diff --git a/src/config/SKYSTARSF405/config.h b/src/config/SKYSTARSF405/config.h index 6006c63689..60e3f44dc5 100644 --- a/src/config/SKYSTARSF405/config.h +++ b/src/config/SKYSTARSF405/config.h @@ -96,7 +96,6 @@ #define SPI3_TX_DMA_OPT 0 #define ADC2_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_SPI_INSTANCE SPI2 diff --git a/src/config/SKYSTARSF411/config.h b/src/config/SKYSTARSF411/config.h index cbac10c923..4ef233008e 100644 --- a/src/config/SKYSTARSF411/config.h +++ b/src/config/SKYSTARSF411/config.h @@ -103,7 +103,6 @@ //TODO #define MOTOR_PWM_PROTOCOL DSHOT600 #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC -//TODO #define MAG_HARDWARE NONE #define BEEPER_INVERTED #define SYSTEM_HSE_MHZ 8 #define MAX7456_SPI_INSTANCE SPI2 diff --git a/src/config/SKYSTARSF7HD/config.h b/src/config/SKYSTARSF7HD/config.h index 5abdf79dbb..2775dd505c 100644 --- a/src/config/SKYSTARSF7HD/config.h +++ b/src/config/SKYSTARSF7HD/config.h @@ -92,7 +92,6 @@ #define ADC2_DMA_OPT 0 //TODO #define CAMERA_CONTROL_MODE SOFTWARE_PWM -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_SPI_INSTANCE SPI2 diff --git a/src/config/SKYSTARSF7HDPRO/config.h b/src/config/SKYSTARSF7HDPRO/config.h index f24e12938b..df49730063 100644 --- a/src/config/SKYSTARSF7HDPRO/config.h +++ b/src/config/SKYSTARSF7HDPRO/config.h @@ -95,7 +95,6 @@ #define SPI3_TX_DMA_OPT 0 #define ADC2_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_SPI_INSTANCE SPI2 diff --git a/src/config/SKYSTARSH7HD/config.h b/src/config/SKYSTARSH7HD/config.h index 6e7d2f7f95..d14ab0dae2 100644 --- a/src/config/SKYSTARSH7HD/config.h +++ b/src/config/SKYSTARSH7HD/config.h @@ -128,7 +128,6 @@ #define TIMUP8_DMA_OPT 0 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define BARO_I2C_INSTANCE (I2CDEV_2) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/src/config/SKYZONEF405/config.h b/src/config/SKYZONEF405/config.h index f8abc62f4b..7c1bafb830 100644 --- a/src/config/SKYZONEF405/config.h +++ b/src/config/SKYZONEF405/config.h @@ -93,7 +93,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/SOULF4/config.h b/src/config/SOULF4/config.h index 95d55d0f25..ce51b07e20 100644 --- a/src/config/SOULF4/config.h +++ b/src/config/SOULF4/config.h @@ -96,7 +96,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/SPARKY2/config.h b/src/config/SPARKY2/config.h index fd067986db..f898e9932e 100644 --- a/src/config/SPARKY2/config.h +++ b/src/config/SPARKY2/config.h @@ -87,7 +87,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE SLAVE #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define BEEPER_INVERTED diff --git a/src/config/SPEDIXF4/config.h b/src/config/SPEDIXF4/config.h index 869d48d694..1565ad8a73 100644 --- a/src/config/SPEDIXF4/config.h +++ b/src/config/SPEDIXF4/config.h @@ -98,7 +98,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON diff --git a/src/config/SPEEDYBEEF4/config.h b/src/config/SPEEDYBEEF4/config.h index d9625e06c1..a27c38e6d9 100644 --- a/src/config/SPEEDYBEEF4/config.h +++ b/src/config/SPEEDYBEEF4/config.h @@ -89,7 +89,6 @@ #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/SPEEDYBEEF405V3/config.h b/src/config/SPEEDYBEEF405V3/config.h index 12cf594f11..51a22169d1 100644 --- a/src/config/SPEEDYBEEF405V3/config.h +++ b/src/config/SPEEDYBEEF405V3/config.h @@ -94,7 +94,6 @@ #define SPI2_TX_DMA_OPT 0 #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) diff --git a/src/config/SPEEDYBEEF7/config.h b/src/config/SPEEDYBEEF7/config.h index 46040372aa..aadceb81ca 100644 --- a/src/config/SPEEDYBEEF7/config.h +++ b/src/config/SPEEDYBEEF7/config.h @@ -98,7 +98,6 @@ #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/SPEEDYBEEF7MINI/config.h b/src/config/SPEEDYBEEF7MINI/config.h index a6850758ff..278df33939 100644 --- a/src/config/SPEEDYBEEF7MINI/config.h +++ b/src/config/SPEEDYBEEF7MINI/config.h @@ -99,7 +99,6 @@ #define SPI3_TX_DMA_OPT 0 #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/SPEEDYBEEF7MINIV2/config.h b/src/config/SPEEDYBEEF7MINIV2/config.h index f8eeeb2023..ec3b195460 100644 --- a/src/config/SPEEDYBEEF7MINIV2/config.h +++ b/src/config/SPEEDYBEEF7MINIV2/config.h @@ -97,7 +97,6 @@ #define SPI3_TX_DMA_OPT 0 #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/SPEEDYBEEF7V2/config.h b/src/config/SPEEDYBEEF7V2/config.h index a1a546e255..baa89039d4 100644 --- a/src/config/SPEEDYBEEF7V2/config.h +++ b/src/config/SPEEDYBEEF7V2/config.h @@ -90,7 +90,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/SPEEDYBEEF7V3/config.h b/src/config/SPEEDYBEEF7V3/config.h index 9b35bc65f1..d74d02a38d 100644 --- a/src/config/SPEEDYBEEF7V3/config.h +++ b/src/config/SPEEDYBEEF7V3/config.h @@ -97,7 +97,6 @@ #define ADC1_DMA_OPT 0 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_2 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/SPRACINGF4EVO/config.h b/src/config/SPRACINGF4EVO/config.h index df8c5e9279..750a5ed88b 100644 --- a/src/config/SPRACINGF4EVO/config.h +++ b/src/config/SPRACINGF4EVO/config.h @@ -105,7 +105,6 @@ #define SPI2_TX_DMA_OPT 0 #define ADC3_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/SPRACINGF4NEO/config.h b/src/config/SPRACINGF4NEO/config.h index 30afe73391..9d1efed896 100644 --- a/src/config/SPRACINGF4NEO/config.h +++ b/src/config/SPRACINGF4NEO/config.h @@ -107,7 +107,6 @@ #define SPI2_TX_DMA_OPT 0 #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/SPRACINGF7DUAL/config.h b/src/config/SPRACINGF7DUAL/config.h index edb4101c11..eb488ab3bf 100644 --- a/src/config/SPRACINGF7DUAL/config.h +++ b/src/config/SPRACINGF7DUAL/config.h @@ -112,7 +112,6 @@ #define ADC3_DMA_OPT 0 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/STM32F411DISCOVERY/config.h b/src/config/STM32F411DISCOVERY/config.h index 8b53474cf3..037f79b31b 100644 --- a/src/config/STM32F411DISCOVERY/config.h +++ b/src/config/STM32F411DISCOVERY/config.h @@ -74,7 +74,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC #define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC diff --git a/src/config/TALONF4V2/config.h b/src/config/TALONF4V2/config.h index 668613a6ab..25ec772292 100644 --- a/src/config/TALONF4V2/config.h +++ b/src/config/TALONF4V2/config.h @@ -85,7 +85,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_HARDWARE NONE #define DEFAULT_BARO_DEVICE BARO_NONE //TODO #define MOTOR_PWM_PROTOCOL DSHOT600 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_1 diff --git a/src/config/TALONF7FUSION/config.h b/src/config/TALONF7FUSION/config.h index 37f35fdb1b..9a9268ec9d 100644 --- a/src/config/TALONF7FUSION/config.h +++ b/src/config/TALONF7FUSION/config.h @@ -92,9 +92,7 @@ #define ADC1_DMA_OPT 1 #define DEFAULT_GYRO_TO_USE GYRO_CONFIG_USE_GYRO_BOTH -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) -//TODO #define MAG_HARDWARE NONE #define DEFAULT_BARO_DEVICE BARO_NONE #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/src/config/TALONF7V2/config.h b/src/config/TALONF7V2/config.h index 9b1599bef8..ac3e227b1d 100644 --- a/src/config/TALONF7V2/config.h +++ b/src/config/TALONF7V2/config.h @@ -88,7 +88,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_HARDWARE NONE #define DEFAULT_BARO_DEVICE BARO_NONE #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/src/config/TCMMF7/config.h b/src/config/TCMMF7/config.h index ff197f8916..f3a370c2d1 100644 --- a/src/config/TCMMF7/config.h +++ b/src/config/TCMMF7/config.h @@ -106,9 +106,7 @@ //TODO #define MOTOR_PWM_PROTOCOL DSHOT600 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) -//TODO #define MAG_HARDWARE NONE #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_SDCARD diff --git a/src/config/TMH7/config.h b/src/config/TMH7/config.h index 8ad27e2628..caf0b82d04 100644 --- a/src/config/TMH7/config.h +++ b/src/config/TMH7/config.h @@ -111,7 +111,6 @@ #define TIMUP5_DMA_OPT 0 #define TIMUP8_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/TMOTORF4/config.h b/src/config/TMOTORF4/config.h index 56df46ff05..d8ada92775 100644 --- a/src/config/TMOTORF4/config.h +++ b/src/config/TMOTORF4/config.h @@ -97,7 +97,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON diff --git a/src/config/TMOTORF7/config.h b/src/config/TMOTORF7/config.h index f7bc4f5d75..f374643133 100644 --- a/src/config/TMOTORF7/config.h +++ b/src/config/TMOTORF7/config.h @@ -102,7 +102,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define BARO_SPI_INSTANCE SPI3 #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/src/config/TMOTORF722SE/config.h b/src/config/TMOTORF722SE/config.h index 95898b1c47..0fe5f9611f 100644 --- a/src/config/TMOTORF722SE/config.h +++ b/src/config/TMOTORF722SE/config.h @@ -104,7 +104,6 @@ #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/TMOTORF7V2/config.h b/src/config/TMOTORF7V2/config.h index 19d50d96ea..e21cc17fd6 100644 --- a/src/config/TMOTORF7V2/config.h +++ b/src/config/TMOTORF7V2/config.h @@ -102,7 +102,6 @@ #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/TMOTORVELOXF7V2/config.h b/src/config/TMOTORVELOXF7V2/config.h index 17bea5d135..cbf0af1eeb 100644 --- a/src/config/TMOTORVELOXF7V2/config.h +++ b/src/config/TMOTORVELOXF7V2/config.h @@ -91,7 +91,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/TMVELOXF411/config.h b/src/config/TMVELOXF411/config.h index bf6b2ff531..eaa9c84ea8 100644 --- a/src/config/TMVELOXF411/config.h +++ b/src/config/TMVELOXF411/config.h @@ -74,7 +74,6 @@ #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH diff --git a/src/config/TMVELOXF7/config.h b/src/config/TMVELOXF7/config.h index d7f8cec15d..8ad59904a6 100644 --- a/src/config/TMVELOXF7/config.h +++ b/src/config/TMVELOXF7/config.h @@ -97,7 +97,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/TRANSTECF405HD/config.h b/src/config/TRANSTECF405HD/config.h index 3e96aa128f..fae36f52e7 100644 --- a/src/config/TRANSTECF405HD/config.h +++ b/src/config/TRANSTECF405HD/config.h @@ -64,7 +64,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_HARDWARE NONE #define DEFAULT_BARO_DEVICE BARO_NONE #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON diff --git a/src/config/TRANSTECF411/config.h b/src/config/TRANSTECF411/config.h index 13bba8f306..42a01c4cd8 100644 --- a/src/config/TRANSTECF411/config.h +++ b/src/config/TRANSTECF411/config.h @@ -67,7 +67,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_HARDWARE NONE #define DEFAULT_BARO_DEVICE BARO_NONE //TODO #define DSHOT_IDLE_VALUE 600 diff --git a/src/config/TRANSTECF411HD/config.h b/src/config/TRANSTECF411HD/config.h index 6449688d43..69710c8ca7 100644 --- a/src/config/TRANSTECF411HD/config.h +++ b/src/config/TRANSTECF411HD/config.h @@ -63,7 +63,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_HARDWARE NONE #define DEFAULT_BARO_DEVICE BARO_NONE //TODO #define DSHOT_IDLE_VALUE 600 diff --git a/src/config/TRANSTECF7/config.h b/src/config/TRANSTECF7/config.h index bf64022450..7b6c50f9d4 100644 --- a/src/config/TRANSTECF7/config.h +++ b/src/config/TRANSTECF7/config.h @@ -83,7 +83,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_HARDWARE NONE #define DEFAULT_BARO_DEVICE BARO_NONE #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON diff --git a/src/config/TRANSTECF7HD/config.h b/src/config/TRANSTECF7HD/config.h index 2e9ec6b6d8..67425538d8 100644 --- a/src/config/TRANSTECF7HD/config.h +++ b/src/config/TRANSTECF7HD/config.h @@ -78,7 +78,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_HARDWARE NONE #define DEFAULT_BARO_DEVICE BARO_NONE #define DEFAULT_DSHOT_BURST DSHOT_DMAR_ON diff --git a/src/config/UAVPNG030MINI/config.h b/src/config/UAVPNG030MINI/config.h index dc60407bde..220e6321bf 100644 --- a/src/config/UAVPNG030MINI/config.h +++ b/src/config/UAVPNG030MINI/config.h @@ -77,7 +77,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_SPI_INSTANCE SPI1 diff --git a/src/config/VGOODF722DUAL/config.h b/src/config/VGOODF722DUAL/config.h index d4b6c2911d..37aa69a057 100644 --- a/src/config/VGOODF722DUAL/config.h +++ b/src/config/VGOODF722DUAL/config.h @@ -87,7 +87,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/VGOODRCF4/config.h b/src/config/VGOODRCF4/config.h index de18d18389..6e428de937 100644 --- a/src/config/VGOODRCF4/config.h +++ b/src/config/VGOODRCF4/config.h @@ -95,7 +95,6 @@ #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) diff --git a/src/config/VIVAF4AIO/config.h b/src/config/VIVAF4AIO/config.h index 19e411e645..e75a061ecf 100644 --- a/src/config/VIVAF4AIO/config.h +++ b/src/config/VIVAF4AIO/config.h @@ -92,7 +92,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/WIZZF7HD/config.h b/src/config/WIZZF7HD/config.h index f3abb18a64..9ffe515a33 100644 --- a/src/config/WIZZF7HD/config.h +++ b/src/config/WIZZF7HD/config.h @@ -90,7 +90,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/XRACERF4/config.h b/src/config/XRACERF4/config.h index 821bf815dd..9da48fece7 100644 --- a/src/config/XRACERF4/config.h +++ b/src/config/XRACERF4/config.h @@ -94,7 +94,6 @@ #define ADC2_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_2) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_2) diff --git a/src/config/YUPIF7/config.h b/src/config/YUPIF7/config.h index 245940a253..2898dafa1d 100644 --- a/src/config/YUPIF7/config.h +++ b/src/config/YUPIF7/config.h @@ -86,7 +86,6 @@ #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/ZEEZF7/config.h b/src/config/ZEEZF7/config.h index 09cd3d7729..20c7c5e095 100644 --- a/src/config/ZEEZF7/config.h +++ b/src/config/ZEEZF7/config.h @@ -85,7 +85,6 @@ #define ADC3_DMA_OPT 1 -//TODO #define MAG_HARDWARE NONE #define DEFAULT_BARO_DEVICE BARO_NONE //TODO #define SERIALRX_PROVIDER CRSF #define USE_ADC diff --git a/src/config/ZEEZF7V2/config.h b/src/config/ZEEZF7V2/config.h index cf9ce0c8ff..d06a355d0d 100644 --- a/src/config/ZEEZF7V2/config.h +++ b/src/config/ZEEZF7V2/config.h @@ -94,7 +94,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_3) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/ZEEZF7V3/config.h b/src/config/ZEEZF7V3/config.h index 4ac8c4eb94..022653f022 100644 --- a/src/config/ZEEZF7V3/config.h +++ b/src/config/ZEEZF7V3/config.h @@ -98,7 +98,6 @@ #define SPI3_TX_DMA_OPT 0 #define ADC1_DMA_OPT 0 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_3) #define USE_BARO #define BARO_I2C_INSTANCE (I2CDEV_1) diff --git a/src/config/ZEUSF722_AIO/config.h b/src/config/ZEUSF722_AIO/config.h index 316adb0f10..67c377486e 100644 --- a/src/config/ZEUSF722_AIO/config.h +++ b/src/config/ZEUSF722_AIO/config.h @@ -104,7 +104,6 @@ #define ADC1_DMA_OPT 1 -//TODO #define MAG_BUSTYPE I2C #define MAG_I2C_INSTANCE (I2CDEV_1) #define USE_BARO #define BARO_SPI_INSTANCE SPI1 diff --git a/src/main/sensors/compass.c b/src/main/sensors/compass.c index 19e8797b91..bcdc94eee4 100644 --- a/src/main/sensors/compass.c +++ b/src/main/sensors/compass.c @@ -76,13 +76,17 @@ void pgResetFn_compassConfig(compassConfig_t *compassConfig) memset(&compassConfig->mag_customAlignment, 0x00, sizeof(compassConfig->mag_customAlignment)); compassConfig->mag_hardware = MAG_DEFAULT; +#ifndef MAG_I2C_ADDRESS +#define MAG_I2C_ADDRESS 0 +#endif + // Generate a reasonable default for backward compatibility // Strategy is // 1. If SPI device is defined, it will take precedence, assuming it's onboard. // 2. I2C devices are will be handled by address = 0 (per device default). // 3. Slave I2C device on SPI gyro -#if defined(USE_SPI) && (defined(USE_MAG_SPI_HMC5883) || defined(USE_MAG_SPI_AK8963)) +#if defined(USE_SPI_MAG) && (defined(USE_MAG_SPI_HMC5883) || defined(USE_MAG_SPI_AK8963)) compassConfig->mag_busType = BUS_TYPE_SPI; compassConfig->mag_spi_device = SPI_DEV_TO_CFG(spiDeviceByInstance(MAG_SPI_INSTANCE)); compassConfig->mag_spi_csn = IO_TAG(MAG_CS_PIN); @@ -91,13 +95,13 @@ void pgResetFn_compassConfig(compassConfig_t *compassConfig) #elif defined(USE_MAG_HMC5883) || defined(USE_MAG_QMC5883) || defined(USE_MAG_AK8975) || (defined(USE_MAG_AK8963) && !(defined(USE_GYRO_SPI_MPU6500) || defined(USE_GYRO_SPI_MPU9250))) compassConfig->mag_busType = BUS_TYPE_I2C; compassConfig->mag_i2c_device = I2C_DEV_TO_CFG(MAG_I2C_INSTANCE); - compassConfig->mag_i2c_address = 0; + compassConfig->mag_i2c_address = MAG_I2C_ADDRESS; compassConfig->mag_spi_device = SPI_DEV_TO_CFG(SPIINVALID); compassConfig->mag_spi_csn = IO_TAG_NONE; #elif defined(USE_MAG_AK8963) && (defined(USE_GYRO_SPI_MPU6500) || defined(USE_GYRO_SPI_MPU9250)) compassConfig->mag_busType = BUS_TYPE_MPU_SLAVE; compassConfig->mag_i2c_device = I2C_DEV_TO_CFG(I2CINVALID); - compassConfig->mag_i2c_address = 0; + compassConfig->mag_i2c_address = MAG_I2C_ADDRESS; compassConfig->mag_spi_device = SPI_DEV_TO_CFG(SPIINVALID); compassConfig->mag_spi_csn = IO_TAG_NONE; #else