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 O’Reilly online learning.

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