Everyone intending to contribute to the project should read this. It contains instructions on how to install all the necessary software, rules to follow, and coding conventions
WPILib, requires you to install their own version of VSCode. Below are the various installers: Windows Mac (ARM) Mac (Intel) Linux
as well as the FRC game tools (windows only): Game Tools
Most of our discussions happen in person, with key points being sent to #frc-programming in Slack. If you are not in the slack, ask someone who is the next time you come in.
- add
,"editor.formatOnSave": true
at the end of your workspace settings JSON file, which can be opened with theworkbench.action.openWorkspaceSettingsFile
command, so it formats the code whenever you hit save. - Use the default Red Hat Java formatter included in the
Language Support for Java
VScode extension. - Use 2 space indentation. Select it by clicking
Spaces: x
in the bottom right corner of the editor.
We use Git w/ GitHub for source control. The repo can be found here. If you don't have access, it will 404. If you need access, contact Liam Teale on Slack or email.
If you are new to Git, it's recommend installing GitHub Desktop for an easy intro.
Small commits for things like tuning can be committed directly to the master branch. Other, larger commits implementing new features, updating dependencies, removing depencies, or installing dependencies need to be done on a seperate branch and merged in through Pull Requests.
Commit names should be short, and to the point. Based on the name of the commit you need to be able to tell what changed in that commit. Additional context can be added in the additional description section.
Branch names should be short, to the point, and follow this prefix:
dep/branch_name
for anything to do with dependencies
feature/branch_name
for new features. Supercedes dep/
bugfix/branch_name
for bugfixes
If your branch does not fit any of these categories, it has no prefix.
If you find a bug, or think a feature is needed, open an Issue
Build:
- Click the WPILib logo at the top right of the editor
- Click
Build Robot Code
Upload (wired):
- Connect your laptop to the roboRIO using a USB type-B cable
- Click the WPILib logo at the top right of the editor
- Click
Deploy Robot Code
- Verify program uploaded successfully by checking the output terminal that pops up
Upload (wireless):
- Connect to the
6364_Rex
wifi network. May take up to a minute to appear after startup - Use password
pass123word
if prompted - Click the WPILib logo at the top right of the editor
- Click
Deploy Robot Code
- Verify program uploaded successfully by checking the output terminal that pops up
- Connect to the
6364_Rex
wifi network. May take up to a minute to appear after startup - Use password
pass123word
if prompted - Open the
FRC Driver Station
app - Connect the controller with a micro-USB cable
- Verify controller connection in Driver Station
- Verify the area around the robot is clear and you are behind cover
- Select the necessary control mode (Teleop, Autonomous, Practice, Test)
- Announce "enabling" to the room and click the
enable
button - Click
disable
to disable the robot or press space bar for an emergency stop