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



Hit Counter

 

<<

functions\part_one.c


Click to enlarge

 void part_one (float side)
{
int bump_side, side_align;
int full_speed=90, half_speed=35;
int distance;

/* down ramp, */
distance=straight(full_speed,full_speed,20.,0);
turn(-96.*side,50);
distance=straight(-full_speed,-full_speed,13.5,0);/*backing up*/

/* turn toward top wall, align front with top wall */
turn (90.*side,50);
distance=straight(full_speed,full_speed,14.,1);
bump_side=sensor_check();
side_align=2;
wall_align(bump_side,full_speed,side_align);

/* back up to center course, bump back against start ramp wall at angle */
distance=straight(-full_speed,-full_speed,28.,0); 
turn (-95.*side,50);
distance=straight(full_speed,full_speed,36.,1);
bump_side=sensor_check();
side_align=2;
wall_align(bump_side,full_speed,side_align);
}

© '02 James Beams

http://beams.oxonet.com