@@ -25,21 +25,22 @@ public ShooterFiringSequence(double waitDuration) {
25
25
// super(new FooCommand(), new BarCommand());
26
26
super ();
27
27
28
- // shooting.
28
+ // Prepare for shooting.
29
29
addCommands (new ParallelCommandGroup ( // prepare for shooting,
30
- new AirCompressorPause (), // Turn off compressor while actively shooting,
30
+ new AirCompressorPause (), // turn off compressor while actively shooting,
31
31
new IntakeSetPosition (RobotContainer .intake .PIVOT_DOWN ), // ensure intake is lowered,
32
- new ShooterAimToTarget ())); // take one last aim at the target before starting
32
+ new ShooterAimToTarget ())); // and aim at the target (azimuth and elevation).
33
33
34
+ // prior command established aim; turn on the shooter wheels and maintain turret
34
35
addCommands (new ParallelRaceGroup (new ShooterWheelSetToTarget (true ), new TurretAimToTargetContinuously ()));
35
36
36
37
// turn on the feeder, wait 0.1, turn on the Chimney, wait 0.1, turn on the
37
- // revolver turntable, shoot for specified duration
38
+ // revolver turntable, shoot for specified duration.
38
39
// TODO: should really shoot until no balls detected any more
39
40
addCommands (new ParallelRaceGroup ( //
40
41
new TurretAimToTargetContinuously (), // continue aiming while shooting
41
42
new FeederSet (1.0 ), new SequentialCommandGroup (new Wait (0.1 ), new ChimneySet (1.0 )),
42
- new SequentialCommandGroup (new Wait (0.2 ), new RevolverSetTurntable (0.5 )), new Wait (waitDuration )));
43
+ new SequentialCommandGroup (new Wait (0.2 ), new RevolverSetTurntable (1.0 )), new Wait (waitDuration )));
43
44
44
45
// turn off the feeder, chimney, and revolver, ending after 0.1 seconds
45
46
addCommands (new ShooterCeaseFire ());
0 commit comments