mirror of
https://github.com/wpilibsuite/allwpilib
synced 2026-06-23 01:21:42 +00:00
Change SystemCore to Systemcore (#8359)
This commit is contained in:
@@ -172,7 +172,7 @@ public abstract class RobotBase implements AutoCloseable {
|
||||
*/
|
||||
public static boolean isReal() {
|
||||
RuntimeType runtimeType = getRuntimeType();
|
||||
return runtimeType == RuntimeType.kSystemCore;
|
||||
return runtimeType == RuntimeType.kSystemcore;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -9,22 +9,22 @@ import org.wpilib.math.geometry.Quaternion;
|
||||
import org.wpilib.math.geometry.Rotation2d;
|
||||
import org.wpilib.math.geometry.Rotation3d;
|
||||
|
||||
/** SystemCore onboard IMU. */
|
||||
/** Systemcore onboard IMU. */
|
||||
public class OnboardIMU {
|
||||
/** A mount orientation of SystemCore. */
|
||||
/** A mount orientation of Systemcore. */
|
||||
public enum MountOrientation {
|
||||
/** Flat (mounted parallel to the ground). */
|
||||
kFlat,
|
||||
/** Landscape (vertically mounted with long edge of SystemCore parallel to the ground). */
|
||||
/** Landscape (vertically mounted with long edge of Systemcore parallel to the ground). */
|
||||
kLandscape,
|
||||
/** Portrait (vertically mounted with the short edge of SystemCore parallel to the ground). */
|
||||
/** Portrait (vertically mounted with the short edge of Systemcore parallel to the ground). */
|
||||
kPortrait
|
||||
}
|
||||
|
||||
/**
|
||||
* Constructs a handle to the SystemCore onboard IMU.
|
||||
* Constructs a handle to the Systemcore onboard IMU.
|
||||
*
|
||||
* @param mountOrientation the mount orientation of SystemCore to determine yaw.
|
||||
* @param mountOrientation the mount orientation of Systemcore to determine yaw.
|
||||
*/
|
||||
public OnboardIMU(MountOrientation mountOrientation) {
|
||||
m_mountOrientation = mountOrientation;
|
||||
|
||||
@@ -14,8 +14,8 @@ public enum RuntimeType {
|
||||
kRoboRIO2(HALUtil.RUNTIME_ROBORIO2),
|
||||
/** Simulation runtime. */
|
||||
kSimulation(HALUtil.RUNTIME_SIMULATION),
|
||||
/** SystemCore. */
|
||||
kSystemCore(HALUtil.RUNTIME_SYSTEMCORE);
|
||||
/** Systemcore. */
|
||||
kSystemcore(HALUtil.RUNTIME_SYSTEMCORE);
|
||||
|
||||
/** RuntimeType value. */
|
||||
public final int value;
|
||||
@@ -34,7 +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;
|
||||
case HALUtil.RUNTIME_SYSTEMCORE -> RuntimeType.kSystemcore;
|
||||
default -> RuntimeType.kSimulation;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user