1
0
Fork 0
mirror of https://github.com/betaflight/betaflight.git synced 2025-07-12 19:10:32 +03:00

Fix "BIT_GYRO" definition error. (#8952)

Fix "BIT_GYRO" definition error.
This commit is contained in:
Michael Keller 2019-09-29 11:43:01 +13:00 committed by GitHub
commit fcaa16cd7d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -78,9 +78,9 @@ static void mpu6000AccAndGyroInit(gyroDev_t *gyro);
#define BIT_RAW_RDY_EN 0x01 #define BIT_RAW_RDY_EN 0x01
#define BIT_I2C_IF_DIS 0x10 #define BIT_I2C_IF_DIS 0x10
#define BIT_INT_STATUS_DATA 0x01 #define BIT_INT_STATUS_DATA 0x01
#define BIT_GYRO 3 #define BIT_GYRO 0x04
#define BIT_ACC 2 #define BIT_ACC 0x02
#define BIT_TEMP 1 #define BIT_TEMP 0x01
// Product ID Description for MPU6000 // Product ID Description for MPU6000
// high 4 bits low 4 bits // high 4 bits low 4 bits
@ -195,7 +195,7 @@ static void mpu6000AccAndGyroInit(gyroDev_t *gyro)
spiBusWriteRegister(&gyro->bus, MPU_RA_SMPLRT_DIV, gyro->mpuDividerDrops); spiBusWriteRegister(&gyro->bus, MPU_RA_SMPLRT_DIV, gyro->mpuDividerDrops);
delayMicroseconds(15); delayMicroseconds(15);
// Gyro +/- 1000 DPS Full Scale // Gyro +/- 2000 DPS Full Scale
spiBusWriteRegister(&gyro->bus, MPU_RA_GYRO_CONFIG, INV_FSR_2000DPS << 3); spiBusWriteRegister(&gyro->bus, MPU_RA_GYRO_CONFIG, INV_FSR_2000DPS << 3);
delayMicroseconds(15); delayMicroseconds(15);