Skip to content

Commit

Permalink
Clarify what serial number
Browse files Browse the repository at this point in the history
  • Loading branch information
mpatankar6 committed Mar 29, 2024
1 parent fb9604a commit 874425c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/main/java/frc/robot/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ public final class Constants {

static {
final String rioSerialNumber = RobotController.getSerialNumber();
if (rioSerialNumber.equals(RobotName.kViper.serialNumber)) kRobot = RobotName.kViper;
else if (rioSerialNumber.equals(RobotName.kBlackMamba.serialNumber))
if (rioSerialNumber.equals(RobotName.kViper.rioSerialNumber)) kRobot = RobotName.kViper;
else if (rioSerialNumber.equals(RobotName.kBlackMamba.rioSerialNumber))
kRobot = RobotName.kBlackMamba;
else kRobot = RobotName.kBlackMamba;
}
Expand Down Expand Up @@ -63,10 +63,10 @@ public static enum RobotName {
kViper("032380FD"),
kBlackMamba("032243C9");

public String serialNumber;
public String rioSerialNumber;

private RobotName(String serialNumber) {
this.serialNumber = serialNumber;
private RobotName(String rioSerialNumber) {
this.rioSerialNumber = rioSerialNumber;
}
}
}

0 comments on commit 874425c

Please sign in to comment.