brake, coast, and the reset motor block

The Move and Motor blocks both have a Next Action item, allowing you to specify what to do at the end of the move. As you saw earlier, the choices are Brake and Coast. When the Coast setting is combined with a Duration of either Rotations or Degrees, these blocks behave in a way that many users find unexpected: After coasting to a stop, the next move seems to be a little short or a little long.

The CoastTest program

Figure 4-26. The CoastTest program

Configuration Panel for the first two Move blocks

Figure 4-27. Configuration Panel for the first two Move blocks

Figure 4-28. 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.