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.

The Move block

Figure 4-2. The Move block

For example, the following is a simple program to move the TriBot forward a short distance:

  1. Create a new program named SimpleMove.

  2. 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:

  3. Download and run the ...

Get The Art of LEGO MINDSTORMS NXT-G Programming now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.