From 56a474c2afdaa310bb03918bacafa586805ff067 Mon Sep 17 00:00:00 2001 From: Meryem Esa Date: Sun, 14 Feb 2016 10:56:34 -0800 Subject: [PATCH] streamline isFinished --- .../frc/team3501/robot/commands/driving/TurnForTime.java | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/org/usfirst/frc/team3501/robot/commands/driving/TurnForTime.java b/src/org/usfirst/frc/team3501/robot/commands/driving/TurnForTime.java index 3a5f61ba..6401fb14 100755 --- a/src/org/usfirst/frc/team3501/robot/commands/driving/TurnForTime.java +++ b/src/org/usfirst/frc/team3501/robot/commands/driving/TurnForTime.java @@ -18,7 +18,7 @@ import edu.wpi.first.wpilibj.command.Command; * * TODO: test for speed/ time constants for specific angles (ex. 30 degrees, 60 * degrees, 90 degrees) - * + * * @author Meryem, Avi, and Sarvesh * */ @@ -58,9 +58,7 @@ public class TurnForTime extends Command { @Override protected boolean isFinished() { - if (timer.get() >= seconds) - return true; - return false; + return (timer.get() >= seconds); } @Override -- 2.30.2