From cbc3b2578124dd3e5556c1b5b567fa371acd21c2 Mon Sep 17 00:00:00 2001 From: Ethan Porter Date: Sat, 20 Jan 2024 12:04:06 -0500 Subject: [PATCH] added ShooterIOSparkMax as io for tankBot --- src/main/java/frc/robot/RobotContainer.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main/java/frc/robot/RobotContainer.java b/src/main/java/frc/robot/RobotContainer.java index f7572c7c..b51d5126 100644 --- a/src/main/java/frc/robot/RobotContainer.java +++ b/src/main/java/frc/robot/RobotContainer.java @@ -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 { @@ -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()); }