From b3f996841e1f7d78ed9c7bc11171ad7cb7587295 Mon Sep 17 00:00:00 2001 From: Mihir Patankar Date: Sun, 21 Apr 2024 21:14:26 -0500 Subject: [PATCH] get rid of robo rio serial number selection that doesnt work --- src/main/java/frc/robot/Constants.java | 22 +--------------------- 1 file changed, 1 insertion(+), 21 deletions(-) diff --git a/src/main/java/frc/robot/Constants.java b/src/main/java/frc/robot/Constants.java index 30b20a5..19f69d2 100644 --- a/src/main/java/frc/robot/Constants.java +++ b/src/main/java/frc/robot/Constants.java @@ -7,23 +7,14 @@ import edu.wpi.first.wpilibj.DriverStation; import edu.wpi.first.wpilibj.DriverStation.Alliance; import edu.wpi.first.wpilibj.Filesystem; -import edu.wpi.first.wpilibj.RobotController; import java.io.IOException; import java.nio.file.Path; import java.util.function.BooleanSupplier; public final class Constants { public static final Mode kCurrentMode = Mode.kReal; - public static final RobotName kRobot; - - static { - final String rioSerialNumber = RobotController.getSerialNumber(); - if (rioSerialNumber.equals(RobotName.kViper.rioSerialNumber)) kRobot = RobotName.kBlackMamba; - else if (rioSerialNumber.equals(RobotName.kBlackMamba.rioSerialNumber)) - kRobot = RobotName.kBlackMamba; - else kRobot = RobotName.kBlackMamba; - } + // Whether or not the current robot is Viper or Black Mamba public static final boolean kIsViper = false; public static final boolean kIsSim = Constants.kCurrentMode.equals(Mode.kSim); public static final String kDrivetrainCanBus = "CANivore1"; @@ -58,15 +49,4 @@ public static enum Mode { kSim, kReplay } - - public static enum RobotName { - kViper("032380FD"), - kBlackMamba("032243C9"); - - public final String rioSerialNumber; - - private RobotName(String rioSerialNumber) { - this.rioSerialNumber = rioSerialNumber; - } - } }