O'Reilly logo

Building Smart LEGO MINDSTORMS EV3 Robots by Kyle Markland

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Programming the cases

The rest of the programming is straightforward, albeit monotonous. The difficult part of the programming is complete, but we still need to assign and program a case for every possible remote button combination (at least, the combinations we plan to use).

In the first case, no buttons are pressed (button ID 0), so the Falcon should halt and center its steering. Recall that this is the default case, so the Falcon's preferred action is to idle if no remote buttons are pressed. Add the steerReCenter MyBlock and a move steering block (Off, ports B and C):

In the second case (button ID 1), the robot is driving forward in a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required