- Constants: All caps with underscores (eg:
SOME_CONSTANT_VALUE
) - Member variables: no "m" with camelCase (eg:
someMemberVariable
instead ofmSomeMemberVariable
) - Subsystems have their own static instance in their own class
- Class method order: Getters, setters, other methods (alphabetically)
- Member def order: Grouped logically..., but Talon configs then subsystem static object getter comes last
- Sample order:
- Some Motor
- Some sensor
- Voltage/DutyCycle configs (If applicable)
- Static subsystem instance
- Private class constructor
- Getters
- Setters
- Other methods (Orderd based on functionality)
- Subsystem instance getter
- Subsystem configs (Eg, Swerve will have AutoBuilder config)
- Device configs (If applicable)
- Sample order:
- Subsystem constructors are private and will be called within the class
- Import statements: let Java RedHat extension take care of it
- Spaces in code where necessary (Eg, between methods, between operations such as + or -)
- Braces are on the same line as method declarations
- Always add Javadoc to methods!!
-
Notifications
You must be signed in to change notification settings - Fork 0
TASRobotics/RaidZero-2024-Command
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
No description, website, or topics provided.
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published