Skip to content

Commit

Permalink
AP_GyroFFT: update harmonics to uint32
Browse files Browse the repository at this point in the history
  • Loading branch information
IamPete1 authored and rmackay9 committed Oct 9, 2023
1 parent e35a459 commit 85234b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libraries/AP_GyroFFT/AP_GyroFFT.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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()) {
Expand Down

0 comments on commit 85234b5

Please sign in to comment.