Skip to content

Commit fa419ce

Browse files
committed
Import StuyLib to 2026 WPILib
1 parent 2bba1f5 commit fa419ce

File tree

76 files changed

+444
-200
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

76 files changed

+444
-200
lines changed

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
buildscript {
2-
ext.WPI_VER = "2025.2.1"
2+
ext.WPI_VER = "2026.1.1"
33
}
44

55
plugins {
66
id "java"
77

88
id "maven-publish"
99

10-
id "edu.wpi.first.GradleRIO" version "2025.2.1"
10+
id "edu.wpi.first.GradleRIO" version "2026.1.1"
1111
id "com.diffplug.spotless" version "6.22.0"
1212
id "com.github.spotbugs" version "5.2.0"
1313
}
@@ -78,7 +78,7 @@ spotless {
7878
7979
"""
8080

81-
googleJavaFormat('1.13.0').aosp()
81+
googleJavaFormat('1.17.0').aosp()
8282

8383
trimTrailingWhitespace()
8484
endWithNewline()

settings.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ pluginManagement {
44
repositories {
55
mavenLocal()
66
gradlePluginPortal()
7-
String frcYear = '2025'
7+
String frcYear = '2026'
88
File frcHome
99
if (OperatingSystem.current().isWindows()) {
1010
String publicFolder = System.getenv('PUBLIC')

src/com/stuypulse/stuylib/control/Controller.java

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2025 StuyPulse Robotics. All rights reserved. */
1+
/* Copyright (c) 2026 StuyPulse Robotics. All rights reserved. */
22
/* This work is licensed under the terms of the MIT license */
33
/* found in the root directory of this project. */
44

@@ -86,22 +86,30 @@ public final Controller setOutputFilter(IFilter... outputFilter) {
8686
return this;
8787
}
8888

89-
/** @return the most recent setpoint of the controller */
89+
/**
90+
* @return the most recent setpoint of the controller
91+
*/
9092
public final double getSetpoint() {
9193
return mSetpoint;
9294
}
9395

94-
/** @return the most recent measurement of the controller */
96+
/**
97+
* @return the most recent measurement of the controller
98+
*/
9599
public final double getMeasurement() {
96100
return mMeasurement;
97101
}
98102

99-
/** @return the most recent output of the controller */
103+
/**
104+
* @return the most recent output of the controller
105+
*/
100106
public final double getOutput() {
101107
return mOutput;
102108
}
103109

104-
/** @return the most recent error of the controller */
110+
/**
111+
* @return the most recent error of the controller
112+
*/
105113
public final double getError() {
106114
return getSetpoint() - getMeasurement();
107115
}

src/com/stuypulse/stuylib/control/ControllerGroup.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2025 StuyPulse Robotics. All rights reserved. */
1+
/* Copyright (c) 2026 StuyPulse Robotics. All rights reserved. */
22
/* This work is licensed under the terms of the MIT license */
33
/* found in the root directory of this project. */
44

src/com/stuypulse/stuylib/control/angle/AngleController.java

Lines changed: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2025 StuyPulse Robotics. All rights reserved. */
1+
/* Copyright (c) 2026 StuyPulse Robotics. All rights reserved. */
22
/* This work is licensed under the terms of the MIT license */
33
/* found in the root directory of this project. */
44

@@ -82,22 +82,30 @@ public final AngleController setOutputFilter(IFilter... outputFilter) {
8282
return this;
8383
}
8484

85-
/** @return the most recent setpoint of the controller */
85+
/**
86+
* @return the most recent setpoint of the controller
87+
*/
8688
public final Angle getSetpoint() {
8789
return mSetpoint;
8890
}
8991

90-
/** @return the most recent measurement of the controller */
92+
/**
93+
* @return the most recent measurement of the controller
94+
*/
9195
public final Angle getMeasurement() {
9296
return mMeasurement;
9397
}
9498

95-
/** @return the most recent output of the controller */
99+
/**
100+
* @return the most recent output of the controller
101+
*/
96102
public final double getOutput() {
97103
return mOutput;
98104
}
99105

100-
/** @return the most recent error of the controller */
106+
/**
107+
* @return the most recent error of the controller
108+
*/
101109
public final Angle getError() {
102110
return getSetpoint().sub(getMeasurement());
103111
}

src/com/stuypulse/stuylib/control/angle/AngleControllerGroup.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2025 StuyPulse Robotics. All rights reserved. */
1+
/* Copyright (c) 2026 StuyPulse Robotics. All rights reserved. */
22
/* This work is licensed under the terms of the MIT license */
33
/* found in the root directory of this project. */
44

src/com/stuypulse/stuylib/control/angle/feedback/AnglePIDController.java

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2025 StuyPulse Robotics. All rights reserved. */
1+
/* Copyright (c) 2026 StuyPulse Robotics. All rights reserved. */
22
/* This work is licensed under the terms of the MIT license */
33
/* found in the root directory of this project. */
44

@@ -104,17 +104,23 @@ protected double calculate(Angle setpoint, Angle measurement) {
104104
}
105105
}
106106

107-
/** @return the P value being used by the PID controller. */
107+
/**
108+
* @return the P value being used by the PID controller.
109+
*/
108110
public double getP() {
109111
return Math.max(mP.doubleValue(), 0.0);
110112
}
111113

112-
/** @return the P value being used by the PID controller. */
114+
/**
115+
* @return the P value being used by the PID controller.
116+
*/
113117
public double getI() {
114118
return Math.max(mI.doubleValue(), 0.0);
115119
}
116120

117-
/** @return the P value being used by the PID controller. */
121+
/**
122+
* @return the P value being used by the PID controller.
123+
*/
118124
public double getD() {
119125
return Math.max(mD.doubleValue(), 0.0);
120126
}

src/com/stuypulse/stuylib/control/angle/feedforward/AngleArmFeedforward.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2025 StuyPulse Robotics. All rights reserved. */
1+
/* Copyright (c) 2026 StuyPulse Robotics. All rights reserved. */
22
/* This work is licensed under the terms of the MIT license */
33
/* found in the root directory of this project. */
44

src/com/stuypulse/stuylib/control/angle/feedforward/AnglePositionFeedforwardController.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2025 StuyPulse Robotics. All rights reserved. */
1+
/* Copyright (c) 2026 StuyPulse Robotics. All rights reserved. */
22
/* This work is licensed under the terms of the MIT license */
33
/* found in the root directory of this project. */
44

src/com/stuypulse/stuylib/control/feedback/PIDController.java

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* Copyright (c) 2025 StuyPulse Robotics. All rights reserved. */
1+
/* Copyright (c) 2026 StuyPulse Robotics. All rights reserved. */
22
/* This work is licensed under the terms of the MIT license */
33
/* found in the root directory of this project. */
44

@@ -110,17 +110,23 @@ protected double calculate(double setpoint, double measurement) {
110110
}
111111
}
112112

113-
/** @return the P value being used by the PID controller. */
113+
/**
114+
* @return the P value being used by the PID controller.
115+
*/
114116
public double getP() {
115117
return Math.max(mP.doubleValue(), 0.0);
116118
}
117119

118-
/** @return the P value being used by the PID controller. */
120+
/**
121+
* @return the P value being used by the PID controller.
122+
*/
119123
public double getI() {
120124
return Math.max(mI.doubleValue(), 0.0);
121125
}
122126

123-
/** @return the P value being used by the PID controller. */
127+
/**
128+
* @return the P value being used by the PID controller.
129+
*/
124130
public double getD() {
125131
return Math.max(mD.doubleValue(), 0.0);
126132
}

0 commit comments

Comments
 (0)