Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 19 additions & 9 deletions src/main/java/frc/robot/commands/TwoBallAuto.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,24 @@ public TwoBallAuto(Drivetrain drive, Shooter shooter, Indexer indexer, Intake in
// Add your commands in the addCommands() call, e.g.
// addCommands(new FooCommand(), new BarCommand());
addCommands(
new ShootCommand(ShooterConstants.kShooterFenderRPM, 4.0, shooter, indexer),
new ShootCommand(ShooterConstants.kShooterFenderRPM, 2.0, shooter, indexer),
new ParallelCommandGroup(
new RunCommand(
() -> {
intake.intakeBalls();
},
intake),
new RunCommand(
new RunCommand(
() -> {
intake.intakeBalls();
},
intake),
new RunCommand(
() -> {
drive.drive(0.5, 0.0);
},
drive)
.withTimeout(DrivetrainConstants.kAutoTime)),
drive))
.withTimeout(DrivetrainConstants.kAutoTime),
new InstantCommand(
() -> {
drive.drive(0.0, 0.0);
},
drive),
new InstantCommand(
() -> {
intake.retractIntake();
Expand All @@ -48,6 +53,11 @@ public TwoBallAuto(Drivetrain drive, Shooter shooter, Indexer indexer, Intake in
},
drive)
.withTimeout(DrivetrainConstants.kAutoTime),
new InstantCommand(
() -> {
drive.drive(0.0, 0.0);
},
drive),
new ShootCommand(ShooterConstants.kShooterFenderRPM, 4.0, shooter, indexer));
}
}