mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 04:45:24 +03:00
NAZE32_SP - Enable MPU6500 driver.
This commit is contained in:
parent
8f9a553a9e
commit
f5895b762f
1 changed files with 2 additions and 4 deletions
|
@ -170,8 +170,7 @@ bool detectGyro(uint16_t gyroLpf)
|
||||||
|
|
||||||
#ifdef USE_GYRO_SPI_MPU6500
|
#ifdef USE_GYRO_SPI_MPU6500
|
||||||
#ifdef NAZE
|
#ifdef NAZE
|
||||||
// TODO only enable if NAZE32_SP is detected
|
if (hardwareRevision == NAZE32_SP && mpu6500SpiGyroDetect(&gyro, gyroLpf)) {
|
||||||
if (false && mpu6500SpiGyroDetect(&gyro, gyroLpf)) {
|
|
||||||
gyroAlign = CW0_DEG;
|
gyroAlign = CW0_DEG;
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -293,8 +292,7 @@ retry:
|
||||||
#ifdef USE_ACC_SPI_MPU6500
|
#ifdef USE_ACC_SPI_MPU6500
|
||||||
case ACC_SPI_MPU6500:
|
case ACC_SPI_MPU6500:
|
||||||
#ifdef NAZE
|
#ifdef NAZE
|
||||||
// TODO only enable if NAZE32_SP is detected
|
if (hardwareRevision == NAZE32_SP && mpu6500SpiAccDetect(&acc)) {
|
||||||
if (false && mpu6500SpiAccDetect(&acc)) {
|
|
||||||
#else
|
#else
|
||||||
if (mpu6500SpiAccDetect(&acc)) {
|
if (mpu6500SpiAccDetect(&acc)) {
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue