mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-11 10:28:29 -04:00
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
|
// add in derivative component
|
||||||
return _kd * _derivative;
|
return _kd * _derivative;
|
||||||
}
|
}
|
||||||
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
int32_t AC_PID::get_pi(int32_t error, float dt)
|
int32_t AC_PID::get_pi(int32_t error, float dt)
|
||||||
|
Loading…
Reference in New Issue
Block a user