fixed missing return in D value

This commit is contained in:
Andrew Tridgell 2012-02-12 22:25:23 +11:00
parent 9fe8c079e7
commit 4a9cb731d4
1 changed files with 1 additions and 0 deletions

View File

@ -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)