@@ -37,8 +37,7 @@ public class RobotContainer {
3737 public static boolean isExtended = false ;
3838
3939 private Command shootGroup =
40- Commands .parallel (
41- new KickerCommand (kicker , KickerCommand .Position .INTAKE ))
40+ Commands .parallel (new KickerCommand (kicker , KickerCommand .Position .INTAKE ))
4241 .finallyDo (
4342 interrupt ->
4443 CommandScheduler .getInstance ()
@@ -48,17 +47,18 @@ public class RobotContainer {
4847 () -> hopper .stop (),
4948 hopper )
5049 .withDeadline (Commands .waitSeconds (2 ))));
51- private Command hopperShoot = Commands .repeatingSequence (
50+ private Command hopperShoot =
51+ Commands .repeatingSequence (
5252 Commands .runEnd (
53- () -> hopper .slowMove (HopperConfig .HOPPER_RETRACT_ROTATION ),
54- () -> hopper .stop (),
55- hopper )
56- .withDeadline (Commands .waitSeconds (.75 )),
53+ () -> hopper .slowMove (HopperConfig .HOPPER_RETRACT_ROTATION ),
54+ () -> hopper .stop (),
55+ hopper )
56+ .withDeadline (Commands .waitSeconds (.75 )),
5757 Commands .runEnd (
58- () -> hopper .slowMove (HopperConfig .HOPPER_EXTEND_ROTATION ),
59- () -> hopper .stop (),
60- hopper )
61- .withDeadline (Commands .waitSeconds (.75 )));
58+ () -> hopper .slowMove (HopperConfig .HOPPER_EXTEND_ROTATION ),
59+ () -> hopper .stop (),
60+ hopper )
61+ .withDeadline (Commands .waitSeconds (.75 )));
6262
6363 public RobotContainer () {
6464
@@ -123,22 +123,27 @@ private void configureBindings() {
123123
124124 /* Controls */
125125 // Y = Shoot Toggle
126- controller .y ().toggleOnTrue (shootGroup .alongWith (hopperShoot ).alongWith (new IntakeCommand (intake , IntakeCommand .Position .SLOW_INTAKE )));
126+ controller
127+ .y ()
128+ .toggleOnTrue (
129+ shootGroup
130+ .alongWith (hopperShoot )
131+ .alongWith (new IntakeCommand (intake , IntakeCommand .Position .SLOW_INTAKE )));
127132 // X = Intake Toggle
128133 controller
129134 .x ()
130135 .and (() -> !shootGroup .isScheduled ())
131136 .toggleOnTrue (new IntakeCommand (intake , IntakeCommand .Position .INTAKE ));
132137 // Left Plus = Kicker Outtake Toggle
133138 controller
134- .povLeft ()
135- .and (() -> !shootGroup .isScheduled ())
136- .toggleOnTrue (new KickerCommand (kicker , KickerCommand .Position .OUTTAKE ));
139+ .povLeft ()
140+ .and (() -> !shootGroup .isScheduled ())
141+ .toggleOnTrue (new KickerCommand (kicker , KickerCommand .Position .OUTTAKE ));
137142 // Right Plus = Intake Outtake Toggle
138143 controller
139- .povRight ()
140- .and (() -> !shootGroup .isScheduled ())
141- .toggleOnTrue (new IntakeCommand (intake , IntakeCommand .Position .OUTTAKE ));
144+ .povRight ()
145+ .and (() -> !shootGroup .isScheduled ())
146+ .toggleOnTrue (new IntakeCommand (intake , IntakeCommand .Position .OUTTAKE ));
142147 // Right Stick Down = Extend/Retract Hopper
143148 controller
144149 .rightStick ()
0 commit comments