Welcome to our super awesome 2022 robot code repository. We dont know what the robot does yet - but it probably drives. This was just started from the WPILib's "Getting Started" template.
This is the git repository for the 2022 robot program. It will have the code, as well as what is needed to build (turn the english-y language into computer language) and deploy to the robot. It would be really good to keep helpful documents like this one as well for us to reference later.
The language we will be using is Java (this is totally different from Javascript, if you have ever heard of that). It is an extremely common programing language that you can use to do almost anything - including control a robot. It is one of the most widely used computer languages in the world.
Gradle is what the java world uses to run tasks that the project needs - like building, deploying, etc. It will be our "runner" to do many different tasks.
Everything starts in the src/main/java/frc/robot/Main.java file. That's where the robot first looks when it begins running, and we will connect into that to make it work. Programmers usually use the src/ folder to store the code that they write, to keep it seprate from things like build scripts, tests, and documentation.
These are the steps I went through to get going:
- Installed the WPILib installer from here: https://docs.wpilib.org/en/stable/docs/zero-to-robot/step-2/wpilib-setup.html
- Installed
gitfrom here: https://git-scm.com/downloads - Use a tool like GitHub UI to download this repository: https://desktop.github.com/
- Run the FRC VS Code link that #1 creaed for you, and then open the repository you downloaded in step #3
I'm still figuring this out. I am reading through this guide to understand it. https://docs.wpilib.org/en/stable/docs/software/vscode-overview/index.html
This is a good YouTube series on programming the FRC robot in Java: https://www.youtube.com/playlist?list=PLqolGlJdb9oWsgP4biujl_eTFazESWl8o