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

assumptions

While coming up with the requirements, it’s also a good idea to list any assumptions or restrictions about the program. This helps you know which conditions you need to test and which you can ignore. You can make four assumptions for this program:

  • The walls are straight.

  • Any opening is big enough for the TriBot to fit through.

  • Walls meet at right angles. This will make the turning at a corner easier.

  • When the program begins, the TriBot will be placed against the wall.

The last item in this list, dealing with how the robot is arranged when the program starts, is called an initial condition. Starting the program with the robot in place will be much easier than making the robot wander around looking for the maze entrance.

Thinking about the ...

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