You also want an ePaper? Increase the reach of your titles
YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.
if holes(6) == 1<br />
RRR_go_angles(hole6, ssc);<br />
whack(ssc);<br />
end<br />
if holes(7) == 1<br />
RRR_go_angles(hole7, ssc);<br />
whack(ssc);<br />
end<br />
if holes(8) == 1<br />
RRR_go_angles(hole8, ssc);<br />
whack(ssc);<br />
end<br />
if holes(9) == 1<br />
RRR_go_angles(hole9, ssc);<br />
whack(ssc);<br />
end<br />
% go back to the initial position, out of the way<br />
RRR_go_angles(init, ssc);<br />
e. whack.m<br />
% Project Whack-A-<strong>Mole</strong>, ME 4451<br />
%<br />
% Created 10-26-07 by Patrick, Alex and Ryan (in lab)<br />
% Modified 11-30-07 by Julia, Patrick, Alex and Ryan (in lab) to<br />
draw back % and pause to keep things from being redundant.<br />
%<br />
% INPUTS:<br />
% 1. ssc, the SSC Matlab interface, which has already been opened<br />
%<br />
% The function takes the form<br />
% whack(ssc)<br />
% This function goes through the whacking motion.<br />
function whack(ssc)<br />
sscservoset(ssc,4,84);<br />
pause(.8);<br />
sscservoset(ssc,4,240);<br />
pause(1);<br />
sscservoset(ssc,4,127);<br />
pause(1);