-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9272fa5
commit 79de485
Showing
1 changed file
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
package frc.robot; | ||
|
||
import edu.wpi.first.wpilibj2.command.Command; | ||
import frc.robot.commands.AutoAimShootCommand; | ||
import frc.robot.subsystems.AmpShooterSubsystem; | ||
import frc.robot.subsystems.CommandSwerveDrivetrain; | ||
import frc.robot.subsystems.ElevatorSubsystem; | ||
import frc.robot.subsystems.IntakeSubsystem; | ||
import frc.robot.subsystems.ShooterSubsystem; | ||
import frc.robot.subsystems.TurretSubsystem; | ||
|
||
public class AutoBuilder { | ||
private final ShooterSubsystem shooterSubsystem; | ||
private final TurretSubsystem turretSubsystem; | ||
private final IntakeSubsystem intakeSubsystem; | ||
private final AmpShooterSubsystem ampShooterSubsystem; | ||
private final CommandSwerveDrivetrain commandSwerveDrivetrain; | ||
private final ElevatorSubsystem elevatorSubsystem; | ||
|
||
public AutoBuilder(ShooterSubsystem shooterSubsystem, TurretSubsystem turretSubsystem, | ||
IntakeSubsystem intakeSubsystem, AmpShooterSubsystem ampShooterSubsystem, | ||
CommandSwerveDrivetrain commandSwerveDrivetrain, ElevatorSubsystem elevatorSubsystem) { | ||
this.shooterSubsystem = shooterSubsystem; | ||
this.turretSubsystem = turretSubsystem; | ||
this.intakeSubsystem = intakeSubsystem; | ||
this.ampShooterSubsystem = ampShooterSubsystem; | ||
this.commandSwerveDrivetrain = commandSwerveDrivetrain; | ||
this.elevatorSubsystem = elevatorSubsystem; | ||
} | ||
|
||
public Command AutoAimShoot() { | ||
return new AutoAimShootCommand(commandSwerveDrivetrain, turretSubsystem, shooterSubsystem); | ||
} | ||
} |