AC_PID: Fix D term initialisation

This commit is contained in:
Leonard Hall 2018-09-14 22:43:02 +09:30 committed by Andrew Tridgell
parent d1ba6ba725
commit 88ded7ee67
1 changed files with 1 additions and 0 deletions

View File

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