Professional Documents
Culture Documents
Mathemtical Modelling and Matlab Implementation
Mathemtical Modelling and Matlab Implementation
Constraints
Following are the constraints of this project
Result
P_ball =
0.9561
------
s^2
Step response
Code
m = 0.0027;
R = 0.02;
g = -9.8;
L = 0.3;
J = 9.99e-6;
num = -(m*g/1/(J/R^2+m)/s^2);
denum = {1 0 0};
G = tf(num,denum);
kp = 200;
ki = 0.5;
kd = 1200;
C = pid(kp,ki,kd);
sysC = feedback(C*G,1);
step(sysC)
Result
RiseTime: 0.0019
TransientTime: 0.0034
SettlingTime: 0.0034
SettlingMin: 0.9001
SettlingMax: 0.9995
Overshoot: 0
Undershoot: 0
Peak: 0.9995
PeakTime: 0.0064