Copter: log FFT messages at 25Hz if fast filter tuning is set
This commit is contained in:
parent
7acdaf2dd0
commit
b19b14404b
@ -579,6 +579,11 @@ void Copter::twentyfive_hz_logging()
|
|||||||
g2.arot.Log_Write_Autorotation();
|
g2.arot.Log_Write_Autorotation();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
#if HAL_GYROFFT_ENABLED
|
||||||
|
if (should_log(MASK_LOG_FTN_FAST)) {
|
||||||
|
gyro_fft.write_log_messages();
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
// three_hz_loop - 3.3hz loop
|
// three_hz_loop - 3.3hz loop
|
||||||
@ -725,10 +730,10 @@ void Copter::update_altitude()
|
|||||||
Log_Write_Control_Tuning();
|
Log_Write_Control_Tuning();
|
||||||
if (!should_log(MASK_LOG_FTN_FAST)) {
|
if (!should_log(MASK_LOG_FTN_FAST)) {
|
||||||
AP::ins().write_notch_log_messages();
|
AP::ins().write_notch_log_messages();
|
||||||
}
|
|
||||||
#if HAL_GYROFFT_ENABLED
|
#if HAL_GYROFFT_ENABLED
|
||||||
gyro_fft.write_log_messages();
|
gyro_fft.write_log_messages();
|
||||||
#endif
|
#endif
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user