Control System Steady State Error for VTOL
Mostrar comentarios más antiguos
I am designing the control system that have a crossover frequency is wc=6 rad/s, 90 degrees least phase margin,and steady-state error must be zero.
but I am having steady state error equal to 1, I am trying to make it 0 but it is not working.
need guidance on what I am doing wrong.
Equations that I am using (values of a and b are random):

My code:
clc
clear
close
%%
wc=6;
G=tf(0.51,[0.23 0.38 1]);
[mag,pahse]=bode(G,wc);
Kp=1/mag;
L=Kp*G;
pzmap(G)
axis ([-1 1 -3 3])
%%
margin(G); grid;
hold on
margin(L);
legend('G(s)','L(s)')
hold off
%%
%klead
a=10;
klead1=tf([a wc],[1 a*wc]);
klead2=tf([a wc],[1 a*wc]);
Klead=klead1*klead2;
L=Kp*G*Klead;
figure(2)
margin(L); grid;
%%
%klag
b=1;
Klag=tf([1 b],[1 0]);
L=Kp*G*Klead*Klag;
figure(3)
margin(L); grid;
e=feedback(L,1)
figure(4)
step(e); grid;
legend('Kp=0.0669')
Respuesta aceptada
Más respuestas (0)
Categorías
Más información sobre Programmatic Tuning en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!








