works - p = max(real(pole(theta if(Pm> 40&&...

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
Kp0 = 0.001; Kd0 = 0.001; Ki0 = 0.001; dk = 2; Kmax = 500; a = 1; a Kp = Kp0; K while (Kp < Kmax) Kd = Kd0; while (Kd < Kmax) Ki = Ki0; while (Ki < Kmax) [pid, Pm, Wp, y, theta] = main_3 (Kp, Kd, Ki);
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: p = max(real(pole(theta))); if (Pm > 40 && abs(max(y)) < 0.25 && p <= -1e-7) work(a, :) = pid; a = a + 1; end Ki = dk * Ki; end Kd = Kd * dk; end Kp = Kp * dk; end e...
View Full Document

This note was uploaded on 09/18/2011 for the course ASE Controls taught by Professor Bishop during the Spring '10 term at University of Texas.

Ask a homework question - tutors are online