]> git.taranathan.com Git - FRC2026.git/commitdiff
super shuttling code
authorTaran Nathan <moogoesmeow123@gmail.com>
Sun, 3 May 2026 23:09:35 +0000 (18:09 -0500)
committerTaran Nathan <moogoesmeow123@gmail.com>
Sun, 3 May 2026 23:52:54 +0000 (18:52 -0500)
super shuttling right

src/main/java/frc/robot/commands/auto_comm/ChoreoPathCommandBuilder.java

index ae39311a9c07489a291d3f215a2a8924b46ee923..9485c0249579e3b329e2a4221aecbca3ab02c33c 100644 (file)
@@ -111,7 +111,6 @@ public class ChoreoPathCommandBuilder {
 
   }
 
-  
   public AutoRoutine leftConservative(AutoFactory factory) {
     AutoRoutine routine = factory.newRoutine("leftConservative");
 
@@ -267,4 +266,38 @@ public class ChoreoPathCommandBuilder {
     return routine;
 
   }
+
+  public AutoRoutine leftSuperShuttling(AutoFactory factory) {
+    AutoRoutine routine = factory.newRoutine("leftSuperShuttling");
+
+    AutoTrajectory shuttlingTrajectory = routine.trajectory("superShuttling");
+
+    routine.active().onTrue(Commands.sequence(
+        shuttlingTrajectory.resetOdometry(),
+        new InstantCommand(() -> {
+          intake.extend();
+          intake.spinStart();
+        }),
+        shuttlingTrajectory.cmd()));
+
+    return routine;
+
+  }
+
+  public AutoRoutine rightSuperShuttling(AutoFactory factory) {
+    AutoRoutine routine = factory.newRoutine("rightSuperShuttling");
+
+    AutoTrajectory shuttlingTrajectory = routine.trajectory("superShuttling").mirrorY();
+
+    routine.active().onTrue(Commands.sequence(
+        shuttlingTrajectory.resetOdometry(),
+        new InstantCommand(() -> {
+          intake.extend();
+          intake.spinStart();
+        }),
+        shuttlingTrajectory.cmd()));
+
+    return routine;
+
+  }
 }