Browse Source

AC_PID: Fix D term initialisation

master
Leonard Hall 6 years ago committed by Andrew Tridgell
parent
commit
8c6a24450a
  1. 1
      libraries/AC_PID/AC_PID.cpp

1
libraries/AC_PID/AC_PID.cpp

@ -119,6 +119,7 @@ void AC_PID::set_input_filter_d(float input) @@ -119,6 +119,7 @@ void AC_PID::set_input_filter_d(float input)
// reset input filter to value received
if (_flags._reset_filter) {
_flags._reset_filter = false;
_input = input;
_derivative = 0.0f;
}

Loading…
Cancel
Save