This preview shows page 1. Sign up to view the full content.
Unformatted text preview: %yc_o = 0; %xc_o = 0; %vy = 0; %vx = 0; %theta_o = 0; %w = 0; vx = vx; vy = vy -g*dt; w = w; xc_o = xc_i + dt*vx; yc_o = yc_i + dt*vy; theta_o = theta_i - w*dt; if yc_o <= 0 + radius vx = vx*mu_x; vy = -vy*mu_y ; w = mu_w * w; yc_o=radius; end end...
View Full Document
This note was uploaded on 09/15/2011 for the course EE 150 at USC.