forked from FIRST-Tech-Challenge/FtcRobotController
-
Notifications
You must be signed in to change notification settings - Fork 0
Code Standards
LightenDarkness edited this page Sep 19, 2022
·
11 revisions
Class - PascalCase
Constants - MACRO_CASE
Functions - camelCase
Global Variables - camelCase
Local Variables - camelCase
Javadocs will be used for class and function comments.
/**
* Describe the method
* Second line describing method
* @param numA Describe param by this name
* @param numB Describe another param
* @return int This returns something
*/
/**
* Class description
* additional info
*/
Only use comments to explain a complicated line of code or something likely to cause confusion.
Put comments before the line or section of code you wish to describe. Use a space before the comment and capitalize the first word. Do not add periods to the end of the comments. Make additional comment lines as necessary.
// Gets a smoothed input that is in the correct direction
double smoothedInput = (-input/10)*smoother;
Truckee Robotics Documentation - Team 20285