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

I-Term Lock for Fixed Wing #9905

Merged
merged 19 commits into from May 20, 2024
Merged

I-Term Lock for Fixed Wing #9905

merged 19 commits into from May 20, 2024

Conversation

DzikuVx
Copy link
Member

@DzikuVx DzikuVx commented Apr 7, 2024

The I-Term Lock aims to solve the I-term accumulation and ultimately a bounceback on Fixed Wing platforms. Functionally, it's a counterpart of Multirotor I-Term Relax but more suited for Fixed Wings.

I-Term Lock is a hybrid approach to a fixed wing stbilization problem: sabilized + manual depending on current situation.

When pilot is not moving roll and pitch sticks, INAV attempts to stabilize the airplane with a standard PIDFF controller.

When pilot moves the sticks, following happens:

  1. P-Term and D-Term are attenuated with a bell curve: no attenuation at stick-center and full attenuation at approximately 50% of rate target
  2. I-Term is atenuated in a similar way for as long as error (setpoint - gyro) is low
  3. When target reached a threshold (20% of max rate) and error is above 10% of max rate, I-Term is completely attenuated until error is low again.
  4. FF-term is never attenuated

As a result, UAV feels like fully stablized near stick center and like in Manual mode when executing fast maneuvers.

https://www.youtube.com/watch?v=lQqi4Ovrw80

@DzikuVx DzikuVx changed the title Run damping of FW with stick movements I-Term Lock for Fixed Wing Apr 22, 2024
@DzikuVx DzikuVx added the Release Notes Add this when a PR needs to be mentioned in the release notes label Apr 22, 2024
@DzikuVx DzikuVx added this to the 8.0 milestone Apr 22, 2024
@DzikuVx DzikuVx merged commit 4d5207e into master May 20, 2024
16 checks passed
@DzikuVx DzikuVx deleted the dzikuvx-fixed-wing-pid-dampener branch May 20, 2024 06:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Release Notes Add this when a PR needs to be mentioned in the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant