Getting Started - hammerheads5000/Team-Documentation GitHub Wiki

Installation

Install any necessary software. See Installing Software for more information.

Clone Repository

If you are going to work on an existing repository, you need to clone it to your local computer. Remember to put it in a file location that you will remember. If you have already cloned the same repository, do not clone again, as it will just clutter up your computer and make everything confusing. Also, see GitHub's Guide

You can use any of the following methods:

GitHub Desktop

  1. Go to left sidebar by clicking on the current repository
  2. Click "Add" -> "Clone repository..."
  3. Either select the repository from the list, or copy and paste the URL
  4. Select file location, and clone

Git CLI (Windows)

  1. Open command prompt or Git CMD
  2. Navigate to desired folder with cd "Path\to\the\folder\"
  3. git clone [URL] where URL is the repository URL (without brackets)

VSCode

  1. Open command palette (Ctrl+Shift+P or WPILib icon in top right)
  2. Search for Git: Clone
  3. Paste URL

Create A New Project

If you want to start a new project,

  1. Open WPILib VSCode
  2. Open command palette
  3. Select "Create New Project
  4. Select project type "Template", language "Java"
  5. Select base "Command Robot", which includes comments and starting code or "Command Robot (Skeleton)" for a barebones start
  6. Choose base folder, project name
  7. Select "Create New Folder" unless you want the files directly in selected directory
  8. Enter team number (5000)
  9. Select "Enable Desktop Support" to enable simulation

First Project

A good starting point is to simply control two motors. You need an electronics setup with two motors with TalonSRX motor controllers (or another model, just remember to replace in code). Try and control the motors with an Xbox controller

See Basic Motor Control Activity Reference for all the code you should need