Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dynamic gyro LPF #6322

Merged
merged 11 commits into from
Dec 30, 2020
Merged

Dynamic gyro LPF #6322

merged 11 commits into from
Dec 30, 2020

Conversation

DzikuVx
Copy link
Member

@DzikuVx DzikuVx commented Nov 19, 2020

No description provided.

@DzikuVx DzikuVx added this to the 2.7 milestone Nov 19, 2020
@DzikuVx DzikuVx changed the title Dzikuvx dynamic gyro lpf Dynamic gyro LPF Nov 19, 2020
Comment on lines 539 to 543
if (gyroConfig()->gyroDynamicLpFCurveExpo > 0) {
cutoffFreq = dynLpfCutoffFreq(throttle, gyroConfig()->gyroDynamicLpfMinHz, gyroConfig()->gyroDynamicLpfMaxHz, gyroConfig()->gyroDynamicLpFCurveExpo);
} else {
cutoffFreq = fmax(dynThrottle(throttle) * gyroConfig()->gyroDynamicLpfMaxHz, gyroConfig()->gyroDynamicLpfMinHz);
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I suggest to use only the new curve with 1-10 setting

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was wondering if to port the legacy one. Now I know. Thanks for the hint!

@DzikuVx DzikuVx merged commit 4111a8a into master Dec 30, 2020
@DzikuVx DzikuVx deleted the dzikuvx-dynamic-gyro-lpf branch December 30, 2020 17:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants