VEX EDR Intro. Introducing loops - the correct way to repeat some code a number of times

In this tutorial we would introduce you to the concept of loops using this VEX EDR Robot. As a final result we would have a program that makes the robot move in a square and not by repeating the same instructions for move and turn four different times.

  • #336
  • 10 Apr 2017
  • 1:07

English

In this module we'd introduce you to the concept of loops using this VEX Robot. And the reason for using loops is because most of the time when we are programming the robots we duplicate some of our code. We repeat some of the instructions and to remove this repetition and this duplication we should always use loops. The program that we are going to develop is a program that makes the robot move in a square. To make the robot move in a square you must learn how to make the robot move forward, turn and then repeat this move forward and turn 4 times. At the end we'll have a robot that moves in a square.

Courses and lessons with this Tutorial

This Tutorial is used in the following courses and lessons

Image for VEX EDR introductory course
Course icon fllcasts
  • 43
  • 69:49
  • 0
Image for Move in a square. What are these things called loops?
Lesson icon fllcasts
  • 6
  • 0
  • 0
  • 3d_rotation 0