
Building Strategies • Chapter 5 93
Now we can experiment with load and inertia. If you have the LEGO
remote control, you don’t need to write any code. If not, we suggest you write a
very short program that moves and turns the robot.You don’t need anything
more complex than the following pseudo-code example, which will drive your
robot briefly forward then backward, and make it turn in place:
start left & right motors forward
wait 2 seconds
stop left & right motors
wait 2 seconds
start left & right motors reverse
wait 2 seconds
stop left & right motors
wait 2 seconds
start left motors forward
start right motors reverse
wait 2 seconds
stop left & right motors