1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-12-02 10:24:11 +01:00

Merge branch 'revolution' into testing

This commit is contained in:
James Cotton 2012-04-14 14:40:11 -05:00
commit 267e9fa87c

View File

@ -317,6 +317,12 @@ static void SensorsTask(void *parameters)
gyro_samples ++;
accel_samples ++;
}
if (gyro_samples == 0) {
PIOS_MPU6000_ReadGyros(&mpu6000_data);
error = true;
continue;
}
gyro_scaling = PIOS_MPU6000_GetScale();
accel_scaling = PIOS_MPU6000_GetAccelScale();