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
- Go to left sidebar by clicking on the current repository
- Click "Add" -> "Clone repository..."
- Either select the repository from the list, or copy and paste the URL
- Select file location, and clone
Git CLI (Windows)
- Open command prompt or Git CMD
- Navigate to desired folder with
cd "Path\to\the\folder\" git clone [URL]where URL is the repository URL (without brackets)
VSCode
- Open command palette (Ctrl+Shift+P or WPILib icon in top right)
- Search for Git: Clone
- Paste URL
Create A New Project
If you want to start a new project,
- Open WPILib VSCode
- Open command palette
- Select "Create New Project
- Select project type "Template", language "Java"
- Select base "Command Robot", which includes comments and starting code or "Command Robot (Skeleton)" for a barebones start
- Choose base folder, project name
- Select "Create New Folder" unless you want the files directly in selected directory
- Enter team number (5000)
- 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