Copter: log FFT messages at 25Hz if fast filter tuning is set

This commit is contained in:
Andy Piper 2022-09-26 20:02:44 +01:00 committed by Andrew Tridgell
parent 7acdaf2dd0
commit b19b14404b
1 changed files with 7 additions and 2 deletions

View File

@ -579,6 +579,11 @@ void Copter::twentyfive_hz_logging()
g2.arot.Log_Write_Autorotation();
}
#endif
#if HAL_GYROFFT_ENABLED
if (should_log(MASK_LOG_FTN_FAST)) {
gyro_fft.write_log_messages();
}
#endif
}
// three_hz_loop - 3.3hz loop
@ -725,10 +730,10 @@ void Copter::update_altitude()
Log_Write_Control_Tuning();
if (!should_log(MASK_LOG_FTN_FAST)) {
AP::ins().write_notch_log_messages();
}
#if HAL_GYROFFT_ENABLED
gyro_fft.write_log_messages();
gyro_fft.write_log_messages();
#endif
}
}
}