From 98a8e6e370360e6a3769f1f344dc90cfa3ec1808 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patrick=20Jos=C3=A9=20Pereira?= Date: Mon, 1 Feb 2021 13:26:28 -0300 Subject: [PATCH] AP_GyroFFT: Add missing const in member functions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Patrick José Pereira --- libraries/AP_GyroFFT/AP_GyroFFT.cpp | 2 +- libraries/AP_GyroFFT/AP_GyroFFT.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libraries/AP_GyroFFT/AP_GyroFFT.cpp b/libraries/AP_GyroFFT/AP_GyroFFT.cpp index 305002aff7..55b7e3b51d 100644 --- a/libraries/AP_GyroFFT/AP_GyroFFT.cpp +++ b/libraries/AP_GyroFFT/AP_GyroFFT.cpp @@ -841,7 +841,7 @@ void AP_GyroFFT::write_log_messages() // @Field: EnZ: power spectral density bin energy of the peak on roll // write a single log message -void AP_GyroFFT::log_noise_peak(uint8_t id, FrequencyPeak peak, float notch) +void AP_GyroFFT::log_noise_peak(uint8_t id, FrequencyPeak peak, float notch) const { AP::logger().Write("FTN2", "TimeUS,Id,PkX,PkY,PkZ,DnF,BwX,BwY,BwZ,EnX,EnY,EnZ", "s#zzzzzzz---", "F-----------", "QBffffffffff", AP_HAL::micros64(), diff --git a/libraries/AP_GyroFFT/AP_GyroFFT.h b/libraries/AP_GyroFFT/AP_GyroFFT.h index 906ee96ef6..2ea6e58e16 100644 --- a/libraries/AP_GyroFFT/AP_GyroFFT.h +++ b/libraries/AP_GyroFFT/AP_GyroFFT.h @@ -176,7 +176,7 @@ private: return (_thread_state._center_bandwidth_hz_filtered[peak][axis] = _center_bandwidth_filter[peak].apply(axis, value)); } // write single log mesages - void log_noise_peak(uint8_t id, FrequencyPeak peak, float notch_freq); + void log_noise_peak(uint8_t id, FrequencyPeak peak, float notch_freq) const; // calculate the peak noise frequency void calculate_noise(bool calibrating, const EngineConfig& config); // calculate noise peaks based on energy and history