AP_GyroFFT: update harmonics to uint32

This commit is contained in:
Iampete1 2023-07-15 19:37:34 +01:00 committed by Randy Mackay
parent e35a459090
commit 85234b5b18

View File

@ -273,7 +273,7 @@ void AP_GyroFFT::init(uint16_t loop_rate_hz)
// check for harmonics across all harmonic notch filters
// note that we only allow one harmonic notch filter linked to the FFT code
uint8_t harmonics = 0;
uint32_t harmonics = 0;
uint8_t num_notches = 0;
for (auto &notch : _ins->harmonic_notches) {
if (notch.params.enabled()) {