Skip to content

Commit 1c62371

Browse files
committed
chore: cleanup for elastic
1 parent cbdbd94 commit 1c62371

File tree

1 file changed

+1
-10
lines changed

1 file changed

+1
-10
lines changed

src/main/java/frc/team5115/RobotContainer.java

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,7 @@
22

33
import com.pathplanner.lib.auto.AutoBuilder;
44
import edu.wpi.first.math.geometry.Rotation2d;
5-
import edu.wpi.first.networktables.GenericEntry;
65
import edu.wpi.first.wpilibj.PneumaticHub;
7-
import edu.wpi.first.wpilibj.shuffleboard.Shuffleboard;
86
import edu.wpi.first.wpilibj2.command.Command;
97
import edu.wpi.first.wpilibj2.command.Commands;
108
import edu.wpi.first.wpilibj2.command.button.CommandXboxController;
@@ -62,9 +60,6 @@ public class RobotContainer {
6260
private boolean hasFaults = true;
6361
private double faultPrintTimeout = 0;
6462

65-
// Works with faults
66-
private final GenericEntry clearForMatchEntry;
67-
6863
/** The container for the robot. Contains subsystems, OI devices, and commands. */
6964
public RobotContainer() {
7065
AutoConstants.precomputeAlignmentPoses(); // Computes robot starting pose with vision
@@ -86,8 +81,6 @@ public RobotContainer() {
8681
vision = new PhotonVision(new PhotonVisionIOReal(), drivetrain);
8782
bling = new Bling(new BlingIOReal());
8883
outtake = new Outtake(new OuttakeIOReal(hub));
89-
clearForMatchEntry =
90-
Shuffleboard.getTab("SmartDashboard").add("ClearForMatch", false).getEntry();
9184
break;
9285
case SIM:
9386
// Sim robot, instantiate physics sim IO implementations
@@ -98,7 +91,6 @@ public RobotContainer() {
9891
vision = new PhotonVision(new PhotonVisionIOSim(), drivetrain);
9992
bling = new Bling(new BlingIOSim());
10093
outtake = new Outtake(new OuttakeIOSim());
101-
clearForMatchEntry = null;
10294
break;
10395

10496
default:
@@ -110,7 +102,6 @@ public RobotContainer() {
110102
vision = new PhotonVision(new PhotonVisionIO() {}, drivetrain);
111103
bling = new Bling(new BlingIO() {});
112104
outtake = new Outtake(new OuttakeIO() {});
113-
clearForMatchEntry = null;
114105
break;
115106
}
116107

@@ -240,7 +231,7 @@ public void robotPeriodic() {
240231
}
241232
faultPrintTimeout -= 1;
242233
Logger.recordOutput("HasFaults", hasFaults);
243-
clearForMatchEntry.setBoolean(!hasFaults);
234+
Logger.recordOutput("ClearForMatch",!hasFaults);
244235
}
245236
}
246237

0 commit comments

Comments
 (0)