1
0
Fork 0
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:
supiiik 2018-05-22 20:01:25 +02:00 committed by GitHub
parent e4846f2ecc
commit 6c15904a77
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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