We will use the menu on the left side of the screen to help create algorithms.
Your first program will be to program your car to drive in a line. Follow the steps below to complete it!
- Click on Picar-X.
- Drag the Forward block to the blank work space.
- Drag the Sleep block and connect it to the Forward block.
This block tells your car how long to drive forward, so change the 0 to the number of seconds you would like your car to drive forward.
- Drag the Stop block and connect it to the other block. As you would guess, this tells your car to stop!
- Before running your program, make sure your car is on the floor!
- Click Run Code.