mirror of
https://github.com/betaflight/betaflight.git
synced 2025-07-26 09:45:37 +03:00
updated dynThrottle curve
This commit is contained in:
parent
b1af9befe5
commit
988024ee4e
1 changed files with 1 additions and 1 deletions
|
@ -625,7 +625,7 @@ float dynThrottle(float throttle) {
|
||||||
void dynLpfGyroUpdate(float throttle)
|
void dynLpfGyroUpdate(float throttle)
|
||||||
{
|
{
|
||||||
if (gyro.dynLpfFilter != DYN_LPF_NONE) {
|
if (gyro.dynLpfFilter != DYN_LPF_NONE) {
|
||||||
const unsigned int cutoffFreq = fmax(dynThrottle(throttle) * gyro.dynLpfMax, gyro.dynLpfMin);
|
const unsigned int cutoffFreq = (gyro.dynLpfMax - gyro.dynLpfMin) * dynThrottle(throttle) + gyro.dynLpfMin;
|
||||||
|
|
||||||
if (gyro.dynLpfFilter == DYN_LPF_PT1) {
|
if (gyro.dynLpfFilter == DYN_LPF_PT1) {
|
||||||
DEBUG_SET(DEBUG_DYN_LPF, 2, cutoffFreq);
|
DEBUG_SET(DEBUG_DYN_LPF, 2, cutoffFreq);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue