From 8c6a24450a8c2b1acc2d1494c48ed7f2455d5aab Mon Sep 17 00:00:00 2001 From: Leonard Hall Date: Fri, 14 Sep 2018 22:43:02 +0930 Subject: [PATCH] AC_PID: Fix D term initialisation --- libraries/AC_PID/AC_PID.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/libraries/AC_PID/AC_PID.cpp b/libraries/AC_PID/AC_PID.cpp index a3a564bd91..60184d9702 100644 --- a/libraries/AC_PID/AC_PID.cpp +++ b/libraries/AC_PID/AC_PID.cpp @@ -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; }