mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 14:25:20 +03:00
Update pid.c
This commit is contained in:
parent
e4846f2ecc
commit
6c15904a77
1 changed files with 1 additions and 1 deletions
|
@ -318,7 +318,7 @@ void pidInitConfig(const pidProfile_t *pidProfile)
|
|||
}
|
||||
|
||||
dtermSetpointWeight = pidProfile->dtermSetpointWeight / 100.0f;
|
||||
if (dtermSetpointWeight > 2.0f) {
|
||||
if (dtermSetpointWeight > 2.0f) {
|
||||
dtermSetpointWeight = 10 * (dtermSetpointWeight - 2.0f) + 2.0f;
|
||||
}
|
||||
if (pidProfile->setpointRelaxRatio == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue