Copter: fixed logging of IMT without raw logging

This commit is contained in:
Andrew Tridgell 2015-06-17 11:57:06 +10:00
parent f831c16238
commit db4ac68f5e

View File

@ -402,6 +402,8 @@ void Copter::full_rate_logging_loop()
{
if (should_log(MASK_LOG_IMU_FAST) && !should_log(MASK_LOG_IMU_RAW)) {
DataFlash.Log_Write_IMU(ins);
}
if (should_log(MASK_LOG_IMU_FAST) || should_log(MASK_LOG_IMU_RAW)) {
DataFlash.Log_Write_IMUDT(ins);
}
}