Skip to content

Commit

Permalink
Made it so code stops
Browse files Browse the repository at this point in the history
  • Loading branch information
Twilight420 committed Dec 6, 2023
1 parent 9258a89 commit 5bac84a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion src/main/java/frc/robot/Commands/IntakeCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,9 @@ public void execute() {

// Called once the command ends or is interrupted.
@Override
public void end(boolean interrupted) {}
public void end(boolean interrupted) {
subsystem.setIntakePower(0);
}

// Returns true when the command should end.
@Override
Expand Down
4 changes: 3 additions & 1 deletion src/main/java/frc/robot/Commands/OutakeCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,9 @@ public void execute() {

// Called once the command ends or is interrupted.
@Override
public void end(boolean interrupted) {}
public void end(boolean interrupted) {
subsystem.setOutakePower(0);
}

// Returns true when the command should end.
@Override
Expand Down

0 comments on commit 5bac84a

Please sign in to comment.