Chapter    11

Programming Like a Pro

The basics of writing a good NXT-G program were covered in the previous chapters. Most of the techniques that we discussed are all that a team would ever need to know to compete in a LEGO robotic event. But there may be times when your team wants to go beyond the “normal” and add something extra to your code. You may want to create a robot that can store information about the game field in an array for future use, or you may want to create a master program, also called a sequencer, to help your team switch between programs more quickly at an event.

Introducing more complex coding to your robot can add nice talking points when presenting your robot’s programs to technical judges. Be careful though. Don’t add ...

Get Winning LEGO MINDSTORMS Programming now with the O’Reilly learning platform.

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