RoboLab's Inventor Level
Introduction to the Robolab's Inventor Level
© D. Weinberger and
D. Thiébaut
You will find out that the motors keep on turning, while the little figure in the display of the RCX stops walking. Obviously the program is over, but the motors are still turning. What do you think is the problem? Try to fix it, so that the motors stop when the program ends. |
EXERCISE: Modify your program so that it will make your robot follow a square path on the floor. Again, you may simply test it by holding your robot in your hand and verifying that the behavior of the wheels is correct. |
EXERCISE: Create a program that would make your robot go around in a square path, but this time make it go around just once. In other words, your robot should go straight, turn 90 degrees, go straight, turn another 90 degrees, go straight, turn 90 degrees again, go straight, turn and stop! (Hints: use a loop!) |