Deploying to the wrong robot will permanently damage the motors. This code is designed for 03
(Everybot).
This is the code used for team 8574's robot in the 2022 FRC season. It was a chaotic yet enjoyable season; check out how we did at The Blue Alliance. This repository is technically now archived, but we may make small edits every so often.
-
Follow this guide on installing WPILib. The latest 2022 version definitely works. The 2023 version has not been tested yet.
-
Open the VSCode that was installation with WPILib
-
Press
Ctrl + Shift + P
to open the command palette -
Search and select
WPILib: Build Robot Code
and wait for the process to complete -
Connect to the robot you want to deploy to
-
Press
Ctrl + Shift + P
to open the command palette -
Search and select
WPILib: Deploy Robot Code
and wait for the process to complete
The rules are generally lax, but here are a few ground rules.
- The
main
branch should be updated with the most recent working code on the robot - Create a branch/fork to test new code, then merge into
main
once it works and is permanent - Commands must be ordered like the following:
commands/autonomous/
has commands used in autonomouscommands/common/
has complex command groups used oftencommands/
has lower level commands
- Includes must be ordered alphabetically, in categories by this order: header, third-party libraries, first-party include
- Variables are named in camelCase, if they are in an object's scope (i.e. command private), add a
m_
prefix - Follow the PEP 8 style guide