Skip to content

Commit

Permalink
Cleaned up basic multi-robot config
Browse files Browse the repository at this point in the history
  • Loading branch information
BrownGenius committed Jan 20, 2024
1 parent bb4cc32 commit b7e22db
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

package frc.robot;

// import edu.wpi.first.wpilibj.XboxController;
import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.Commands;
import edu.wpi.first.wpilibj2.command.InstantCommand;
Expand All @@ -25,17 +24,18 @@ public class RobotContainer {
public RobotContainer() {
controller = new CommandXboxController(0);

boolean swerveBot = false;
boolean tankBot = true;
boolean hasIntake = false;
boolean hasShooter = false;

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

if (hasIntake) {
intake = null;
} else {
intake = new IntakeBase(new IntakeIOSim());
}

Expand Down

0 comments on commit b7e22db

Please sign in to comment.