Skip to Content
Building Smart LEGO MINDSTORMS EV3 Robots
book

Building Smart LEGO MINDSTORMS EV3 Robots

by Kyle Markland
April 2018
Beginner to intermediate
258 pages
6h 10m
English
Packt Publishing
Content preview from Building Smart LEGO MINDSTORMS EV3 Robots

Steering left and right

We must also make MyBlocks for steering the wheels left and right. We cannot directly borrow these from the previous project; while the steering MyBlocks we made for the Falcon project are very precise, we cannot use them because the navigation program starts to become too complex for them to work. Instead, we will opt for a simpler alternative: a simple switch block that checks the current position of the steering motor. If the motor is less than 45 degrees from the center, the program rotates the motor 45 degrees. Here is the simplified steerLeft MyBlock:

And here is the simple steerRight MyBlock, which is a mirror ...

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

Build and Program Your Own LEGO Mindstorms EV3 Robots

Build and Program Your Own LEGO Mindstorms EV3 Robots

Marziah Karch

Publisher Resources

ISBN: 9781788471565Supplemental Content