File tree 3 files changed +9
-1
lines changed
wpilibj/src/main/java/edu/wpi/first/wpilibj
3 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -43,6 +43,9 @@ public final class HALUtil extends JNIWrapper {
43
43
/** Simulation runtime. */
44
44
public static final int RUNTIME_SIMULATION = 2 ;
45
45
46
+ /** SystemCore. */
47
+ public static final int RUNTIME_SYSTEMCORE = 3 ;
48
+
46
49
/**
47
50
* Returns the FPGA Version number.
48
51
*
Original file line number Diff line number Diff line change @@ -35,6 +35,8 @@ static_assert(edu_wpi_first_hal_HALUtil_RUNTIME_ROBORIO2 ==
35
35
HAL_Runtime_RoboRIO2);
36
36
static_assert (edu_wpi_first_hal_HALUtil_RUNTIME_SIMULATION ==
37
37
HAL_Runtime_Simulation);
38
+ static_assert (edu_wpi_first_hal_HALUtil_RUNTIME_SYSTEMCORE ==
39
+ HAL_Runtime_SystemCore);
38
40
39
41
static JavaVM* jvm = nullptr ;
40
42
static JException illegalArgExCls;
Original file line number Diff line number Diff line change @@ -13,7 +13,9 @@ public enum RuntimeType {
13
13
/** roboRIO 2.0. */
14
14
kRoboRIO2 (HALUtil .RUNTIME_ROBORIO2 ),
15
15
/** Simulation runtime. */
16
- kSimulation (HALUtil .RUNTIME_SIMULATION );
16
+ kSimulation (HALUtil .RUNTIME_SIMULATION ),
17
+ /** SystemCore. */
18
+ kSystemCore (HALUtil .RUNTIME_SYSTEMCORE );
17
19
18
20
/** RuntimeType value. */
19
21
public final int value ;
@@ -32,6 +34,7 @@ public static RuntimeType getValue(int type) {
32
34
return switch (type ) {
33
35
case HALUtil .RUNTIME_ROBORIO -> RuntimeType .kRoboRIO ;
34
36
case HALUtil .RUNTIME_ROBORIO2 -> RuntimeType .kRoboRIO2 ;
37
+ case HALUtil .RUNTIME_SYSTEMCORE -> RuntimeType .kSystemCore ;
35
38
default -> RuntimeType .kSimulation ;
36
39
};
37
40
}
You can’t perform that action at this time.
0 commit comments