Skip to content

Commit e0de8b7

Browse files
committed
Merge branch '2025' into SimpleMechAddOn
2 parents a38a5de + 30e2947 commit e0de8b7

20 files changed

+2262
-491
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://deepbluerobotics.github.io/lib199/).
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/).
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: 0 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@ 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-
1916
static {
2017
ensureRegistered();
2118
}
@@ -43,37 +40,10 @@ public static void registerPeriodic(Runnable method) {
4340
periodicMethods.add(method);
4441
}
4542

46-
@Deprecated
47-
/**
48-
* @deprecated Use registerSimulationPeriodic
49-
* @param method
50-
*/
51-
public static void simulationPeriodic(Runnable method) {
52-
registerSimulationPeriodic(method);
53-
}
54-
5543
public static void registerSimulationPeriodic(Runnable method) {
5644
periodicSimulationMethods.add(method);
5745
}
5846

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-
7747
@Override
7848
public void periodic() {
7949
periodicMethods.forEach(RUN_RUNNABLE);
@@ -84,13 +54,6 @@ public void simulationPeriodic() {
8454
periodicSimulationMethods.forEach(RUN_RUNNABLE);
8555
}
8656

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

9659
}

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

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

33
public class MotorConfig {
44

5-
public static final MotorConfig NEO = new MotorConfig(70, 40);
6-
public static final MotorConfig NEO_550 = new MotorConfig(40, 20);
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
78

89
// The temp limit of 100C for the Vortex is based on the fact that its temp sensors are mounted directly on the
910
// windings (which is not the case for the Neo or Neo550, causing them to have very delayed temp readings) and the
1011
// fact that the winding enamel will melt at 140C.
1112
// See: https://www.chiefdelphi.com/t/rev-robotics-spark-flex-and-neo-vortex/442595/349?u=brettle
1213
// As a result I think 100C should be safe. I wouldn't increase it past 120. --Dean
13-
public static final MotorConfig NEO_VORTEX = new MotorConfig(100, 60);
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);
1416
public final int temperatureLimitCelsius, currentLimitAmps;
17+
public final MotorControllerType controllerType;
1518

16-
public MotorConfig(int temperatureLimitCelsius, int currentLimitAmps) {
19+
public MotorConfig(int temperatureLimitCelsius, int currentLimitAmps, MotorControllerType controllerType) {
1720
this.temperatureLimitCelsius = temperatureLimitCelsius;
1821
this.currentLimitAmps = currentLimitAmps;
22+
this.controllerType = controllerType;
1923
}
2024

25+
public MotorControllerType getControllerType() {
26+
return controllerType;
27+
}
2128
}

0 commit comments

Comments
 (0)