diff --git a/Conventions.java b/Conventions.java index f0f8406..55ec63b 100644 --- a/Conventions.java +++ b/Conventions.java @@ -1,5 +1,5 @@ // -// FRC Team 2910 coding conventions for the Java programming language +// FRC Team 9449 coding conventions for the Java programming language // public class Conventions { // classes use UpperCamelCase @@ -8,22 +8,31 @@ public class Conventions { // classes use UpperCamelCase private double thisIsAField = 2.71828; // all fields are lowerCamelCase + private double mVariable = 22; //all member variables have mCamelCase + // when reading variables, use "get" and "set" as prefixes - public int getJackInTheBotTeamNumber() { // method names are lowerCamelCase, and should describe exactly what the method does - return 2910; + public int getYellowjacketsTeamNumber() { // method names are lowerCamelCase, and should describe exactly what the method does + return 9449; } public void setExampleFieldVariable(double thisIsAField) { // method names are lowerCamelCase, and should describe exactly what the method does - this.thisIsAField = thisIsAField; + this.thisIsAField = thisIsAField; } + //command based structure should have runCamelCase + //example below + + //public Command runIntakeBumpCommand() { + // return run(() -> { + // setTargetArmPosition(ArmConstants.PIVOT_BUMP); + // }); + // } + + //indentations are 2 spaces which is 1 tab after you double space the first line public enum EVENT { // enums use SCREAMING_SNAKE_CASE - SAMMAMISH, - AUBURN, - DISTRICT_CHAMPS, - FIRST_CMP, - INDIANA_ROBOTICS_INVITATIONAL, - CHEZY_CHAMPS + CANPAC, + IDAHO, + WORLD_CHAMPIONSHIPS } } diff --git a/README.md b/README.md index 8d74f5b..0627e12 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,12 @@ -# FRC Team 2910 coding conventions +# FRC Team 9449 coding conventions -This is the repository containing FRC Team 2910's coding conventions for programming languages they use. +This is the repository containing FRC Team 9449's coding conventions for Java and ALL repositories -Are we missing something? Are we unclear? If you are on our team contact us through slack, otherwise submit an issue! +* Variables should be “camelCase” +* Constants should be “UPPER_SNAKE_CASE” +* Classes should be “PascalCase” +* Member variables should begin with to “m” and camel cased (ie. mMotorLeft, mSubsystem, etc.) +* With exceptions, line length should be no longer than 70 characters +* With exceptions, variable names should be no greater than 20 characters + +If there is something missing create an issue in the Kanban board. diff --git a/vendordeps/WPILibNewCommands.json b/vendordeps/WPILibNewCommands.json new file mode 100644 index 0000000..69348e4 --- /dev/null +++ b/vendordeps/WPILibNewCommands.json @@ -0,0 +1,39 @@ +{ + "fileName": "WPILibNewCommands.json", + "name": "WPILib-New-Commands", + "version": "1.0.0", + "uuid": "111e20f7-815e-48f8-9dd6-e675ce75b266", + "frcYear": "2026", + "mavenUrls": [], + "jsonUrl": "", + "javaDependencies": [ + { + "groupId": "edu.wpi.first.wpilibNewCommands", + "artifactId": "wpilibNewCommands-java", + "version": "wpilib" + } + ], + "jniDependencies": [], + "cppDependencies": [ + { + "groupId": "edu.wpi.first.wpilibNewCommands", + "artifactId": "wpilibNewCommands-cpp", + "version": "wpilib", + "libName": "wpilibNewCommands", + "headerClassifier": "headers", + "sourcesClassifier": "sources", + "sharedLibrary": true, + "skipInvalidPlatforms": true, + "binaryPlatforms": [ + "linuxsystemcore", + "linuxathena", + "linuxarm32", + "linuxarm64", + "windowsx86-64", + "windowsx86", + "linuxx86-64", + "osxuniversal" + ] + } + ] +} \ No newline at end of file