mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-22 00:28:30 -04:00
Filter: remove unnecessary fmaxf
This commit is contained in:
parent
91856b1d8c
commit
458c46353d
@ -119,7 +119,7 @@ float SlewLimiter::modifier(float sample, float dt)
|
||||
// Calculate the gain adjustment
|
||||
float mod;
|
||||
if (_oscillation_slew_rate > slew_rate_max) {
|
||||
mod = slew_rate_max / fmaxf(_oscillation_slew_rate, slew_rate_max);
|
||||
mod = slew_rate_max / _oscillation_slew_rate;
|
||||
} else {
|
||||
mod = 1.0f;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user