Home
Projects
Blog
My Resume
Project193
BRB or BBL
Robot
Guestbook
Old Stuff
Email



Hit Counter

 

<<

functions\exit_course.c  


Click to enlarge

void exit_course (float side)
{
int full_speed=90;

straight(-full_speed,-full_speed,38.,0);
turn(-116.*side,50);
straight(full_speed,full_speed,30.,0);
turn(-96.*side,50);
straight(full_speed,full_speed,50.,1);
while(1){
if(sensor_check()==1)
{
straight(-full_speed,-full_speed,2.,0);
turn(15.,50);
straight(full_speed,full_speed,100.,1);
}
if(sensor_check()==3)
{
straight(-full_speed,-full_speed,2.,0);
turn(-15.,50);
straight(full_speed,full_speed,100.,1);
}
}
}

© '02 James Beams

http://beams.oxonet.com