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

Chapter 18. the LineFollower program

Now that you’ve seen the advanced programming features that NXT-G has to offer, it’s time to put them to use. In this chapter, I’ll walk you through the process of transforming the simple line-following program from Chapter 6 into a much more flexible and accurate program.

The chapter begins with a brief discussion on line following. Then I’ll show you how to use files and a configuration program to collect and save the settings used by the LineFollower program. In the second half of the chapter, I’ll show you how to use a more complicated control strategy for following a line. By the end of the chapter, your TriBot will be able to follow a line quickly and accurately.

following a line

Programming your robot to ...

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