mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-04-08 00:53:48 +02:00
Kickstart MPU6000 if there is no data
This commit is contained in:
parent
a0d1b00ade
commit
b0ef456ccb
@ -319,6 +319,7 @@ static void SensorsTask(void *parameters)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (gyro_samples == 0) {
|
if (gyro_samples == 0) {
|
||||||
|
PIOS_MPU6000_ReadGyros(&mpu6000_data);
|
||||||
error = true;
|
error = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user