X-Git-Url: http://challenge-bot.com/repos/?a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fdriving%2FTurnForTime.java;h=6401fb141a99aa44d7c674e6016eef02a3e9119a;hb=56a474c2afdaa310bb03918bacafa586805ff067;hp=3a5f61ba80dd5b8ba7cb9d270748f68ccebfa9b7;hpb=3b2cd17d5ef52c0be9952848789512f2a965b266;p=3501%2Fstronghold-2016 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