the move block
The Move block (shown in Figure 4-2) can control any of the three motors working alone, two of the motors working together, or even all three motors at the same time. This is the block you’ll use most often to make your robot move. It has many options and is suited to a wide variety of tasks.
Figure 4-2. The Move block
For example, the following is a simple program to move the TriBot forward a short distance:
Create a new program named SimpleMove.
Drag a Move block onto the Sequence Beam from the top of the Common Palette. Leave all the settings with the default values. Your finished program should look like this:
Download and run the ...
Get The Art of LEGO MINDSTORMS NXT-G Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.