Is APM method really better than traditional flat phase specification?
Opened this issue · 6 comments
cnpcshangbo commented
Let's see this:
wc=2.51; phi_m=83.9;
Using APM:
lambda=0.9748, kd=0.5958, kp=2.7721;
FPS:
lambda=0.9694, kd=0.6192, kp=2.6992;
We need to do Bode plot comparison and step response comparison.
cnpcshangbo commented
cnpcshangbo commented
cnpcshangbo commented
Then I tried an objective function like this:
w=wc;
APM1 = atan2(kd*w^lambda*sin(pi*lambda/2),(1+kd*w^lambda*cos(pi*lambda/2)))...
+atan2(1,T1*w);
w=wc*1.5;
APM2 = atan2(kd*w^lambda*sin(pi*lambda/2),(1+kd*w^lambda*cos(pi*lambda/2)))...
+atan2(1,T1*w);
w=wc*0.5;
APM3 = atan2(kd*w^lambda*sin(pi*lambda/2),(1+kd*w^lambda*cos(pi*lambda/2)))...
+atan2(1,T1*w);
% APM = abs(phi_m-APM1/pi*180)+abs(phi_m-APM2/pi*180)+abs(phi_m-APM3/pi*180);
APM = abs(phi_m-APM1/pi*180)-APM2-APM3;
lambda=0.9694; kd=0.6192; kp=2.6991;
It is almost the same as FPS method. We need to try some other conditions especially when FPS method has no solution.
cnpcshangbo commented
cnpcshangbo commented
cnpcshangbo commented