The Light-Seeking Robot

For this assignment, you should develop a robot that seeks the light. You should use two touch sensors, used to avoid collisions, connected to the inputs A and C of the robot, and a light sensor, used to detect the light levels, attached to port B. The motors should be connected to outputs A and C, respectively.

Behavior

The light-seeking robot should follow the following general behavior:

Programming

You should program your robot as an event machine. You do not need to have a single variable implementing the state: rather, you can have a set of variables, which together describe the state of the robot. Clearly indicate in your code which ones are the state variables. Model your code after the code in eventrover.c

Evaluation

I will evaluate the assignment both on the basis of the code, and on the basis of its peformance. For the code, I will look at:

For the performance, we will construct some interesting situations for the robots, with various light sources and obstacles -- a sort of obstacle course -- and we will see how the robots do.

CMPE 117 Spring 2007/Rover assignment 1 (last edited 2007-04-13 12:59:11 by LucaDeAlfaro)