diff --git a/ArduCopter/Attitude.pde b/ArduCopter/Attitude.pde index f4cc3b9ab5..38ae8970b1 100644 --- a/ArduCopter/Attitude.pde +++ b/ArduCopter/Attitude.pde @@ -190,7 +190,7 @@ get_nav_throttle(int32_t z_error) rate_d = ((rate_d + climb_rate)>>1) * 1; // replace with gain // slight adjustment to alt hold output - output -= rate_d; + output -= constrain(rate_d, -25, 25); // light filter of output output = (old_output * 3 + output) / 4;