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.
Курсове и занятия включващи този Урок
Този Урок е използван в следните курсове и занятия.
VEX EDR introductory course
Designed to get students started with VEX EDR and RobotC. The robotics set is not very easy to use and offers its challenges. In the course we take a step-by-step approach to moving, turning and using sensors. A big part of the course is about programming and using the RobotC software for the Cortext controller.
This course is still under development and constantly change and extended.
- 43
- 69:49
- 0

Move in a square. What are these things called loops?
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.
- 6
- 0
- 0
- 3d_rotation 0