VEX EDR Intro. Move forward and backward with the VEX motors Pro Preview

In this episode we combine in a single program the previous two programs for moving forward and backward. 

  • #330
  • 04 Mar 2017
  • 1:21


The code for moving forward is:

motor[port2] =50

motor[port3] = 50


The code for moving backward is using the same instructions, but using -50 for power of the motors.




In this video we'll combine the previous two programs to make the robot move forward and then backward.

Like this.

As the program is getting longer I'll just zoom out. And here what we need to do is I'll just copy this code where we have the move, move forward and just set -50 here and -50 here. So, it's actually the same logic as the previous two programs. Here we are just moving forward and here we are moving backward. And we are waiting for one second here. And one second here. If we now download the program and run it we'll see the robot moving forward and backward.

Courses and lessons with this Tutorial

This Tutorial is used in the following courses and lessons

Image for VEX EDR introductory course
  • 43
  • 69:49
  • 0
Image for Move your VEX robot forward/backward
  • 7
  • 0
  • 0
  • 3d_rotation 0