Created
June 22, 2021 20:33
-
-
Save HadiElnemr/1a2ce66db2d740ed62a1bfa5f7e2bb1b to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
clear, clc | |
num = [11.11 0 0]; | |
den = [1 0 -9.81/11.11]; | |
plant = tf(num,den); | |
kp=65; | |
ki=1.4; | |
kd=280; | |
PID = pid(kp,ki,kd) | |
ol = series(plant, PID) | |
cl = feedback(ol,1) | |
step(plant) | |
%impulse(plant) | |
%rlocus(plant) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment