From 263676d61b7e7a98b548acddb903b1cf96f80cc2 Mon Sep 17 00:00:00 2001 From: Martin Budden Date: Fri, 24 Mar 2017 16:49:03 +0000 Subject: [PATCH] Reordered acc and gyro defines in revo target. --- src/main/target/REVO/target.h | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) diff --git a/src/main/target/REVO/target.h b/src/main/target/REVO/target.h index 3b558a70c..f2891dac1 100644 --- a/src/main/target/REVO/target.h +++ b/src/main/target/REVO/target.h @@ -76,42 +76,42 @@ #define MPU6500_CS_PIN PA4 #define MPU6500_SPI_INSTANCE SPI1 -#if defined(SOULF4) +#define GYRO #define ACC -#define USE_ACC_SPI_MPU6000 + +#if defined(SOULF4) +#define USE_GYRO_SPI_MPU6000 #define GYRO_MPU6000_ALIGN CW180_DEG -#define GYRO -#define USE_GYRO_SPI_MPU6000 +#define USE_ACC_SPI_MPU6000 #define ACC_MPU6000_ALIGN CW180_DEG #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_SPI_MPU6500 #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_SPI_MPU6500 -#define ACC_MPU6500_ALIGN CW270_DEG +#define ACC_MPU6500_ALIGN CW0_DEG + +#else -#define GYRO #define USE_GYRO_SPI_MPU6000 -#define ACC_MPU6000_ALIGN CW270_DEG +#define GYRO_MPU6000_ALIGN CW270_DEG #define USE_GYRO_MPU6500 #define USE_GYRO_SPI_MPU6500 #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 // MPU6000 interrupts