1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2024-11-30 08: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

@ -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();