From cc6bed95ae250e7d504f2a3a330b39b3317b217b Mon Sep 17 00:00:00 2001 From: belowAverageCoder5188 <146988904+belowAverageCoder5188@users.noreply.github.com> Date: Fri, 2 Feb 2024 12:09:19 -0800 Subject: [PATCH] Fix: fixed exectue --- .../org/team1540/robot2024/commands/TrampCommand.java | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/src/main/java/org/team1540/robot2024/commands/TrampCommand.java b/src/main/java/org/team1540/robot2024/commands/TrampCommand.java index ac95926e..c4856d45 100644 --- a/src/main/java/org/team1540/robot2024/commands/TrampCommand.java +++ b/src/main/java/org/team1540/robot2024/commands/TrampCommand.java @@ -14,7 +14,10 @@ public TrampCommand(Tramp tramp) { } @Override - public void initialize() { + public void initialize() {} + + @Override + public void execute() { if (tramp.isBeamBreakBlocked()) { tramp.stopTramp(); } else { @@ -22,11 +25,6 @@ public void initialize() { } } - @Override - public void execute() { - tramp.scoreTrampCommand(); - } - @Override public void end(boolean interrupted) { tramp.stopTramp();