Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings
Discussion options

According to the limit variable, which is used for antiwindup.
The limit variable was used in two conditions, L33 and L41

float integral = integral_prev + I*Ts*0.5f*(error + error_prev); // antiwindup - limit the output integral = _constrain(integral, -limit, limit);

and
// sum all the components float output = proportional + integral + derivative; // antiwindup - limit the output variable output = _constrain(output, -limit, limit);

This is quite incorrect since the anti-windup also has the importance role in reducing the overshoot for the integral term.

And the integral term limit is the result of the multiplication of the I gain, it has a difference reference?

Should we split it into two separated veriable?

You must be logged in to vote

Replies: 0 comments

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
1 participant
Morty Proxy This is a proxified and sanitized view of the page, visit original site.