From 25fadf83f35030945e826bb1e5c56916b824523c Mon Sep 17 00:00:00 2001 From: kirby Date: Sat, 16 Mar 2024 16:04:56 -0700 Subject: [PATCH] remove prev auto chooser code --- src/main/java/frc/team2412/robot/Robot.java | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/main/java/frc/team2412/robot/Robot.java b/src/main/java/frc/team2412/robot/Robot.java index c4918f21..a3af4675 100644 --- a/src/main/java/frc/team2412/robot/Robot.java +++ b/src/main/java/frc/team2412/robot/Robot.java @@ -49,8 +49,6 @@ public static Robot getInstance() { public MatchDashboard dashboard; public AutoLogic autoLogic; - // public SendableChooser autoChooser; - protected Robot(RobotType type) { // non public for singleton. Protected so test class can subclass instance = this; @@ -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(); @@ -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(); }