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)