1
0
mirror of https://bitbucket.org/librepilot/librepilot.git synced 2025-01-17 02:52:12 +01:00

For L3GD20 sensor task on revo update gyro once per physical sample

This commit is contained in:
James Cotton 2012-01-26 23:29:12 -06:00
parent f311700804
commit b4435d0b35

View File

@ -384,8 +384,11 @@ static void SensorsTask(void *parameters)
}
PIOS_WDG_UpdateFlag(PIOS_WDG_SENSORS);
// For L3GD20 which runs at 760 then one cycle per sample
#if defined(PIOS_INCLUDE_MPU6000) && !defined(PIOS_INCLUDE_L3GD20)
vTaskDelayUntil(&lastSysTime, SENSOR_PERIOD / portTICK_RATE_MS);
#endif
}
}