Skip to content

Commit

Permalink
Fix: fixed exectue
Browse files Browse the repository at this point in the history
  • Loading branch information
NateLydem committed Feb 2, 2024
1 parent d05d73f commit cc6bed9
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/main/java/org/team1540/robot2024/commands/TrampCommand.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,19 +14,17 @@ public TrampCommand(Tramp tramp) {
}

@Override
public void initialize() {
public void initialize() {}

@Override
public void execute() {
if (tramp.isBeamBreakBlocked()) {
tramp.stopTramp();
} else {
tramp.scoreTrampCommand();
}
}

@Override
public void execute() {
tramp.scoreTrampCommand();
}

@Override
public void end(boolean interrupted) {
tramp.stopTramp();
Expand Down

0 comments on commit cc6bed9

Please sign in to comment.