Lab 4: Bumper Cars
Due Friday, November 16, 2001 (after lab - 2:30pm)
Program (20 points)
Write a program for your car that when placed in a walled area will:
1) Given no bumper input (digital sensors), go forward.
2) Given right bumper input, turn to the left until no bumper input.
3) Given left bumper input, turn to the right until no bumper input.
4) Continually look for walls.
Notes:
- You should write your code so it is well-structured.
It should be possible to easily break it
down into the structures described in the
book and class.
- You should use the things you have been learning in the
your homework to write good code. If possible, use
your new knowledge of subroutines.
-
Use appropriate comments to describe what your program is
doing. Writing proper comments is an art; you need to
describe what your code is doing, not restate the lines of
code.
- Each lab partner must turn in a copy of the assembly language
program.
- The comments at the top of the program should indicate:
- Who the author is of the program
- Who you worked with on the program
Demonstration (10 points)
You may demonstrate the car as a partnership
or alone, but both partners must be present to demonstrate as a partnership.
For this lab,
- you must hand in the assemby language
file (.asm) using the Web Submission page.
Note: You will receive no points for
a program that does not assemble.
- you must
demonstrate your program works on your car to either the
Instructor or TA, and you must follow the Lab Guidelines.