Skip to Main Content
The Art of LEGO MINDSTORMS NXT-G Programming
book

The Art of LEGO MINDSTORMS NXT-G Programming

by Terry Griffin
August 2010
Intermediate to advanced content levelIntermediate to advanced
288 pages
13h 21m
English
No Starch Press
Content preview from The Art of LEGO MINDSTORMS NXT-G Programming

the edit-compile-test cycle

The process you just went through is an example of the typical programming process. In fact, it even has a name: the edit-compile-test cycle.

It is very unusual for any program to work the first time. After writing your program, download it to the NXT and test it. Testing will often reveal some problem, so you return to editing. Just keep going through the cycle, adding features and fixing problems. Eventually, all the features are added and all the problems are worked out to give you a complete working program. It can take some patience and perseverance, but it is a great feeling when it finally works.

Note

Why didn’t the first program have the same problem? It’s because the Sound block has a Wait for Completion option ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

The Art of LEGO MINDSTORMS EV3 Programming (Full Color)

The Art of LEGO MINDSTORMS EV3 Programming (Full Color)

Terry Griffin

Publisher Resources

ISBN: 9781593272180Errata