mirror of https://github.com/ArduPilot/ardupilot
fixed missing return in D value
This commit is contained in:
parent
9fe8c079e7
commit
4a9cb731d4
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue