Skip to content

Commit

Permalink
fixy
Browse files Browse the repository at this point in the history
  • Loading branch information
Ishan1522 committed Nov 29, 2024
1 parent 75cf724 commit e8bc58f
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public static final class LogPaths {
public static final String PHYSICS_SIMULATION_PATH = "MaplePhysicsSimulation/";
}

public static final Mode currentMode = Mode.SIM;
public static final Mode CURRENT_MODE = Mode.SIM;

public static enum Mode {
/** Running on a real robot. */
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void robotInit() {
}

// Set up data receivers & replay source
switch (Constants.currentMode) {
switch (Constants.CURRENT_MODE) {
case REAL:
// Running on a real robot, log to a USB stick ("/U/logs")
Logger.addDataReceiver(new WPILOGWriter());
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ public class RobotContainer {
// private final XboxController driverController = new XboxController(0);

public RobotContainer() {
switch (Constants.currentMode) {
switch (Constants.CURRENT_MODE) {
case REAL -> {
/* Real robot, instantiate hardware IO implementations */

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static Queue<Angle> registerInput(Supplier<Angle> supplier) {
}

static OdometryThread createInstance(DeviceCANBus canBus) {
return switch (Constants.currentMode) {
return switch (Constants.CURRENT_MODE) {
case REAL ->
new OdometryThreadReal(
canBus,
Expand Down

0 comments on commit e8bc58f

Please sign in to comment.