mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-23 08:15:30 +03:00
use Throttle Setpoint, not rcDATA(throttle), for TPA
This commit is contained in:
parent
f2559fbfd8
commit
2262dfc60e
16 changed files with 37 additions and 43 deletions
|
@ -518,6 +518,9 @@ FAST_CODE_NOINLINE void mixTable(timeUs_t currentTimeUs)
|
|||
// use scaled throttle, without dynamic idle throttle offset, as the input to antigravity
|
||||
pidUpdateAntiGravityThrottleFilter(throttle);
|
||||
|
||||
// and for TPA
|
||||
pidUpdateTpaFactor(throttle);
|
||||
|
||||
#ifdef USE_DYN_LPF
|
||||
// keep the changes to dynamic lowpass clean, without unnecessary dynamic changes
|
||||
updateDynLpfCutoffs(currentTimeUs, throttle);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue