Skip to content

Commit

Permalink
remove prev auto chooser code
Browse files Browse the repository at this point in the history
  • Loading branch information
kirbt committed Mar 16, 2024
1 parent 2692875 commit 25fadf8
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions src/main/java/frc/team2412/robot/Robot.java
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,6 @@ public static Robot getInstance() {
public MatchDashboard dashboard;
public AutoLogic autoLogic;

// public SendableChooser<Command> autoChooser;

protected Robot(RobotType type) {
// non public for singleton. Protected so test class can subclass
instance = this;
Expand Down Expand Up @@ -86,18 +84,11 @@ public void robotInit() {
controls = new Controls(subsystems);

AutoLogic.registerCommands();
// autoChooser = AutoBuilder.buildAutoChooser();
if (Subsystems.SubsystemConstants.DRIVEBASE_ENABLED) {
AutoLogic.initShuffleBoard();
}

// SmartDashboard.putData("Auto Chooser", autoChooser);
SmartDashboard.putString("current bot", getTypeFromAddress().toString());
// if (Subsystems.SubsystemConstants.DRIVEBASE_ENABLED) {
// autoChooser = AutoBuilder.buildAutoChooser();
// } else {
// autoChooser = new SendableChooser<>();
// }

Shuffleboard.startRecording();

Expand Down Expand Up @@ -147,8 +138,7 @@ public void autonomousInit() {

// Checks if FMS is attatched and enables joystick warning if true
DriverStation.silenceJoystickConnectionWarning(!DriverStation.isFMSAttached());
// autoChooser.getSelected().schedule();
System.out.println(AutoLogic.getSelected() != null);
// System.out.println(AutoLogic.getSelected() != null);
if (AutoLogic.getSelected() != null) {
AutoLogic.getSelected().schedule();
}
Expand Down

0 comments on commit 25fadf8

Please sign in to comment.