/korvex

A repository of all the code I've written for Korvex Robotics, a VEX VRC competitor

Primary LanguageC++GNU General Public License v3.0GPL-3.0

korvex

a repository of all the software written for korvex robotics

US


what is VEX robotics?

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

writing and compiling a basic PROS program

  1. 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.
  2. The following is a basic function that allows for chassis control.img

This code can be found here. All documentation for this code can be found in the code itself, and is outlined here

  1. 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

img

  1. When the code is complete, open a terminal in the parent folder. Here is the what the final file tree should look likeimg
  2. 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 thisimg
  3. Type ls or dir (Windows) in the terminal. The result should look something like thisimg

This ensures you are in the correct directory

  1. Connect the robot to your computer and type pros mu into the terminal.img
  2. 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.

contributing

  1. Download GitHub Desktop
  2. Sign up/Log in to your own GitHub account
  3. Clone the Korvex Repository in GitHub Desktopimg
  4. 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
  5. Make your intended changes
  6. When your changes are complete, commit your changes and add a small paragraph detailing what you modified, then push

resources

  1. C++ Basics
    1. C++ Cheat Sheet
    2. C++ Crash Course
    3. C++ Basic Implementation
  2. Working with a CLI
    1. At least skim through this
  3. Version Control (git)
    1. Intro to GitHub
    2. Intro to git
  4. PROS
    1. PROS first time user guide
    2. PROS getting started guide