mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-18 13:55:18 +03:00
Added MPU9250 ACC detection.
This commit is contained in:
parent
8c3622eb3a
commit
1300952472
3 changed files with 25 additions and 10 deletions
|
@ -384,6 +384,20 @@ retry:
|
|||
}
|
||||
#endif
|
||||
; // fallthrough
|
||||
case ACC_MPU9250:
|
||||
#ifdef USE_ACC_SPI_MPU9250
|
||||
|
||||
if (mpu9250SpiAccDetect(&acc))
|
||||
{
|
||||
accHardware = ACC_MPU9250;
|
||||
#ifdef ACC_MPU9250_ALIGN
|
||||
accAlign = ACC_MPU9250_ALIGN;
|
||||
#endif
|
||||
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
; // fallthrough
|
||||
case ACC_FAKE:
|
||||
#ifdef USE_FAKE_ACC
|
||||
if (fakeAccDetect(&acc)) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue