Deploying to the wrong robot will permanently damage the motors. This code is designed for brushless motors.
This repo is an example/template for future robots. Make sure to update libraries and fix breaking changes for future editions.
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/auto/
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
- No prefix for member variables (WPILib uses
m_
) - All caps for constants (WPILib uses
k_
) _
prefix for other (WPILib uses none)
- No prefix for member variables (WPILib uses
- Follow the PEP 8 style guide