Skip to content

Commit

Permalink
added ShooterIOSparkMax as io for tankBot
Browse files Browse the repository at this point in the history
  • Loading branch information
StewardHail3433 committed Jan 20, 2024
1 parent 34f0053 commit cbc3b25
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
import edu.wpi.first.wpilibj2.command.button.CommandXboxController;
import frc.robot.commands.ShooterEnable;
import frc.robot.subsystems.shooter.ShooterIOSim;
import frc.robot.subsystems.shooter.ShooterIOSparkMax;
import frc.robot.subsystems.shooter.ShooterSubsystem;

public class RobotContainer {
Expand All @@ -20,12 +21,12 @@ public RobotContainer() {
controller = new CommandXboxController(0);

boolean swerveBot = false;
boolean tankBot = false;
boolean tankBot = true;

if (swerveBot) {
shooter = null;
} else if (tankBot) {
shooter = null;
shooter = new ShooterSubsystem(new ShooterIOSparkMax());
} else {
shooter = new ShooterSubsystem(new ShooterIOSim());
}
Expand Down

0 comments on commit cbc3b25

Please sign in to comment.