Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
finnsherman committed Feb 17, 2024
1 parent 9272fa5 commit 79de485
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions src/main/java/frc/robot/AutoBuilder.java
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);
}
}

0 comments on commit 79de485

Please sign in to comment.