From 4a9cb731d4e13da5666e062cc28315b57068a7da Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Sun, 12 Feb 2012 22:25:23 +1100 Subject: [PATCH] fixed missing return in D value --- 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 a50f10d6a0..a2e71a1135 100755 --- a/libraries/AC_PID/AC_PID.cpp +++ b/libraries/AC_PID/AC_PID.cpp @@ -42,6 +42,7 @@ int32_t AC_PID::get_d(int32_t input, float dt) // add in derivative component return _kd * _derivative; } + return 0; } int32_t AC_PID::get_pi(int32_t error, float dt)