Remote control

As the name implies, this mode allows the user to control Grunt using an EV3 remote. The programming for this mode goes within the true case of the second IR sensor switch.

Start by adding a display block that prints RC Mode to the EV3 brick's screen. Adding a comment as a label would be helpful. Then, add a loop block. Set the exit case for the loop to: Infrared Sensor | Compare| Remote, channel 1, port 4. Then, select button IDs 10 and 11. These are the button combinations that we reserved earlier; they are being used to exit the remote control loop. Finally, be sure to name the loop RC:

Place a switch inside the RCloop. ...

Get Building Smart LEGO MINDSTORMS EV3 Robots 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.