main_3 - G theta = (G * Td) / (1 + G * Ga * Gc); t U =...

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

View Full Document Right Arrow Icon
function [pid, Pm, Wp, y, theta, U] = main_3 (Kp, Kd, Ki) f s = tf('s'); s Ga = 15 / (s + 15); G Iy = 0.2; Ix = 0.1; Iz = 0.01; n = 0.0011; delta = Iz - Ix; G = 1 / (Iy * s^2 - 3 * n^2 * delta); G Td = 0.000000011 / (s^2 + 0.00000121); T Gc = Kp + Kd * s + Ki / s;
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: G theta = (G * Td) / (1 + G * Ga * Gc); t U = (-1.0 * G * Ga * Gc * Td) / (1 + Ga * Gc * G); U [Gm, Pm, Wg, Wp] = margin(theta); [ time = [0, 100]; [y, t, ysd] = impulse(U, time); [ pid = [Kp, Kd, Ki];...
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