Repeating Behaviors
Looped Square Program
Motor Block One Details 2
Motor Block Two Details 394
Adding the Loop Block Drag Move Blocks inside loop
Loop Block Details
Test your robot to see if it will go around the box Test your robot to see if it will go around the box. Adjust your turn so that it is a perfect 90° turn each time.
Control the Loop Count to Go Around the Box One Time 4
Adjust the rotations of the robot so it goes as close to the box as possible. Measure the diameter of the wheel. Using the diameter calculate the circumference. [C = π * D] This is the distance your robot will travel for one complete rotation of the wheel. π = 3.14
Test to see if your robot can go as close as possible around the box one time.