Skip to content

Commit

Permalink
Merge pull request #10176 from iNavFlight/mmosca-use-mag-all-update
Browse files Browse the repository at this point in the history
[Targets] USE_MAG_ALL
  • Loading branch information
mmosca authored Jun 24, 2024
2 parents 41a6913 + ea65871 commit 5553190
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 44 deletions.
7 changes: 1 addition & 6 deletions src/main/target/ATOMRCF405V2/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,7 @@
*/
#define USE_MAG
#define MAG_I2C_BUS DEFAULT_I2C_BUS

#define USE_MAG_HMC5883
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#define USE_MAG_MAG3110
#define USE_MAG_LIS3MDL
#define USE_MAG_ALL

/*
* Barometer
Expand Down
8 changes: 1 addition & 7 deletions src/main/target/FLYWOOF405S_AIO/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,7 @@

#define USE_MAG
#define MAG_I2C_BUS BUS_I2C1
#define USE_MAG_AK8963
#define USE_MAG_AK8975
#define USE_MAG_HMC5883
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#define USE_MAG_MAG3110
#define USE_MAG_LIS3MDL
#define USE_MAG_ALL

#define USE_RANGEFINDER
#define USE_RANGEFINDER_HCSR04_I2C
Expand Down
7 changes: 1 addition & 6 deletions src/main/target/GEPRCF745_BT_HD/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -89,12 +89,7 @@

#define USE_MAG
#define MAG_I2C_BUS BUS_I2C1
#define USE_MAG_HMC5883
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#define USE_MAG_IST8308
#define USE_MAG_MAG3110
#define USE_MAG_LIS3MDL
#define USE_MAG_ALL

#define TEMPERATURE_I2C_BUS BUS_I2C1

Expand Down
8 changes: 1 addition & 7 deletions src/main/target/JHEMCUF405/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,7 @@

#define USE_MAG
#define MAG_I2C_BUS BUS_I2C1
#define USE_MAG_AK8963
#define USE_MAG_AK8975
#define USE_MAG_HMC5883
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#define USE_MAG_MAG3110
#define USE_MAG_LIS3MDL
#define USE_MAG_ALL

#define USE_RANGEFINDER
#define USE_RANGEFINDER_HCSR04_I2C
Expand Down
7 changes: 1 addition & 6 deletions src/main/target/JHEMCUF722/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,12 +107,7 @@
// Mag
#define USE_MAG
#define MAG_I2C_BUS BUS_I2C1
#define USE_MAG_HMC5883
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#define USE_MAG_IST8308
#define USE_MAG_MAG3110
#define USE_MAG_LIS3MDL
#define USE_MAG_ALL

// Onboard Flash
#define USE_SPI_DEVICE_3
Expand Down
8 changes: 1 addition & 7 deletions src/main/target/SDMODELH7V1/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,13 +93,7 @@

#define USE_MAG
#define MAG_I2C_BUS BUS_I2C1
#define USE_MAG_HMC5883
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#define USE_MAG_IST8308
#define USE_MAG_MAG3110
#define USE_MAG_LIS3MDL
#define USE_MAG_VCM5883
#define USE_MAG_ALL

#define TEMPERATURE_I2C_BUS BUS_I2C1
#define PITOT_I2C_BUS BUS_I2C1
Expand Down
5 changes: 1 addition & 4 deletions src/main/target/TAKERF722SE/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,8 @@
#define USE_BARO_MS5611

#define USE_MAG
#define USE_MAG_ALL
#define MAG_I2C_BUS BUS_I2C1
#define USE_MAG_HMC5883
#define USE_MAG_QMC5883
#define USE_MAG_IST8310
#define USE_MAG_IST8308

#define TEMPERATURE_I2C_BUS BUS_I2C1

Expand Down
3 changes: 2 additions & 1 deletion src/main/target/ZEEZF7/target.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@
#define USE_BARO_DPS310

#define USE_MAG
#define USE_MAG_QMC5883
#define USE_MAG_ALL

#endif

#if defined ZEEZF7V2 || defined ZEEZF7V3
Expand Down

0 comments on commit 5553190

Please sign in to comment.