the record/play block
The Record/Play block (shown in Figure 4-43) lets you record the movements of one or more motors and later play them back, reproducing the movements you recorded.
Figure 4-43. The Record/Play block
Using this block is a two-step process. First, you write a program with the block’s Action item set to Record. While running the program, manually move the robot through the actions you want it to perform. The block will save a file on the NXT containing the information needed to replay the movements.
The second step is to use a block with the Action item set to Play in another program to replay the motions you recorded.
configuration ...
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.