It's the magic words to make the wheels go spin!
I set this up in kind of a silly way, so it's a little bit annoying to get working on a new machine. Here's how to do it anyway:
- WPILib should be installed (Tutorial and Download link Here)
- Github Desktop should be installed Github Desktop (Unless you want to wrangle git manually)
Hopefully, you should have gotten to this file by using Clone Repository in github desktop.
Normally, this would be the end of it- You'd be able to write code from here. But unfortunately, the copy of the code you have here doesn't actually have all the files it needs. In order to get them, you need to create a temporary project using wpilib and steal them from there.
- Hit Control-Shift-P, and begin typing "create a new project" until you can click on the dropdown option
WPILib: Create a new project
. - Enter in the details- File location doesn't matter, but make sure you select one of the java templates, enter
5970
as the team number, and check the desktop support tickbox. - Copy over the following files to their corrosponding locations:
- gradlew
- build.gradle
- gradlew.bat
- settings.gradle
- gradle/wrapper/gradle-wrapper.jar
- Reset Java by hitting Control-Shift-P and begin typing
Java: Clean Language Server Workspace
until you can select it from the list. - Run a test build by doing Control-Shift-P and typing
WPILib: Build Robot Code
until you can select it from the list. - It will pop open a terminal and it should give you a green loading bar made of
=
signs, and tell youBUILD SUCCESSFUL
- If it doesn't, something may be wrong.
Currently, it's quite unstable and is rapidly changing- I'll make a proper description once we get to offseason.
The main branch of this repo is the code that will be used in comps- I have a branch for messing around with the codebase and trying out major restructuring to ensure I don't mess up the comps code.