mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-25 17:25:20 +03:00
Reordered acc and gyro defines in revo target.
This commit is contained in:
parent
e59b48cf6b
commit
263676d61b
1 changed files with 16 additions and 16 deletions
|
@ -76,42 +76,42 @@
|
||||||
#define MPU6500_CS_PIN PA4
|
#define MPU6500_CS_PIN PA4
|
||||||
#define MPU6500_SPI_INSTANCE SPI1
|
#define MPU6500_SPI_INSTANCE SPI1
|
||||||
|
|
||||||
#if defined(SOULF4)
|
#define GYRO
|
||||||
#define ACC
|
#define ACC
|
||||||
#define USE_ACC_SPI_MPU6000
|
|
||||||
|
#if defined(SOULF4)
|
||||||
|
#define USE_GYRO_SPI_MPU6000
|
||||||
#define GYRO_MPU6000_ALIGN CW180_DEG
|
#define GYRO_MPU6000_ALIGN CW180_DEG
|
||||||
|
|
||||||
#define GYRO
|
#define USE_ACC_SPI_MPU6000
|
||||||
#define USE_GYRO_SPI_MPU6000
|
|
||||||
#define ACC_MPU6000_ALIGN CW180_DEG
|
#define ACC_MPU6000_ALIGN CW180_DEG
|
||||||
|
|
||||||
#elif defined(REVOLT) || defined(PODIUMF4)
|
#elif defined(REVOLT) || defined(PODIUMF4)
|
||||||
|
|
||||||
#define USE_ACC_MPU6500
|
|
||||||
#define USE_ACC_SPI_MPU6500
|
|
||||||
#define ACC_MPU6500_ALIGN CW0_DEG
|
|
||||||
|
|
||||||
#define USE_GYRO_MPU6500
|
#define USE_GYRO_MPU6500
|
||||||
#define USE_GYRO_SPI_MPU6500
|
#define USE_GYRO_SPI_MPU6500
|
||||||
#define GYRO_MPU6500_ALIGN CW0_DEG
|
#define GYRO_MPU6500_ALIGN CW0_DEG
|
||||||
|
|
||||||
#else
|
|
||||||
#define ACC
|
|
||||||
#define USE_ACC_SPI_MPU6000
|
|
||||||
#define GYRO_MPU6000_ALIGN CW270_DEG
|
|
||||||
|
|
||||||
#define USE_ACC_MPU6500
|
#define USE_ACC_MPU6500
|
||||||
#define USE_ACC_SPI_MPU6500
|
#define USE_ACC_SPI_MPU6500
|
||||||
#define ACC_MPU6500_ALIGN CW270_DEG
|
#define ACC_MPU6500_ALIGN CW0_DEG
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
#define GYRO
|
|
||||||
#define USE_GYRO_SPI_MPU6000
|
#define USE_GYRO_SPI_MPU6000
|
||||||
#define ACC_MPU6000_ALIGN CW270_DEG
|
#define GYRO_MPU6000_ALIGN CW270_DEG
|
||||||
|
|
||||||
#define USE_GYRO_MPU6500
|
#define USE_GYRO_MPU6500
|
||||||
#define USE_GYRO_SPI_MPU6500
|
#define USE_GYRO_SPI_MPU6500
|
||||||
#define GYRO_MPU6500_ALIGN CW270_DEG
|
#define GYRO_MPU6500_ALIGN CW270_DEG
|
||||||
|
|
||||||
|
#define USE_ACC_SPI_MPU6000
|
||||||
|
#define ACC_MPU6000_ALIGN CW270_DEG
|
||||||
|
|
||||||
|
#define USE_ACC_MPU6500
|
||||||
|
#define USE_ACC_SPI_MPU6500
|
||||||
|
#define ACC_MPU6500_ALIGN CW270_DEG
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// MPU6000 interrupts
|
// MPU6000 interrupts
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue