В момента ресурсът е наличен само на английски

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.

Курсове и занятия включващи този Урок

Този Урок е използван в следните курсове и занятия.

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