mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-20 23:05:19 +03:00
Add MPU9150 driver.
This is a almost a complete clone of the 6050 - needs cleanup and de-duplication.
This commit is contained in:
parent
e43348598a
commit
fed6df275f
7 changed files with 411 additions and 5 deletions
|
@ -109,6 +109,8 @@ static void applyGyroZero(void)
|
|||
|
||||
void gyroGetADC(void)
|
||||
{
|
||||
// FIXME When gyro.read() fails due to i2c or other error gyroZero is continually re-applied to gyroADC resulting in a old reading that gets worse over time.
|
||||
|
||||
// range: +/- 8192; +/- 2000 deg/sec
|
||||
gyro.read(gyroADC);
|
||||
alignSensors(gyroADC, gyroADC, gyroAlign);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue