Chapter 16. programming the T-R3X

In this chapter, you’ll program the fearsome T-R3X! The first program will make the dinosaur explore its environment by walking, detecting obstacles, looking around, and turning away from obstacles. Then, we’ll model more complex autonomous behavior to make the T-R3X look around, react to “prey” (the IR Beacon), and hunt it down. You’ll also learn the basics of using state machines to model behavior for a robot and how to compute complex logic expressions using mathematical formulas.

building the My Blocks for the Wander program

Before making the first program, Wander, for the T-R3X, we need to prepare the My Blocks. As you build the My Blocks, I’ll point out noteworthy techniques and ideas. The My Blocks include ...

Get The LEGO MINDSTORMS EV3 Laboratory now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.