Skip to content

Commit

Permalink
Clean up RobotContainer.java
Browse files Browse the repository at this point in the history
	modified:   src/main/java/frc/robot/RobotContainer.java
  • Loading branch information
tbowers7 committed Feb 8, 2025
1 parent e758a38 commit 7041dba
Showing 1 changed file with 7 additions and 25 deletions.
32 changes: 7 additions & 25 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -246,20 +246,6 @@ public RobotContainer() {
new PowerMonitoring(
batteryCapacity, m_elevator, m_coralScorer, m_intake, m_algaeMech, m_climber);

// Idk where this is suppose to go. but I think this works, just setting up auto commands
NamedCommands.registerCommand("L4", new ElevatorCommand(72, 40, 40, m_elevator));

NamedCommands.registerCommand("L3", new ElevatorCommand(50, 40, 40, m_elevator));

NamedCommands.registerCommand("L2", new ElevatorCommand(32, 40, 40, m_elevator));

NamedCommands.registerCommand(
"Bottom", new ElevatorCommand(0, 10, 20, m_elevator).until(m_elevator::getBottomStop));

NamedCommands.registerCommand("CoralScorer", (Commands.print("CoralScorer")));

NamedCommands.registerCommand("CoralDetect", (Commands.print("CoralDetect")));

// Set up the SmartDashboard Auto Chooser based on auto type
switch (Constants.getAutoType()) {
case PATHPLANNER:
Expand Down Expand Up @@ -303,7 +289,13 @@ public RobotContainer() {
/** Use this method to define your Autonomous commands for use with PathPlanner / Choreo */
private void defineAutoCommands() {

// NamedCommands.registerCommand("Zero", Commands.runOnce(() -> m_drivebase.zero()));
NamedCommands.registerCommand("L4", new ElevatorCommand(72, 40, 40, m_elevator));
NamedCommands.registerCommand("L3", new ElevatorCommand(50, 40, 40, m_elevator));
NamedCommands.registerCommand("L2", new ElevatorCommand(32, 40, 40, m_elevator));
NamedCommands.registerCommand(
"Bottom", new ElevatorCommand(0, 10, 20, m_elevator).until(m_elevator::getBottomStop));
NamedCommands.registerCommand("CoralScorer", (Commands.print("CoralScorer")));
NamedCommands.registerCommand("CoralDetect", (Commands.print("CoralDetect")));
}

/**
Expand Down Expand Up @@ -412,16 +404,6 @@ private void configureBindings() {
m_drivebase)
.ignoringDisable(true));

// Press RIGHT BUMPER --> Run the example flywheel
// driverController
// .rightBumper()
// .whileTrue(
// Commands.startEnd(
// () -> m_flywheel.runVelocity(flywheelSpeedInput.get()),
// m_flywheel::stop,

// m_flywheel));

driverController
.leftBumper()
.whileTrue(Commands.startEnd(() -> m_elevator.runVolts(-1), m_elevator::stop, m_elevator));
Expand Down

0 comments on commit 7041dba

Please sign in to comment.