@@ -111,8 +111,7 @@ public class RobotContainer {
111111 "Right Limelight 4 Piece" , "Left Limelight 4 Piece" ,
112112 "Center Limelight 4 Piece" , "Center Limelight 4 Piece Path Following" ,
113113
114- "Left-Amp" ,
115-
114+ "Left-Amp" ,
116115 };
117116 DigitalInput [] autoSelectors =
118117 new DigitalInput [Math .min (autoNames .length , 10 )];
@@ -141,7 +140,7 @@ public RobotContainer() {
141140 for (String n : autoNames ) {
142141 autoSelector .addOption (n , i );
143142 i ++;
144- }
143+ }
145144
146145 ShuffleboardTab autoSelectorTab = Shuffleboard .getTab ("Auto Chooser Tab" );
147146 autoSelectorTab .add (autoSelector ).withSize (2 , 1 );
@@ -220,6 +219,9 @@ private void setBindingsManipulator() {
220219 new SequentialCommandGroup (new AimArmSpeaker (arm , limelight ),
221220 new PassToOuttake (intakeShooter )));
222221
222+ // axisTrigger(manipulatorController, Manipulator.SHOOTER_BUTTON).whileTrue(
223+ // new PassToOuttake(intakeShooter));
224+
223225 new JoystickButton (manipulatorController , RAMP_OUTTAKE )
224226 .whileTrue (new RampMaxRPM (intakeShooter ));
225227 new JoystickButton (manipulatorController , OPPOSITE_EJECT )
@@ -359,9 +361,10 @@ private void registerAutoCommands() {
359361 NamedCommands .registerCommand ("AlignToAprilTagMegaTag2" ,
360362 new AlignToApriltag (drivetrain , limelight ));
361363 NamedCommands .registerCommand ("Shoot" , new SequentialCommandGroup (
362- new ParallelCommandGroup (new AlignToApriltag (drivetrain , limelight ),
363- new AimArmSpeaker (arm , limelight )),
364- new RampRPMAuton (intakeShooter ), new PassToOuttake (intakeShooter ),
364+ new ParallelCommandGroup (new AlignDrivetrain (drivetrain ),
365+ new AimArmSpeaker (arm , limelight ),
366+ new RampRPMAuton (intakeShooter )),
367+ new PassToOuttake (intakeShooter ),
365368 new ArmToPos (arm , GROUND_INTAKE_POS )));
366369 NamedCommands .registerCommand ("Limelight Intake CCW" ,
367370 new ParallelCommandGroup (new Intake (intakeShooter ),
@@ -372,19 +375,18 @@ private void registerAutoCommands() {
372375 new AutoMATICALLYGetNote (drivetrain , limelight ,
373376 intakeShooter , -1 )));
374377
375-
376378 NamedCommands .registerCommand ("StopIntake" ,
377379 new InstantCommand (intakeShooter ::stopIntake ));
378380 NamedCommands .registerCommand ("StopOutake" ,
379381 new InstantCommand (intakeShooter ::stopOuttake ));
380382 NamedCommands .registerCommand ("StopBoth" ,
381383 new ParallelCommandGroup (new InstantCommand (intakeShooter ::stopIntake ),
382- new InstantCommand (intakeShooter ::stopOuttake )));
383- for (int i = 0 ; i < 6 ; i ++) {
384- NamedCommands .registerCommand ("Follow Center Limelight " + i ,
385- new AutonPathfind (drivetrain , "Center Limelight " + i ));
386- }
384+ new InstantCommand (intakeShooter ::stopOuttake )));
387385
386+ NamedCommands .registerCommand ("Auto Intake" ,
387+ new SequentialCommandGroup (
388+ new AlignToNoteMath (drivetrain , intakeShooter ),
389+ new DriveAndIntake (intakeShooter , drivetrain )));
388390 }
389391
390392 private void setupAutos () {
@@ -402,7 +404,7 @@ private void setupAutos() {
402404 * PathPlannerAuto.getPathGroupFromAutoFile(name).get(0).getPreviewStartingHolonomicPose(),
403405 * Autoc.pathConstraints ), new PathPlannerAuto(name) );
404406 */
405- }
407+ }
406408 }
407409
408410
0 commit comments