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

Zero PID error integral if there is any roll input #134

Merged
merged 1 commit into from
Jun 9, 2022

Conversation

taniwha
Copy link

@taniwha taniwha commented Jun 9, 2022

Unless the error integral is zeroed, the pilot will wind up fighting the
roll stabilizer while banking, and then due to the accumulated error,
the plane will start contorting wildly (and possibly catastrophically)
as the PID tries to correct the error.

The input threshold of 0.01 seems to work well even with a bit of slop
in a joystick's deadzone, but might need tuning.

Unless the error integral is zeroed, the pilot will wind up fighting the
roll stabilizer while banking, and then due to the accumulated error,
the plane will start contorting wildly (and possibly catastrophically)
as the PID tries to correct the error.

The input threshold of 0.01 seems to work well even with a bit of slop
in a joystick's deadzone, but might need tuning.
@dkavolis
Copy link
Owner

dkavolis commented Jun 9, 2022

Thanks!

@dkavolis dkavolis merged commit f37e9a7 into dkavolis:master Jun 9, 2022
@taniwha taniwha deleted the roll-stability-fix branch June 9, 2022 13:54
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.

None yet

2 participants