mirror of
https://bitbucket.org/librepilot/librepilot.git
synced 2025-03-02 19:29:15 +01:00
Merge branch 'revolution' into testing
This commit is contained in:
commit
267e9fa87c
@ -318,6 +318,12 @@ static void SensorsTask(void *parameters)
|
|||||||
accel_samples ++;
|
accel_samples ++;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (gyro_samples == 0) {
|
||||||
|
PIOS_MPU6000_ReadGyros(&mpu6000_data);
|
||||||
|
error = true;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
gyro_scaling = PIOS_MPU6000_GetScale();
|
gyro_scaling = PIOS_MPU6000_GetScale();
|
||||||
accel_scaling = PIOS_MPU6000_GetAccelScale();
|
accel_scaling = PIOS_MPU6000_GetAccelScale();
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user