mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-13 19:40:31 +03:00
updated dlpf curve math, now it goes from straight to positive
This commit is contained in:
parent
f96f9cb6e7
commit
2e9516bb63
1 changed files with 1 additions and 1 deletions
|
@ -1632,7 +1632,7 @@ void dynLpfDTermUpdate(float throttle)
|
|||
float dynDtermLpfCutoffFreq(float throttle, uint16_t dynLpfMin, uint16_t dynLpfMax, uint8_t expo) {
|
||||
const float expof = expo / 10.0f;
|
||||
static float curve;
|
||||
curve = 2 * throttle * (1 - throttle) * expof + powerf(throttle, 2);
|
||||
curve = throttle * (1 - throttle) * expof + throttle;
|
||||
return (dynLpfMax - dynLpfMin) * curve + dynLpfMin;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue