]> git.taranathan.com Git - FRC2026.git/commitdiff
fixed chooser
authoreileha <eileenhan369@gmail.com>
Wed, 18 Mar 2026 01:48:30 +0000 (18:48 -0700)
committereileha <eileenhan369@gmail.com>
Wed, 18 Mar 2026 01:48:30 +0000 (18:48 -0700)
src/main/java/frc/robot/RobotContainer.java

index 329a0fd6749714cd8fda353c089275a55bec9a7b..cccf69383dd4b0f4344309ec597a6b3755f0cf6d 100644 (file)
@@ -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");
         }