Skip to content

Commit 39fbba7

Browse files
committed
Revert "Merge branch '2025' into SimpleMechAddOn"
This reverts commit e0de8b7, reversing changes made to a38a5de.
1 parent e0de8b7 commit 39fbba7

20 files changed

+491
-2262
lines changed

.github/workflows/javadoc.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,4 +34,4 @@ jobs:
3434
steps:
3535
- name: Deploy to GitHub Pages
3636
id: deployment
37-
uses: actions/deploy-pages@v4
37+
uses: actions/deploy-pages@v4

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# FRC Team 199 Library
22

3-
This projects builds `lib199.jar` which contains code that reuse across projects/years. The javadocs can be found [here](https://docs.carlmontrobotics.org/lib199/).
3+
This projects builds `lib199.jar` which contains code that reuse across projects/years. The javadocs can be found [here](https://deepbluerobotics.github.io/lib199/).
44

55
## Changelog
66
A changelog is automatically generated with each release and is available on the [Releases](https://github.com/DeepBlueRobotics/lib199/releases) page. Please write documentation for all changes and, if significant enough, add appropriate information to the [programming training website](https://deep-blue-training.readthedocs.io/en/latest/).

src/main/java/org/carlmontrobotics/lib199/Lib199Subsystem.java

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ public class Lib199Subsystem implements Subsystem {
1313
private static final CopyOnWriteArrayList<Runnable> periodicSimulationMethods = new CopyOnWriteArrayList<>();
1414
private static final Consumer<Runnable> RUN_RUNNABLE = Runnable::run;
1515

16+
@Deprecated
17+
public static final long asyncSleepTime = 20;
18+
1619
static {
1720
ensureRegistered();
1821
}
@@ -40,10 +43,37 @@ public static void registerPeriodic(Runnable method) {
4043
periodicMethods.add(method);
4144
}
4245

46+
@Deprecated
47+
/**
48+
* @deprecated Use registerSimulationPeriodic
49+
* @param method
50+
*/
51+
public static void simulationPeriodic(Runnable method) {
52+
registerSimulationPeriodic(method);
53+
}
54+
4355
public static void registerSimulationPeriodic(Runnable method) {
4456
periodicSimulationMethods.add(method);
4557
}
4658

59+
@Deprecated
60+
/**
61+
* @deprecated Use registerPeriodic
62+
* @param method
63+
*/
64+
public static void registerAsyncPeriodic(Runnable method) {
65+
registerPeriodic(method);
66+
}
67+
68+
@Deprecated
69+
/**
70+
* @deprecated Use registerSimulationPeriodic
71+
* @param method
72+
*/
73+
public static void registerAsyncSimulationPeriodic(Runnable method) {
74+
registerSimulationPeriodic(method);
75+
}
76+
4777
@Override
4878
public void periodic() {
4979
periodicMethods.forEach(RUN_RUNNABLE);
@@ -54,6 +84,13 @@ public void simulationPeriodic() {
5484
periodicSimulationMethods.forEach(RUN_RUNNABLE);
5585
}
5686

87+
@Deprecated
88+
/**
89+
* No longer does anything.
90+
*/
91+
public synchronized void asyncPeriodic() {
92+
}
93+
5794
private Lib199Subsystem() {}
5895

5996
}

src/main/java/org/carlmontrobotics/lib199/MotorConfig.java

Lines changed: 4 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,27 +2,20 @@
22

33
public class MotorConfig {
44

5-
public static final MotorConfig NEO = new MotorConfig(70, 40, MotorControllerType.SPARK_MAX);
6-
public static final MotorConfig NEO_550 = new MotorConfig(70, 40, MotorControllerType.SPARK_MAX);
7-
public static final MotorConfig NEO_2 = new MotorConfig(70, 40, MotorControllerType.SPARK_MAX); //TODO: find the max temp for NEO 2.0
5+
public static final MotorConfig NEO = new MotorConfig(70, 40);
6+
public static final MotorConfig NEO_550 = new MotorConfig(40, 20);
87

98
// The temp limit of 100C for the Vortex is based on the fact that its temp sensors are mounted directly on the
109
// windings (which is not the case for the Neo or Neo550, causing them to have very delayed temp readings) and the
1110
// fact that the winding enamel will melt at 140C.
1211
// See: https://www.chiefdelphi.com/t/rev-robotics-spark-flex-and-neo-vortex/442595/349?u=brettle
1312
// As a result I think 100C should be safe. I wouldn't increase it past 120. --Dean
14-
public static final MotorConfig NEO_VORTEX = new MotorConfig(100, 40, MotorControllerType.SPARK_FLEX);
15-
public static final MotorConfig NEO_SOLO_VORTEX = new MotorConfig(100, 40, MotorControllerType.SPARK_MAX);
13+
public static final MotorConfig NEO_VORTEX = new MotorConfig(100, 60);
1614
public final int temperatureLimitCelsius, currentLimitAmps;
17-
public final MotorControllerType controllerType;
1815

19-
public MotorConfig(int temperatureLimitCelsius, int currentLimitAmps, MotorControllerType controllerType) {
16+
public MotorConfig(int temperatureLimitCelsius, int currentLimitAmps) {
2017
this.temperatureLimitCelsius = temperatureLimitCelsius;
2118
this.currentLimitAmps = currentLimitAmps;
22-
this.controllerType = controllerType;
2319
}
2420

25-
public MotorControllerType getControllerType() {
26-
return controllerType;
27-
}
2821
}

0 commit comments

Comments
 (0)