mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-22 07:45:29 +03:00
FF update including second order fitlering of boost, tidying up etc
Include default to no averaging
This commit is contained in:
parent
1c3346bae1
commit
73663f7fae
6 changed files with 73 additions and 95 deletions
|
@ -204,7 +204,6 @@ void pidInitFilters(const pidProfile_t *pidProfile)
|
|||
pt1FilterInit(&pidRuntime.antiGravityThrottleLpf, pt1FilterGain(ANTI_GRAVITY_THROTTLE_FILTER_CUTOFF, pidRuntime.dT));
|
||||
|
||||
pidRuntime.ffBoostFactor = (float)pidProfile->ff_boost / 10.0f;
|
||||
pidRuntime.ffSpikeLimitInverse = pidProfile->ff_spike_limit ? 1.0f / ((float)pidProfile->ff_spike_limit / 10.0f) : 0.0f;
|
||||
}
|
||||
|
||||
void pidInit(const pidProfile_t *pidProfile)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue