Works_PD - if(Pm> 40&& abs(max(y< 0.25&& p<-1e-9 work_PD(a = pid a = a 1 end Kd = Kd dk end Kp = Kp dk end e

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

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

Unformatted text preview: if (Pm > 40 && abs(max(y)) < 0.25 && p < -1e-9) work_PD(a, :) = pid; a = a + 1; 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 at Austin.

Ask a homework question - tutors are online