mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-16 21:05:35 +03:00
fix error in biquad coefficients calculation
improve biquad precision and performance by using direct form 2 transposed instead of direct form 1 keep float results for luxfloat pid controller, instead of casting twice
This commit is contained in:
parent
e9963f454b
commit
f62ec043cf
5 changed files with 24 additions and 26 deletions
|
@ -202,7 +202,7 @@ static void pidLuxFloat(pidProfile_t *pidProfile, controlRateConfig_t *controlRa
|
|||
}
|
||||
}
|
||||
|
||||
gyroRate = gyroADC[axis] / 4.0f; // gyro output scaled to rewrite scale
|
||||
gyroRate = gyroADCf[axis] / 4.0f; // gyro output scaled to rewrite scale
|
||||
|
||||
// --------low-level gyro-based PID. ----------
|
||||
// Used in stand-alone mode for ACRO, controlled by higher level regulators in other modes
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue