File tree Expand file tree Collapse file tree 4 files changed +350
-303
lines changed Expand file tree Collapse file tree 4 files changed +350
-303
lines changed Original file line number Diff line number Diff line change 11plugins {
22 id " java"
33 id " maven-publish"
4- id " edu.wpi.first.GradleRIO" version " 2024.1.1"
4+ id " edu.wpi.first.GradleRIO" version " 2024.3.1"
5+ id " com.diffplug.spotless" version " 6.12.1"
56}
67
78group = " org.strykeforce"
8- version = ' 24.0 .0'
9+ version = ' 24.2 .0'
910
1011java {
1112 sourceCompatibility = JavaVersion . VERSION_17
@@ -101,4 +102,13 @@ publishing {
101102 }
102103 }
103104 }
105+ }
106+
107+ spotless {
108+ java {
109+ googleJavaFormat()
110+ removeUnusedImports()
111+ lineEndings = ' GIT_ATTRIBUTES'
112+ targetExclude(" src/main/java/frc/robot/constants/BuildConstants.java" )
113+ }
104114}
Original file line number Diff line number Diff line change 11package WallEye ;
22
3- /**
4- * A class that holds yaw and timestamp for DIO inputs
5- */
3+ /** A class that holds yaw and timestamp for DIO inputs */
64public class DIOGyroResult {
7- private double gyro = 0 ;
8- private long timestamp = 0 ;
5+ private double gyro = 0 ;
6+ private long timestamp = 0 ;
97
10- /**
11- * Hold yaw and timestamp
12- * @param gyro a double that represents yaw
13- * @param timestamp a timestamp that is from the yaw
14- */
15- protected DIOGyroResult (double gyro , long timestamp ) {
16- this .gyro = gyro ;
17- this .timestamp = timestamp ;
18- }
8+ /**
9+ * Hold yaw and timestamp
10+ *
11+ * @param gyro a double that represents yaw
12+ * @param timestamp a timestamp that is from the yaw
13+ */
14+ protected DIOGyroResult (double gyro , long timestamp ) {
15+ this .gyro = gyro ;
16+ this .timestamp = timestamp ;
17+ }
1918
20- /**
21- * Get yaw
22- * @return yaw
23- */
24- protected double getGyro () {
25- return gyro ;
26- }
27-
28- /**
29- * Get timestamp
30- * @return timestamp
31- */
32- protected double getTimestamp () {
33- return timestamp ;
34- }
19+ /**
20+ * Get yaw
21+ *
22+ * @return yaw
23+ */
24+ protected double getGyro () {
25+ return gyro ;
26+ }
3527
28+ /**
29+ * Get timestamp
30+ *
31+ * @return timestamp
32+ */
33+ protected double getTimestamp () {
34+ return timestamp ;
35+ }
3636}
You can’t perform that action at this time.
0 commit comments