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

Arg equation doesn't match Bode plot? #18

Open
cnpcshangbo opened this issue Sep 14, 2018 · 3 comments
Open

Arg equation doesn't match Bode plot? #18

cnpcshangbo opened this issue Sep 14, 2018 · 3 comments

Comments

@cnpcshangbo
Copy link
Owner

cnpcshangbo commented Sep 14, 2018

From out derivation,

    APM1 = atan2(ki*w^lambda*sin(pi*lambda/2),(1 ki*w^lambda*cos(pi*lambda/2))) atan2(1,T1*w).

It should have the same results as our Bode phase plot, however they don't match for the FOPD controller.

@cnpcshangbo
Copy link
Owner Author

Finally, I figured out where the bug is.
It is because I used different FO controller models.
At the definition section, I used:

C_FO=Kp Ki/s^lambda;

However, the latter derivation used:

C_FO=Kp Ki*s^lambda;

Therefore, I need to redefine the C_FO using C_FO=Kp Kd*s^lambda to avoid confusion.

@cnpcshangbo
Copy link
Owner Author

image
image
I'll figure out why FOPD vibrates after I replace ki with kd.

@cnpcshangbo
Copy link
Owner Author

Time-domain good now. Lamda in Simulink model should not have negative symbol.

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

No branches or pull requests

1 participant