From: Meryem Esa Date: Sun, 14 Feb 2016 18:56:34 +0000 (-0800) Subject: streamline isFinished X-Git-Url: http://challenge-bot.com/repos/?p=3501%2Fstronghold-2016;a=commitdiff_plain;h=56a474c2afdaa310bb03918bacafa586805ff067 streamline isFinished --- 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