mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 16:25:31 +03:00
Cleanup deprecated ACC_1_ALIGN and ACC_2_ALIGN defines (#8076)
Cleanup deprecated ACC_1_ALIGN and ACC_2_ALIGN defines
This commit is contained in:
commit
11c8772003
107 changed files with 0 additions and 157 deletions
|
@ -55,14 +55,12 @@
|
|||
#define GYRO_1_CS_PIN PA4
|
||||
#define GYRO_1_EXTI_PIN NONE
|
||||
|
||||
#define ACC_1_ALIGN CW0_DEG_FLIP
|
||||
#define GYRO_1_ALIGN CW0_DEG_FLIP
|
||||
|
||||
#define GYRO_2_SPI_INSTANCE SPI1
|
||||
#define GYRO_2_CS_PIN PC15
|
||||
#define GYRO_2_EXTI_PIN NONE
|
||||
|
||||
#define ACC_2_ALIGN CW0_DEG_FLIP
|
||||
#define GYRO_2_ALIGN CW0_DEG_FLIP
|
||||
|
||||
#define USE_MAG
|
||||
|
|
|
@ -44,7 +44,6 @@
|
|||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define ACC_1_ALIGN CW0_DEG
|
||||
|
||||
#define USE_GYRO_EXTI
|
||||
#define GYRO_1_EXTI_PIN PC4
|
||||
|
|
|
@ -50,7 +50,6 @@
|
|||
#define GYRO_1_SPI_INSTANCE SPI2
|
||||
|
||||
#define GYRO_1_ALIGN CW180_DEG
|
||||
#define ACC_1_ALIGN CW180_DEG
|
||||
|
||||
//#define USE_BARO
|
||||
//#define USE_BARO_MS5611
|
||||
|
|
|
@ -47,7 +47,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define ACC_1_ALIGN CW0_DEG
|
||||
|
||||
#define USE_BARO
|
||||
#define USE_BARO_SPI_BMP280
|
||||
|
|
|
@ -42,7 +42,6 @@
|
|||
#define USE_ACC
|
||||
#define USE_ACC_MPU6050
|
||||
|
||||
#define ACC_1_ALIGN CW0_DEG
|
||||
|
||||
#define USE_UART1
|
||||
#define USE_UART2
|
||||
|
|
|
@ -55,7 +55,6 @@
|
|||
#define USE_ACC_MPU6050
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
|
||||
// No baro support.
|
||||
//#define USE_BARO
|
||||
|
|
|
@ -49,7 +49,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
|
|
|
@ -47,7 +47,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
|
|
|
@ -142,7 +142,6 @@
|
|||
// ACC
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define ACC_1_ALIGN CW0_DEG
|
||||
|
||||
/* Optional Digital Pressure Sensor (barometer) - Bosch BMP280
|
||||
* TODO: not implemented on V1 or V2 pcb
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
|
|
|
@ -46,11 +46,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#if defined(BEESTORM)
|
||||
#define ACC_1_ALIGN CW180_DEG
|
||||
#else
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
#endif
|
||||
|
||||
#define SERIAL_PORT_COUNT 4
|
||||
|
||||
|
|
|
@ -44,7 +44,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_ICM20689
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_ICM20689
|
||||
|
|
|
@ -41,7 +41,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define ACC_1_ALIGN CW180_DEG
|
||||
|
||||
// MPU6000 interrupts
|
||||
#define USE_MPU_DATA_READY_SIGNAL
|
||||
|
|
|
@ -41,7 +41,6 @@
|
|||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define ACC_1_ALIGN CW180_DEG
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -54,7 +54,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define ACC_1_ALIGN CW0_DEG
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
|
|
|
@ -54,7 +54,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
|
||||
// MPU6000 interrupts
|
||||
#define USE_MPU_DATA_READY_SIGNAL
|
||||
|
|
|
@ -75,7 +75,6 @@
|
|||
//#define LSM303DLHC_I2C_INT1_PIN PE4
|
||||
//#define LSM303DLHC_I2C_INT2_PIN PE5
|
||||
|
||||
#define ACC_1_ALIGN CW0_DEG
|
||||
|
||||
#define USE_BARO
|
||||
#define USE_BARO_MS5611
|
||||
|
|
|
@ -60,7 +60,6 @@
|
|||
#define GYRO_1_CS_PIN PA4
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW0_DEG
|
||||
#define ACC_1_ALIGN CW0_DEG
|
||||
|
||||
#define USE_MAX7456
|
||||
#define MAX7456_SPI_INSTANCE SPI3
|
||||
|
|
|
@ -49,7 +49,6 @@
|
|||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
|
||||
#define GYRO_1_ALIGN CW0_DEG
|
||||
#define ACC_1_ALIGN CW0_DEG
|
||||
|
||||
#define USE_MAG
|
||||
#define USE_MAG_HMC5883
|
||||
|
|
|
@ -42,7 +42,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define ACC_1_ALIGN CW270_DEG_FLIP
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
|
|
|
@ -60,7 +60,6 @@
|
|||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
|
||||
#define USE_BARO
|
||||
#define USE_BARO_MS5611
|
||||
|
|
|
@ -77,7 +77,6 @@
|
|||
#define GYRO_1_ALIGN CW90_DEG
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define ACC_1_ALIGN CW90_DEG
|
||||
|
||||
#define USE_VCP
|
||||
#if defined(CRAZYBEEF3DX)
|
||||
|
|
|
@ -95,7 +95,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_MPU6500
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
|
||||
#define USE_MAG
|
||||
#define USE_MPU9250_MAG // Enables bypass configuration on the MPU9250 I2C bus
|
||||
|
|
|
@ -53,10 +53,8 @@
|
|||
#define USE_ACC_SPI_MPU6500
|
||||
|
||||
#define GYRO_1_ALIGN CW180_DEG
|
||||
#define ACC_1_ALIGN CW180_DEG
|
||||
|
||||
#define GYRO_2_ALIGN CW0_DEG
|
||||
#define ACC_2_ALIGN CW0_DEG
|
||||
|
||||
#define GYRO_CONFIG_USE_GYRO_DEFAULT GYRO_CONFIG_USE_GYRO_1
|
||||
|
||||
|
|
|
@ -78,7 +78,6 @@
|
|||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
|
||||
#define USE_BARO
|
||||
#define USE_BARO_BMP280
|
||||
|
|
|
@ -49,7 +49,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define ACC_1_ALIGN CW90_DEG
|
||||
|
||||
|
||||
#define USE_RX_SPI
|
||||
|
|
|
@ -38,7 +38,6 @@
|
|||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define ACC_1_ALIGN CW0_DEG
|
||||
|
||||
#define USE_EXTI
|
||||
#define USE_GYRO_EXTI
|
||||
|
|
|
@ -47,7 +47,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
|
||||
//#define USE_BARO
|
||||
//#define USE_BARO_MS5611
|
||||
|
|
|
@ -55,10 +55,8 @@
|
|||
#define USE_ACC_SPI_ICM20689
|
||||
|
||||
#define GYRO_1_ALIGN CW0_DEG
|
||||
#define ACC_1_ALIGN CW0_DEG
|
||||
|
||||
#define GYRO_2_ALIGN CW90_DEG
|
||||
#define ACC_2_ALIGN CW90_DEG
|
||||
|
||||
#define GYRO_CONFIG_USE_GYRO_DEFAULT GYRO_CONFIG_USE_GYRO_BOTH
|
||||
|
||||
|
|
|
@ -45,7 +45,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define ACC_1_ALIGN CW90_DEG
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
|
|
|
@ -76,7 +76,6 @@
|
|||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_ACC_SPI_ICM20689
|
||||
#define ACC_1_ALIGN CW180_DEG
|
||||
|
||||
/*---------------------------------*/
|
||||
|
||||
|
|
|
@ -55,7 +55,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define ACC_1_ALIGN CW180_DEG
|
||||
|
||||
#define GYRO_1_CS_PIN PB12
|
||||
#define GYRO_1_SPI_INSTANCE SPI2
|
||||
|
|
|
@ -68,7 +68,6 @@
|
|||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define ACC_1_ALIGN CW180_DEG
|
||||
/*---------------------------------*/
|
||||
|
||||
#if defined(FF_PIKOF4OSD)
|
||||
|
|
|
@ -55,7 +55,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define ACC_1_ALIGN CW90_DEG
|
||||
|
||||
// *************** UART *****************************
|
||||
#define USE_VCP
|
||||
|
|
|
@ -56,12 +56,10 @@
|
|||
#define ACC_MPU6000_1_ALIGN CW270_DEG
|
||||
#define GYRO_MPU6000_1_ALIGN CW270_DEG
|
||||
#define GYRO_1_ALIGN GYRO_MPU6000_1_ALIGN
|
||||
#define ACC_1_ALIGN ACC_MPU6000_1_ALIGN
|
||||
|
||||
#define ACC_ICM20689_2_ALIGN CW270_DEG
|
||||
#define GYRO_ICM20689_2_ALIGN CW270_DEG
|
||||
#define GYRO_2_ALIGN GYRO_ICM20689_2_ALIGN
|
||||
#define ACC_2_ALIGN ACC_ICM20689_2_ALIGN
|
||||
|
||||
#define GYRO_CONFIG_USE_GYRO_DEFAULT GYRO_CONFIG_USE_GYRO_2
|
||||
|
||||
|
|
|
@ -49,7 +49,6 @@
|
|||
#define GYRO_1_CS_PIN PB2
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW90_DEG
|
||||
#define ACC_1_ALIGN CW90_DEG
|
||||
|
||||
//------ICM20689
|
||||
#define USE_GYRO_SPI_ICM20689
|
||||
|
|
|
@ -53,10 +53,8 @@
|
|||
#define USE_ACC_SPI_MPU6500
|
||||
|
||||
#define GYRO_1_ALIGN CW270_DEG
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
|
||||
#define GYRO_2_ALIGN CW180_DEG
|
||||
#define ACC_2_ALIGN CW180_DEG
|
||||
|
||||
#define GYRO_CONFIG_USE_GYRO_DEFAULT GYRO_CONFIG_USE_GYRO_1
|
||||
|
||||
|
|
|
@ -44,7 +44,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
#else
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_MPU6050
|
||||
|
@ -52,7 +51,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_MPU6050
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
#endif
|
||||
|
||||
#define USE_VCP
|
||||
|
|
|
@ -41,7 +41,6 @@
|
|||
#define USE_GYRO_SPI_MPU6000
|
||||
|
||||
#define GYRO_1_ALIGN CW270_DEG
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
|
||||
#define USE_EXTI
|
||||
#define USE_GYRO_EXTI
|
||||
|
|
|
@ -56,7 +56,6 @@
|
|||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_ACC_SPI_ICM20689
|
||||
#define ACC_1_ALIGN CW180_DEG
|
||||
|
||||
#define USE_SPI
|
||||
#define USE_SPI_DEVICE_1
|
||||
|
|
|
@ -56,7 +56,6 @@
|
|||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_ACC_SPI_ICM20689
|
||||
#define ACC_1_ALIGN CW180_DEG
|
||||
|
||||
#ifdef FURYF4OSD
|
||||
#define USE_MAX7456
|
||||
|
|
|
@ -45,7 +45,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_ICM20689
|
||||
#define ACC_1_ALIGN CW180_DEG
|
||||
|
||||
//#define USE_BARO
|
||||
//#define USE_BARO_MS5611
|
||||
|
|
|
@ -63,7 +63,6 @@
|
|||
#define GYRO_1_ALIGN CW270_DEG
|
||||
|
||||
#define USE_ACC_SPI_ICM20689
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
|
|
|
@ -61,7 +61,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
|
||||
#define LED0_PIN PC13
|
||||
|
||||
|
|
|
@ -41,7 +41,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define ACC_1_ALIGN CW0_DEG
|
||||
|
||||
#define USE_FLASHFS
|
||||
#define USE_FLASH_M25P16
|
||||
|
|
|
@ -37,7 +37,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_MPU6050
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
|
||||
#define USE_BARO
|
||||
#define USE_BARO_BMP085
|
||||
|
|
|
@ -59,12 +59,10 @@
|
|||
#define ACC_ICM20689_1_ALIGN CW90_DEG
|
||||
#define GYRO_ICM20689_1_ALIGN CW90_DEG
|
||||
#define GYRO_1_ALIGN GYRO_ICM20689_1_ALIGN
|
||||
#define ACC_1_ALIGN ACC_ICM20689_1_ALIGN
|
||||
|
||||
#define ACC_MPU6000_2_ALIGN CW90_DEG
|
||||
#define GYRO_MPU6000_2_ALIGN CW90_DEG
|
||||
#define GYRO_2_ALIGN GYRO_MPU6000_2_ALIGN
|
||||
#define ACC_2_ALIGN ACC_MPU6000_2_ALIGN
|
||||
|
||||
#define GYRO_CONFIG_USE_GYRO_DEFAULT GYRO_CONFIG_USE_GYRO_1
|
||||
|
||||
|
|
|
@ -64,7 +64,6 @@
|
|||
|
||||
#define GYRO_1_CS_PIN PC4
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
#define GYRO_1_ALIGN CW270_DEG
|
||||
|
||||
#define USE_ACC
|
||||
|
|
|
@ -52,7 +52,6 @@
|
|||
#define GYRO_1_CS_PIN SPI4_NSS_PIN
|
||||
#define GYRO_1_SPI_INSTANCE SPI4
|
||||
#define GYRO_1_ALIGN CW270_DEG
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
|
||||
#define USE_GYRO_EXTI
|
||||
#define GYRO_1_EXTI_PIN PE1
|
||||
|
|
|
@ -50,7 +50,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_MPU6050
|
||||
#define ACC_1_ALIGN CW90_DEG
|
||||
|
||||
#define DEFAULT_MIXER MIXER_QUADX_1234
|
||||
|
||||
|
@ -62,7 +61,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_MPU6050
|
||||
#define ACC_1_ALIGN CW180_DEG
|
||||
#endif
|
||||
|
||||
#define USE_VCP
|
||||
|
|
|
@ -43,7 +43,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define ACC_1_ALIGN CW90_DEG
|
||||
|
||||
|
||||
#define USE_SPI
|
||||
|
|
|
@ -62,7 +62,6 @@
|
|||
#define USE_GYRO_SPI_MPU6000
|
||||
#define GYRO_1_ALIGN CW180_DEG
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define ACC_1_ALIGN CW180_DEG
|
||||
|
||||
#if defined(KIWIF4) || defined(KIWIF4V2)
|
||||
#define USE_MAX7456
|
||||
|
|
|
@ -52,7 +52,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
|
||||
#define USE_MAG
|
||||
#define USE_MAG_HMC5883
|
||||
|
|
|
@ -50,7 +50,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define ACC_1_ALIGN CW90_DEG
|
||||
|
||||
#define USE_VCP
|
||||
#define USE_UART1
|
||||
|
|
|
@ -94,7 +94,6 @@
|
|||
#endif
|
||||
|
||||
#define USE_ACC
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
#ifdef LUXV2_RACE
|
||||
#define USE_ACC_MPU6000
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
|
|
|
@ -60,8 +60,6 @@
|
|||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
//#define ACC_1_ALIGN CW180_DEG // XXX MPU6500 align, must be configured after flashing
|
||||
|
||||
#define USE_MAG
|
||||
#define USE_MAG_HMC5883
|
||||
|
|
|
@ -53,7 +53,6 @@
|
|||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define ACC_1_ALIGN CW180_DEG
|
||||
|
||||
// *************** Baro **************************
|
||||
#define USE_I2C
|
||||
|
|
|
@ -65,11 +65,6 @@
|
|||
#endif
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#if defined(CRAZYBEEF4FS) || defined(CRAZYBEEF4FR) || defined(CRAZYBEEF4DX)
|
||||
#define ACC_1_ALIGN CW90_DEG
|
||||
#else
|
||||
#define ACC_1_ALIGN CW180_DEG
|
||||
#endif
|
||||
// *************** SPI2 OSD *****************************
|
||||
#define USE_SPI_DEVICE_2
|
||||
#define SPI2_SCK_PIN PB13
|
||||
|
|
|
@ -58,8 +58,6 @@
|
|||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_ACC_SPI_ICM20689
|
||||
#define ACC_1_ALIGN CW180_DEG
|
||||
//#define ACC_1_ALIGN CW90_DEG // XXX has to be post-flash configured
|
||||
|
||||
// *************** Baro **************************
|
||||
#define USE_I2C
|
||||
|
|
|
@ -62,10 +62,8 @@
|
|||
#define USE_ACC_SPI_MPU6500
|
||||
|
||||
#define GYRO_1_ALIGN CW180_DEG_FLIP
|
||||
#define ACC_1_ALIGN CW180_DEG_FLIP
|
||||
|
||||
#define GYRO_2_ALIGN CW90_DEG
|
||||
#define ACC_2_ALIGN CW90_DEG
|
||||
|
||||
#define USE_MPU_DATA_READY_SIGNAL
|
||||
#define ENSURE_MPU_DATA_READY_IS_LOW
|
||||
|
|
|
@ -55,7 +55,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_MPU6050
|
||||
#define ACC_1_ALIGN CW0_DEG
|
||||
|
||||
#define USE_BARO
|
||||
#define USE_BARO_MS5611
|
||||
|
|
|
@ -35,7 +35,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_MPU6050
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
|
||||
#define USE_EXTI
|
||||
#define USE_GYRO_EXTI
|
||||
|
|
|
@ -50,7 +50,6 @@
|
|||
#define GYRO_1_CS_PIN PB12
|
||||
#define GYRO_1_SPI_INSTANCE SPI2
|
||||
|
||||
#define ACC_1_ALIGN CW180_DEG
|
||||
#define GYRO_1_ALIGN CW180_DEG
|
||||
|
||||
#define USE_VCP
|
||||
|
|
|
@ -47,7 +47,6 @@
|
|||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define ACC_1_ALIGN CW180_DEG
|
||||
|
||||
// MPU6000 interrupts
|
||||
#define USE_EXTI
|
||||
|
|
|
@ -42,7 +42,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_MPU6050
|
||||
#define ACC_1_ALIGN CW90_DEG
|
||||
|
||||
#define USE_BARO
|
||||
#define USE_BARO_MS5611
|
||||
|
|
|
@ -100,7 +100,6 @@
|
|||
//#define ACC_ADXL345_ALIGN CW270_DEG
|
||||
//#define ACC_MMA8452_ALIGN CW90_DEG
|
||||
//#define ACC_BMA280_ALIGN CW0_DEG
|
||||
#define ACC_1_ALIGN CW0_DEG
|
||||
|
||||
#define USE_BARO
|
||||
#define USE_BARO_MS5611 // needed for Flip32 board
|
||||
|
|
|
@ -47,7 +47,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define ACC_1_ALIGN CW0_DEG
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
|
|
|
@ -38,7 +38,6 @@
|
|||
#define USE_ACC
|
||||
#define USE_FAKE_ACC
|
||||
#define USE_ACC_MPU6050
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_FAKE_GYRO
|
||||
|
|
|
@ -38,7 +38,6 @@
|
|||
#define USE_ACC
|
||||
#define USE_FAKE_ACC
|
||||
#define USE_ACC_MPU6050
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_FAKE_GYRO
|
||||
|
|
|
@ -45,7 +45,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define ACC_1_ALIGN CW90_DEG
|
||||
|
||||
#define BARO_SPI_INSTANCE SPI1
|
||||
#define BARO_CS_PIN PA13
|
||||
|
|
|
@ -94,16 +94,12 @@
|
|||
|
||||
#if defined(OMNIBUSF4SD)
|
||||
#define GYRO_1_ALIGN CW270_DEG
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
#elif defined(XRACERF4) || defined(EXUAVF4PRO)
|
||||
#define GYRO_1_ALIGN CW90_DEG
|
||||
#define ACC_1_ALIGN CW90_DEG
|
||||
#elif defined(SYNERGYF4)
|
||||
#define GYRO_1_ALIGN CW0_DEG_FLIP
|
||||
#define ACC_1_ALIGN CW0_DEG_FLIP
|
||||
#else
|
||||
#define GYRO_1_ALIGN CW180_DEG
|
||||
#define ACC_1_ALIGN CW180_DEG
|
||||
#endif
|
||||
|
||||
// Support for iFlight OMNIBUS F4 V3
|
||||
|
@ -119,7 +115,6 @@
|
|||
#define GYRO_2_CS_PIN NONE
|
||||
#define GYRO_2_ALIGN ALIGN_DEFAULT
|
||||
#define GYRO_2_EXTI_PIN NONE
|
||||
#define ACC_2_ALIGN ALIGN_DEFAULT
|
||||
|
||||
#if !defined(SYNERGYF4) //No mag sensor on SYNERGYF4
|
||||
#define USE_MAG
|
||||
|
|
|
@ -76,14 +76,11 @@
|
|||
#endif
|
||||
|
||||
#define GYRO_1_ALIGN CW180_DEG
|
||||
#define ACC_1_ALIGN CW180_DEG
|
||||
|
||||
#if defined(OMNIBUSF4V6)
|
||||
#define GYRO_2_ALIGN CW0_DEG
|
||||
#define ACC_2_ALIGN CW0_DEG
|
||||
#else
|
||||
#define GYRO_2_ALIGN CW0_DEG_FLIP
|
||||
#define ACC_2_ALIGN CW0_DEG_FLIP
|
||||
#endif
|
||||
|
||||
#define GYRO_CONFIG_USE_GYRO_DEFAULT GYRO_CONFIG_USE_GYRO_1
|
||||
|
|
|
@ -49,7 +49,6 @@
|
|||
#define USE_ACC_SPI_MPU6500
|
||||
|
||||
#define GYRO_1_ALIGN CW0_DEG
|
||||
#define ACC_1_ALIGN CW0_DEG
|
||||
|
||||
// *************** OSD **************************
|
||||
|
||||
|
|
|
@ -64,8 +64,6 @@
|
|||
#define GYRO_2_CS_PIN PA4
|
||||
#define GYRO_1_ALIGN CW90_DEG
|
||||
#define GYRO_2_ALIGN ALIGN_DEFAULT
|
||||
#define ACC_1_ALIGN CW90_DEG
|
||||
#define ACC_2_ALIGN ALIGN_DEFAULT
|
||||
#define GYRO_1_EXTI_PIN PD0 // MPU6000
|
||||
#define GYRO_2_EXTI_PIN PE8 // ICM20608
|
||||
|
||||
|
@ -75,9 +73,7 @@
|
|||
#define GYRO_2_SPI_INSTANCE SPI3
|
||||
#define GYRO_2_CS_PIN PA15
|
||||
#define GYRO_1_ALIGN CW90_DEG
|
||||
#define ACC_1_ALIGN CW90_DEG
|
||||
#define GYRO_2_ALIGN CW270_DEG
|
||||
#define ACC_2_ALIGN CW270_DEG
|
||||
#define GYRO_1_EXTI_PIN PD0 // Assume the same as OMNIBUSF7V2, need to verify
|
||||
#define GYRO_2_EXTI_PIN PE8 // Ditto
|
||||
|
||||
|
@ -87,9 +83,7 @@
|
|||
#define GYRO_2_SPI_INSTANCE SPI1
|
||||
#define GYRO_2_CS_PIN PA4
|
||||
#define GYRO_1_ALIGN ALIGN_DEFAULT
|
||||
#define ACC_1_ALIGN ALIGN_DEFAULT
|
||||
#define GYRO_2_ALIGN ALIGN_DEFAULT
|
||||
#define ACC_2_ALIGN ALIGN_DEFAULT
|
||||
#define GYRO_1_EXTI_PIN PE8 // ICM20608
|
||||
#define GYRO_2_EXTI_PIN PD0 // MPU6000
|
||||
#endif
|
||||
|
|
|
@ -64,13 +64,11 @@
|
|||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_CS_PIN PB12 // Onboard IMU
|
||||
#define GYRO_1_ALIGN CW0_DEG
|
||||
#define ACC_1_ALIGN CW0_DEG
|
||||
#define GYRO_1_EXTI_PIN NONE
|
||||
|
||||
#define GYRO_2_SPI_INSTANCE SPI1
|
||||
#define GYRO_2_CS_PIN PA8 // External IMU
|
||||
#define GYRO_2_ALIGN CW270_DEG
|
||||
#define ACC_2_ALIGN CW270_DEG
|
||||
#define GYRO_2_EXTI_PIN NONE
|
||||
|
||||
#define GYRO_CONFIG_USE_GYRO_DEFAULT GYRO_CONFIG_USE_GYRO_1
|
||||
|
|
|
@ -46,7 +46,6 @@
|
|||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6000
|
||||
#define GYRO_1_ALIGN CW0_DEG
|
||||
#define ACC_1_ALIGN CW0_DEG
|
||||
|
||||
// DEFINE OSD
|
||||
#define USE_SPI_DEVICE_2
|
||||
|
|
|
@ -50,7 +50,6 @@
|
|||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
|
||||
#define ACC_1_ALIGN CW90_DEG
|
||||
#define GYRO_1_ALIGN CW90_DEG
|
||||
|
||||
#define USE_UART1
|
||||
|
|
|
@ -45,7 +45,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
|
||||
#define ACC_1_ALIGN CW180_DEG
|
||||
#define GYRO_1_ALIGN CW180_DEG
|
||||
|
||||
#define USE_BARO
|
||||
|
|
|
@ -99,8 +99,6 @@
|
|||
|
||||
#define GYRO_1_ALIGN CW270_DEG
|
||||
#define GYRO_2_ALIGN CW270_DEG
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
#define ACC_2_ALIGN CW270_DEG
|
||||
|
||||
#elif defined(SOULF4)
|
||||
|
||||
|
@ -108,7 +106,6 @@
|
|||
#define GYRO_1_ALIGN CW180_DEG
|
||||
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define ACC_1_ALIGN CW180_DEG
|
||||
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
|
@ -119,7 +116,6 @@
|
|||
#define GYRO_1_ALIGN CW0_DEG
|
||||
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define ACC_1_ALIGN CW0_DEG
|
||||
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
|
@ -132,7 +128,6 @@
|
|||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define ACC_1_ALIGN CW0_DEG
|
||||
|
||||
|
||||
#else
|
||||
|
@ -144,7 +139,6 @@
|
|||
#define GYRO_1_CS_PIN PA4
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
#define GYRO_1_ALIGN CW270_DEG
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
|
||||
#endif
|
||||
|
||||
|
|
|
@ -90,7 +90,6 @@
|
|||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
|
||||
#define GYRO_1_ALIGN CW0_DEG
|
||||
#define ACC_1_ALIGN CW0_DEG
|
||||
|
||||
#define USE_EXTI
|
||||
#define USE_GYRO_EXTI
|
||||
|
|
|
@ -37,7 +37,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU6500
|
||||
|
|
|
@ -53,7 +53,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define ACC_1_ALIGN CW180_DEG
|
||||
#define CONFIG_FASTLOOP_PREFERRED_ACC ACC_DEFAULT
|
||||
#define USE_TARGET_CONFIG
|
||||
|
||||
|
|
|
@ -39,7 +39,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_MPU6050
|
||||
#define ACC_1_ALIGN CW0_DEG_FLIP
|
||||
|
||||
#define USE_FLASHFS
|
||||
#define USE_FLASH_M25P16
|
||||
|
|
|
@ -42,14 +42,12 @@
|
|||
#define USE_ACC_SPI_MPU6500
|
||||
|
||||
// MPU6000
|
||||
#define ACC_1_ALIGN CW180_DEG
|
||||
#define GYRO_1_ALIGN CW180_DEG
|
||||
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
|
||||
// MPU6500
|
||||
//#define ACC_1_ALIGN CW90_DEG // XXX Must be post-flash configured
|
||||
//#define GYRO_1_ALIGN CW90_DEG // XXX Must be post-flash configured
|
||||
|
||||
#define GYRO_1_CS_PIN PA4
|
||||
|
|
|
@ -56,7 +56,6 @@
|
|||
#define GYRO_1_SPI_INSTANCE SPI1
|
||||
|
||||
#define GYRO_1_ALIGN CW90_DEG
|
||||
#define ACC_1_ALIGN CW90_DEG
|
||||
|
||||
#define USE_I2C
|
||||
#define USE_I2C_DEVICE_1
|
||||
|
|
|
@ -43,7 +43,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_MPU6050
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
|
||||
#define USE_BARO
|
||||
#define USE_BARO_MS5611
|
||||
|
|
|
@ -49,7 +49,6 @@
|
|||
|
||||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU9250
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
|
||||
#define USE_GYRO
|
||||
#define USE_GYRO_SPI_MPU9250
|
||||
|
|
|
@ -48,7 +48,6 @@
|
|||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define ACC_1_ALIGN CW0_DEG
|
||||
|
||||
#define USE_BARO
|
||||
#define USE_BARO_SPI_BMP280
|
||||
|
|
|
@ -59,7 +59,6 @@
|
|||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define USE_ACC_SPI_MPU9250
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
|
||||
#define GYRO_1_CS_PIN PB12
|
||||
#define GYRO_1_SPI_INSTANCE SPI2
|
||||
|
|
|
@ -64,7 +64,6 @@
|
|||
#define GYRO_1_ALIGN CW270_DEG
|
||||
|
||||
#define USE_ACC_MPU6500
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
|
||||
#elif defined(ZCOREF3)
|
||||
#define USE_GYRO_MPU6500
|
||||
|
@ -73,7 +72,6 @@
|
|||
|
||||
#define USE_ACC_MPU6500
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define ACC_1_ALIGN CW180_DEG
|
||||
|
||||
#define USE_SPI_DEVICE_1 // PB9,3,4,5 on AF5 SPI1 (MPU)
|
||||
|
||||
|
@ -90,7 +88,6 @@
|
|||
#define GYRO_1_ALIGN CW270_DEG
|
||||
|
||||
#define USE_ACC_SPI_MPU6000
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
|
||||
#define GYRO_1_CS_PIN PB12
|
||||
#define GYRO_1_SPI_INSTANCE SPI2
|
||||
|
@ -99,7 +96,6 @@
|
|||
#define GYRO_1_ALIGN CW270_DEG
|
||||
|
||||
#define USE_ACC_MPU6050
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
#endif
|
||||
|
||||
#if defined(FLIP32F3OSD)
|
||||
|
|
|
@ -64,7 +64,6 @@
|
|||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
|
||||
#define ACC_1_ALIGN CW180_DEG
|
||||
#define GYRO_1_ALIGN CW180_DEG
|
||||
|
||||
#define USE_BARO
|
||||
|
|
|
@ -54,7 +54,6 @@
|
|||
#define GYRO_1_ALIGN CW270_DEG
|
||||
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define ACC_1_ALIGN CW270_DEG
|
||||
#else
|
||||
|
||||
#define USE_MAG_DATA_READY_SIGNAL
|
||||
|
@ -64,7 +63,6 @@
|
|||
#define GYRO_1_ALIGN CW180_DEG
|
||||
|
||||
#define USE_ACC_MPU6500
|
||||
#define ACC_1_ALIGN CW180_DEG
|
||||
|
||||
#define USE_BARO
|
||||
#define USE_BARO_BMP280
|
||||
|
|
|
@ -45,7 +45,6 @@
|
|||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
|
||||
#define ACC_1_ALIGN CW0_DEG
|
||||
#define GYRO_1_ALIGN CW0_DEG
|
||||
|
||||
#define USE_VCP
|
||||
|
|
|
@ -58,13 +58,10 @@
|
|||
#define USE_ACC_SPI_MPU6500
|
||||
|
||||
#ifndef SPRACINGF4EVODG
|
||||
#define ACC_1_ALIGN CW0_DEG
|
||||
#define GYRO_1_ALIGN CW0_DEG
|
||||
#else
|
||||
#define GYRO_1_ALIGN CW0_DEG
|
||||
#define GYRO_2_ALIGN CW0_DEG
|
||||
#define ACC_1_ALIGN CW0_DEG
|
||||
#define ACC_2_ALIGN CW0_DEG
|
||||
#endif
|
||||
|
||||
#define USE_BARO
|
||||
|
|
|
@ -70,7 +70,6 @@
|
|||
#define USE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
|
||||
#define ACC_1_ALIGN CW0_DEG
|
||||
#define GYRO_1_ALIGN CW0_DEG
|
||||
|
||||
#define USE_BARO
|
||||
|
|
|
@ -58,16 +58,12 @@
|
|||
|
||||
#if (SPRACINGF7DUAL_REV >= 2)
|
||||
#define GYRO_1_ALIGN CW0_DEG
|
||||
#define ACC_1_ALIGN CW0_DEG
|
||||
|
||||
#define GYRO_2_ALIGN CW270_DEG
|
||||
#define ACC_2_ALIGN CW270_DEG
|
||||
#else
|
||||
#define GYRO_1_ALIGN CW180_DEG
|
||||
#define ACC_1_ALIGN CW180_DEG
|
||||
|
||||
#define GYRO_2_ALIGN CW270_DEG
|
||||
#define ACC_2_ALIGN CW270_DEG
|
||||
#endif
|
||||
|
||||
#define GYRO_CONFIG_USE_GYRO_DEFAULT GYRO_CONFIG_USE_GYRO_BOTH
|
||||
|
|
|
@ -117,7 +117,6 @@
|
|||
|
||||
#define MPU_I2C_INSTANCE (I2CDEV_1)
|
||||
#define USE_ACC_LSM303DLHC
|
||||
#define ACC_1_ALIGN CW0_DEG
|
||||
|
||||
#define USE_FAKE_ACC
|
||||
//#define USE_ACC_ADXL345
|
||||
|
|
|
@ -63,7 +63,6 @@
|
|||
|
||||
#define MPU_I2C_INSTANCE (I2CDEV_1)
|
||||
#define USE_ACC_LSM303DLHC
|
||||
#define ACC_1_ALIGN CW0_DEG
|
||||
|
||||
#define USE_MAG
|
||||
#define USE_MAG_HMC5883
|
||||
|
|
|
@ -46,7 +46,6 @@
|
|||
#define USE_ACC
|
||||
#define USE_FAKE_ACC
|
||||
#define USE_ACC_SPI_MPU6500
|
||||
#define ACC_1_ALIGN CW180_DEG_FLIP
|
||||
// ACC section -- end
|
||||
|
||||
// GYRO section -- start
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue