VEX robotics is a STEM program that allows the future innovators, thinkers and problem solvers of America showcase their talents. The program’s goal is to create engaging, affordable and powerful solutions that immerse students in engineering challenges through the excitement of building and programming robots
- All functions are thoroughly explained in the PROS documentation. The syntax is all standard C++, so Stackoverflow will be an excellent resource for problem solving. All the files you want to edit are in the src folder. opcontrol is for user control functions and loop, and auto is for auton code.
- The following is a basic function that allows for chassis control.
This code can be found here. All documentation for this code can be found in the code itself, and is outlined here
- In order for the function to be run while the robot is in user control mode, it must be in the operatorControl loop. It can be located at the end of the opcontrol file, in the src folder. Here is an example of the control loop
- When the code is complete, open a terminal in the parent folder. Here is the what the final file tree should look like
- Navigate to the parent folder in the terminal, the folder above src. On Windows, you can open the terminal in the file explorer by pressing Shift+Right Click and selecting the Open Powershell or Open Command Prompt option. Your terminal should look something like this
- Type ls or dir (Windows) in the terminal. The result should look something like this
This ensures you are in the correct directory
- Connect the robot to your computer and type pros mu into the terminal.
- Press enter to run this command. If there is an error in your code, it will spit it out here, otherwise, your code will be flashed to the robot. When it is complete, disconnect from the robot and restart the cortex. Your code is now running on the robot.
- Download GitHub Desktop
- Sign up/Log in to your own GitHub account
- Clone the Korvex Repository in GitHub Desktop
- If you are a verified contributor to Korvex Robotics, select your branch from the top menu. If there is not a branch with your name on it, make a new one
- Make your intended changes
- When your changes are complete, commit your changes and add a small paragraph detailing what you modified, then push
- C++ Basics
- Working with a CLI
- At least skim through this
- Version Control (git)
- PROS