From 83b7bb387d62c1d12681314ea539c988a11a53da Mon Sep 17 00:00:00 2001 From: Mykhailo Kuznietsov Date: Wed, 11 Oct 2023 18:41:53 +1100 Subject: [PATCH] AP_GyroFFT: Fix some typos Fixed some typos found in the code. --- libraries/AP_GyroFFT/AP_GyroFFT.cpp | 4 ++-- libraries/AP_GyroFFT/AP_GyroFFT.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libraries/AP_GyroFFT/AP_GyroFFT.cpp b/libraries/AP_GyroFFT/AP_GyroFFT.cpp index 0ef98bfb49..886baa3749 100644 --- a/libraries/AP_GyroFFT/AP_GyroFFT.cpp +++ b/libraries/AP_GyroFFT/AP_GyroFFT.cpp @@ -362,8 +362,8 @@ void AP_GyroFFT::init(uint16_t loop_rate_hz) } } -// sample the gyros either by using a gyro window sampled at the gyro rate or making invdividual samples -// called from fast_loop thread - this function does not take out a sempahore to avoid waiting on the FFT thread +// sample the gyros either by using a gyro window sampled at the gyro rate or making individual samples +// called from fast_loop thread - this function does not take out a semaphore to avoid waiting on the FFT thread void AP_GyroFFT::sample_gyros() { if (!analysis_enabled()) { diff --git a/libraries/AP_GyroFFT/AP_GyroFFT.h b/libraries/AP_GyroFFT/AP_GyroFFT.h index c422372970..19b501b719 100644 --- a/libraries/AP_GyroFFT/AP_GyroFFT.h +++ b/libraries/AP_GyroFFT/AP_GyroFFT.h @@ -190,7 +190,7 @@ private: float update_tl_noise_center_bandwidth_hz(FrequencyPeak peak, uint8_t axis, float value) { return (_thread_state._center_bandwidth_hz_filtered[peak][axis] = _center_bandwidth_filter[peak].apply(axis, value)); } - // write single log mesages + // write single log messages void log_noise_peak(uint8_t id, FrequencyPeak peak) const; // calculate the peak noise frequency void calculate_noise(bool calibrating, const EngineConfig& config);