Monday, December 22, 2008

It's FINISHED!!

Here is my resulting project:

void main()
{
while(digital(1)==0)
{
fd(A);
fd(C);
if(digital(1)==1)
{
beep();
bk(A);
bk(C);
sleep(0.5);
fd(A);
bk(C);
sleep(0.5);
}
}
}


So for those of you who can't read IC, it makes 2 motors go forward until the touch sensor is pushed in, then it moves backwards and diagonally for .5 seconds, then proceeds to move forward again.

No comments: