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

Merge branch 'revolution' into sim

This commit is contained in:
James Cotton 2012-04-14 14:12:03 -05:00
commit a86e75bc99

View File

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