Skip to content

Commit 7a074e3

Browse files
authored
Merge pull request #14 from strykeforce/UpdateRobotSideRecievingCode
Update robot side recieving code
2 parents b5b3f79 + acd2938 commit 7a074e3

File tree

4 files changed

+350
-303
lines changed

4 files changed

+350
-303
lines changed

RobotSideCode/wallEYE/build.gradle

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
plugins {
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

78
group = "org.strykeforce"
8-
version = '24.0.0'
9+
version = '24.2.0'
910

1011
java {
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
}
Lines changed: 29 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,36 @@
11
package 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 */
64
public 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
}

0 commit comments

Comments
 (0)