mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-19 22:35:23 +03:00
Constrained D-term transition upper-bound (#5701)
This commit is contained in:
parent
f53d79d13f
commit
f24941feb7
1 changed files with 1 additions and 1 deletions
|
@ -618,7 +618,7 @@ void pidController(const pidProfile_t *pidProfile, const rollAndPitchTrims_t *an
|
|||
// -----calculate D component
|
||||
if (axis != FD_YAW) {
|
||||
// no transition if relaxFactor == 0
|
||||
float transition = relaxFactor > 0 ? getRcDeflectionAbs(axis) * relaxFactor : 1;
|
||||
float transition = relaxFactor > 0 ? MIN(1.f, getRcDeflectionAbs(axis) * relaxFactor) : 1;
|
||||
|
||||
// Divide rate change by deltaT to get differential (ie dr/dt)
|
||||
const float delta = (
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue