Skip to content

Commit

Permalink
Remove custom gyro defines when align preset is used (#673)
Browse files Browse the repository at this point in the history
  • Loading branch information
haslinghuis authored Jan 21, 2025
1 parent 6e28391 commit 3f3dd34
Show file tree
Hide file tree
Showing 19 changed files with 2 additions and 22 deletions.
1 change: 0 additions & 1 deletion configs/ACCIF405/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
#define GYRO_1_CS_PIN PA4
#define GYRO_1_SPI_INSTANCE SPI1
#define GYRO_1_ALIGN CW0_DEG
#define GYRO_1_ALIGN_YAW 1800

#define SPI1_SCK_PIN PA5
#define SPI1_SDI_PIN PA6
Expand Down
1 change: 0 additions & 1 deletion configs/ACCIF435/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,6 @@
#define GYRO_1_CS_PIN PA4
#define GYRO_1_SPI_INSTANCE SPI1
#define GYRO_1_ALIGN CW0_DEG
#define GYRO_1_ALIGN_YAW 1800

#define SPI1_SCK_PIN PA5
#define SPI1_SDI_PIN PA6
Expand Down
1 change: 0 additions & 1 deletion configs/AIRBOTG4AIO/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -120,5 +120,4 @@

#define GYRO_1_SPI_INSTANCE SPI1
#define GYRO_1_ALIGN CW0_DEG_FLIP
#define GYRO_1_ALIGN_YAW 2700
#define DEFAULT_ALIGN_BOARD_YAW -45
2 changes: 0 additions & 2 deletions configs/FF_RACEPITF7_MINI/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,5 +92,3 @@
#define FLASH_SPI_INSTANCE SPI3
#define GYRO_1_SPI_INSTANCE SPI1
#define GYRO_1_ALIGN CW180_DEG
#define GYRO_1_ALIGN_PITCH 1800
#define GYRO_1_ALIGN_YAW 1800
1 change: 0 additions & 1 deletion configs/FLYFISHRCF405/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,3 @@
#define GYRO_1_ALIGN CW90_DEG
#define GYRO_2_SPI_INSTANCE SPI1
#define GYRO_2_ALIGN CW90_DEG
#define GYRO_2_ALIGN_PITCH 900
1 change: 0 additions & 1 deletion configs/FOXEERF745V3_AIO/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -101,4 +101,3 @@
#define FLASH_SPI_INSTANCE SPI4
#define GYRO_1_SPI_INSTANCE SPI3
#define GYRO_1_ALIGN CW90_DEG
#define GYRO_1_ALIGN_YAW 1800
1 change: 0 additions & 1 deletion configs/FOXEERH743/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,5 @@
//TODO #define SDCARD_MODE OFF
#define GYRO_1_SPI_INSTANCE SPI2
#define GYRO_1_ALIGN CW0_DEG
#define GYRO_1_ALIGN_YAW 1800

#define SERIALRX_UART SERIAL_PORT_USART1
1 change: 0 additions & 1 deletion configs/FOXEERH743V2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,4 +131,3 @@
#define USE_SPI_GYRO
#define GYRO_1_SPI_INSTANCE SPI2
#define GYRO_1_ALIGN CW270_DEG
#define GYRO_1_ALIGN_YAW 1800
1 change: 0 additions & 1 deletion configs/GEPRCF405/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -117,4 +117,3 @@
#define FLASH_SPI_INSTANCE SPI2
#define GYRO_1_SPI_INSTANCE SPI3
#define GYRO_1_ALIGN CW180_DEG
#define GYRO_1_ALIGN_YAW 2700
1 change: 0 additions & 1 deletion configs/GEPRCF405_BT_HD/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -124,4 +124,3 @@
#define FLASH_SPI_INSTANCE SPI2
#define GYRO_1_SPI_INSTANCE SPI3
#define GYRO_1_ALIGN CW180_DEG
#define GYRO_1_ALIGN_YAW 2700
1 change: 0 additions & 1 deletion configs/KAKUTEG4AIO/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,5 +111,4 @@
#define BEEPER_INVERTED

#define GYRO_1_ALIGN CW0_DEG_FLIP
#define GYRO_1_ALIGN_YAW 2700
#define DEFAULT_ALIGN_BOARD_YAW -45
3 changes: 1 addition & 2 deletions configs/LUXMICROAIO/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -107,11 +107,10 @@
#define BEEPER_INVERTED

#define BARO_I2C_INSTANCE I2CDEV_1
#define MAG_I2C_INSTANCE I2CDEV_1
#define MAG_I2C_INSTANCE I2CDEV_1
#define MAX7456_SPI_INSTANCE SPI2
#define FLASH_SPI_INSTANCE SPI2

#define GYRO_1_SPI_INSTANCE SPI1
#define GYRO_1_ALIGN CW0_DEG_FLIP
#define GYRO_1_ALIGN_YAW 2700
#define DEFAULT_ALIGN_BOARD_YAW -45
1 change: 0 additions & 1 deletion configs/MERCURYG4/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,6 @@
#define USE_I2C_PULLUP

#define GYRO_1_ALIGN CW90_DEG
#define GYRO_1_ALIGN_YAW 1800

//TODO set rssi_channel = 15
#define DEFAULT_DSHOT_BITBANG DSHOT_BITBANG_ON
Expand Down
1 change: 0 additions & 1 deletion configs/PRINCIPIOTF7/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,6 @@
#define GYRO_1_CS_PIN PB2
#define GYRO_1_SPI_INSTANCE SPI1
#define GYRO_1_ALIGN CW90_DEG
#define GYRO_1_ALIGN_YAW 1800

#define USE_BARO
#define USE_BARO_DPS310
Expand Down
1 change: 0 additions & 1 deletion configs/STELLARF4V2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,5 @@
#define PINIO1_BOX 40
#define GYRO_1_SPI_INSTANCE SPI1
#define GYRO_1_ALIGN CW180_DEG
#define GYRO_1_ALIGN_PITCH 1800

#define BOX_USER1_NAME "CAM 1,2"
1 change: 0 additions & 1 deletion configs/STELLARF7/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,6 @@
#define FLASH_SPI_INSTANCE SPI3
#define GYRO_1_SPI_INSTANCE SPI1
#define GYRO_1_ALIGN CW180_DEG
#define GYRO_1_ALIGN_PITCH 1800
#define PINIO1_CONFIG 1
#define PINIO1_BOX 40
#define PINIO2_BOX 41
Expand Down
1 change: 0 additions & 1 deletion configs/STELLARF7V2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,6 @@
#define FLASH_SPI_INSTANCE SPI3
#define GYRO_1_SPI_INSTANCE SPI1
#define GYRO_1_ALIGN CW180_DEG
#define GYRO_1_ALIGN_PITCH 1800
#define PINIO1_BOX 40
#define PINIO2_BOX 41
#define PINIO3_BOX 42
Expand Down
1 change: 0 additions & 1 deletion configs/STELLARH7V2/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,6 @@
#define PINIO1_BOX 40
#define GYRO_1_SPI_INSTANCE SPI1
#define GYRO_1_ALIGN CW180_DEG
#define GYRO_1_ALIGN_PITCH 1800

#define ENSURE_MPU_DATA_READY_IS_LOW

Expand Down
3 changes: 1 addition & 2 deletions configs/TMH7/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
#define TIMUP8_DMA_OPT 0

#define MAG_I2C_INSTANCE I2CDEV_1
#define BARO_I2C_INSTANCE I2CDEV_1
#define BARO_I2C_INSTANCE I2CDEV_1
#define DEFAULT_BLACKBOX_DEVICE BLACKBOX_DEVICE_FLASH
#define DEFAULT_CURRENT_METER_SOURCE CURRENT_METER_ADC
#define DEFAULT_VOLTAGE_METER_SOURCE VOLTAGE_METER_ADC
Expand All @@ -123,6 +123,5 @@
#define FLASH_SPI_INSTANCE SPI3
#define GYRO_1_SPI_INSTANCE SPI1
#define GYRO_1_ALIGN CW270_DEG
#define GYRO_1_ALIGN_YAW 1800
#define GYRO_2_SPI_INSTANCE SPI4
#define GYRO_2_ALIGN CW270_DEG

0 comments on commit 3f3dd34

Please sign in to comment.