Making the rover move
First, let's learn how to make our robot move straight by powering both motors at the same time. We will be using the same programming blocks that we used in Chapter 2, Building Your First BOOST Robot – Tabletop Fan, and Chapter 3, Moving Forward/Backward Without Wheels, but we will be selecting the AB option from the drop-down menu, as shown in the following screenshot. Here, I have written a program to make the robot go forward for two rotations at 100% speed:
Now that you know how to power both motors at the same time, let's write the main code:
Now, let's perform a few activities.
Activity 1
Can you program your robot to do the following?
- Move forward for 2 seconds at 60% speed.
- Wait for 2 seconds and change the BOOST Hub light's color...