[hal] Add SystemCore to Java runtime type (#7932)

This commit is contained in:
Thad House
2025-04-28 08:10:32 -07:00
committed by GitHub
parent 36811211be
commit 85a8fc9943
3 changed files with 9 additions and 1 deletions

View File

@@ -13,7 +13,9 @@ public enum RuntimeType {
/** roboRIO 2.0. */
kRoboRIO2(HALUtil.RUNTIME_ROBORIO2),
/** Simulation runtime. */
kSimulation(HALUtil.RUNTIME_SIMULATION);
kSimulation(HALUtil.RUNTIME_SIMULATION),
/** SystemCore. */
kSystemCore(HALUtil.RUNTIME_SYSTEMCORE);
/** RuntimeType value. */
public final int value;
@@ -32,6 +34,7 @@ public enum RuntimeType {
return switch (type) {
case HALUtil.RUNTIME_ROBORIO -> RuntimeType.kRoboRIO;
case HALUtil.RUNTIME_ROBORIO2 -> RuntimeType.kRoboRIO2;
case HALUtil.RUNTIME_SYSTEMCORE -> RuntimeType.kSystemCore;
default -> RuntimeType.kSimulation;
};
}