]> git.taranathan.com Git - FRC2026.git/commitdiff
i'm changing it back bc i don't know how to use autochooser
authormaxwtan <100314265+MaxwellTTan20@users.noreply.github.com>
Fri, 27 Feb 2026 06:31:07 +0000 (22:31 -0800)
committermaxwtan <100314265+MaxwellTTan20@users.noreply.github.com>
Fri, 27 Feb 2026 06:31:07 +0000 (22:31 -0800)
src/main/java/frc/robot/RobotContainer.java

index a77b29ba899185ad77454578446cff656de7bec8..df354e42c89509077259a1d04b5f701a63213204 100644 (file)
@@ -137,8 +137,9 @@ public class RobotContainer {
         PathGroupLoader.loadPathGroups();
         // Load the auto command
         try {
-          PathPlannerAuto.getPathGroupFromAutoFile("Command Name");
-          auto = new PathPlannerAuto("Path Name");
+          String leftSideAuto = "Left Side Auto";
+          PathPlannerAuto.getPathGroupFromAutoFile(leftSideAuto);
+          auto = new PathPlannerAuto(leftSideAuto);
         } catch (IOException | ParseException e) {
           e.printStackTrace();
         }
@@ -155,7 +156,7 @@ public class RobotContainer {
     LiveWindow.setEnabled(false);
 
     SmartDashboard.putData("Shutdown Orange Pis", new ShutdownAllPis());
-    autoChooserInit();
+    //autoChooserInit();
   }
 
   /**
@@ -191,8 +192,8 @@ public class RobotContainer {
 
     if (intake != null && spindexer != null){ 
       NamedCommands.registerCommand("Intake", new ParallelCommandGroup(
-        new InstantCommand(()->intake.spin(IntakeConstants.SPEED)),
-        new InstantCommand(()-> spindexer.setSpindexer(SpindexerConstants.spindexerMaxPower))
+        new InstantCommand(()->intake.spin(IntakeConstants.SPEED))
+        //new InstantCommand(()-> spindexer.setSpindexer(SpindexerConstants.spindexerMaxPower))
       ));
     }