]> git.taranathan.com Git - FRC2026.git/commitdiff
add right dynamic
authorTaran Nathan <moogoesmeow123@gmail.com>
Sun, 3 May 2026 23:14:23 +0000 (18:14 -0500)
committerTaran Nathan <moogoesmeow123@gmail.com>
Sun, 3 May 2026 23:53:03 +0000 (18:53 -0500)
src/main/java/frc/robot/commands/auto_comm/ChoreoPathCommandBuilder.java

index 8216f71ca0c349c7996696f290a160f37d71f4de..ae84a9a973fa53b41c23dbf584dee963348ee791 100644 (file)
@@ -295,4 +295,33 @@ public class ChoreoPathCommandBuilder {
     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()));
+
+    shuttlingTrajectory.done().onTrue(Commands.sequence(
+        new InstantCommand(() -> {
+          hood.forceHoodDown(false);
+        }),
+        new RunSpindexerWithStop(spindexer, turret, hood, intake).raceWith(new IntakeMovementCommand(intake)),
+        new InstantCommand(() -> {
+          intake.extend();
+          intake.spinStart();
+          hood.forceHoodDown(true);
+        }),
+        shuttlingTrajectory.cmd()));
+
+    return routine;
+
+  }
 }