This article is not viewable in your language. Please check back at a future date.
This article's translation was completed by machine translation. Please forgive any possible errors.
Get more with VEXcode
We recommend you transition to our new software. VEXcode has both block-based and text-based options, that work on Chromebooks, iPads, Android tablets, Windows and Macs. Visit code.vex.com
for more details on how to download VEXcode.
VEX Coding studio has been discontinued and is no longer available for download. Already downloaded? The program will continue to function but will no longer be supported.
Users who transition to VEXcode can migrate their C++/C++ Pro projects to VEXcode Pro V5 by following this article
This example program shows how to use remote control values to move the robot.
- A V5 Smart Motor, on Port 1, named leftMotor
- A V5 Smart Motor, on Port 10, named rightMotor
How it works
when (STARTED) block tells the robot to run this code when the program starts.
Next, the program will enter a
while loop, aligning motor velocity to the percentage values retrieved from the positioning of the joysticks (-100 to +100).
.spin commands the motors to move along with the velocity specified in the previous commands.
NOTE: The joysticks work in unison to move the robot in tank mode.