From: eileha Date: Wed, 18 Mar 2026 01:48:30 +0000 (-0700) Subject: fixed chooser X-Git-Url: https://git.taranathan.com/?a=commitdiff_plain;h=36c845eae1ff059360bae616fa1719b4c4ebf7a3;p=FRC2026.git fixed chooser --- diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index 329a0fd..cccf693 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -134,15 +134,19 @@ public class RobotContainer { driver.configureControls(); operator.configureControls(); - initializeAutoBuilder(); + registerCommands(); PathGroupLoader.loadPathGroups(); initializeAutoBuilder(); + autoChooserInit(); // put the Chooser on the SmartDashboard + SmartDashboard.putData("Auto chooser", autoChooser); + + if (turret != null) { turret.setDefaultCommand(new Superstructure(turret, drive, hood, shooter, spindexer)); } @@ -239,12 +243,12 @@ public class RobotContainer { public void addAuto(String name){ try{ - PathPlannerAuto.getPathGroupFromAutoFile(name); + //PathPlannerAuto.getPathGroupFromAutoFile(name); auto = new PathPlannerAuto(name); autoChooser.addOption(name, auto); } // is this the right one?? - catch (IOException | ParseException e) { + catch (AutoBuilderException e) { e.printStackTrace(); System.out.println("HELLOOOO AUTO NOT FOUD"); }