AP_InertialSensor: fixed num_filters to be uint16_t
max is more than 256
This commit is contained in:
parent
ae75ea94eb
commit
08ccead215
@ -1012,7 +1012,7 @@ AP_InertialSensor::init(uint16_t loop_rate)
|
||||
sensors_used += _use(i);
|
||||
}
|
||||
|
||||
uint8_t num_filters = 0;
|
||||
uint16_t num_filters = 0;
|
||||
for (auto ¬ch : harmonic_notches) {
|
||||
// calculate number of notches we might want to use for harmonic notch
|
||||
if (notch.params.enabled() || fft_enabled) {
|
||||
|
Loading…
Reference in New Issue
Block a user