CS 273 Extra Credit Lab

I'm going to be out of town next week so I can't promise to be able to answer questions. I'll try, of course, but I won't really know until I get there whether I'll be able to have reasonable internet access. With that in mind, I'm going to write out this lab assignment rather than giving it verbally as with the others.

This lab is for extra credit. I will be available on Monday, May 14 in the morning to look at it.

A Full-Featured Robot

For this lab, you need to put all the pieces so far together. Using the drivers you have written as homework assignments, you need to make your robot respond to commands as follows:

0
follow line
1
left reverse, right stop
2
both reverse
3
left stop, right reverse
4
left reverse, right forward
5
all stop
6
left forward, right reverse
7
left stop, right forward
8
both forward
9
left forward, right stop

(if you set the ``Num Lock,'' these commands will let you drive the robot fairly intuitively using the number pad. Actually, I'm not really sure whether 1 and 3 are right the way they are, or if they'd be better reversed).

In addition, if your robot runs into something with either bumper, it should invoke the obstacle avoidance from Lab 3 (as soon as the bumper is free, the robot should go back to whatever command you gave it. Yes, this means it is possible for it to get stuck in any number of nasty loops if you don't do something about it eventually).


Last modified: Wed May 2 09:48:33 MDT 2001