add description, pre and post condition comments
authorMeryem Esa <meresa14@gmail.com>
Wed, 3 Feb 2016 04:34:56 +0000 (20:34 -0800)
committerMeryem Esa <meresa14@gmail.com>
Mon, 15 Feb 2016 01:01:19 +0000 (17:01 -0800)
src/org/usfirst/frc/team3501/robot/commands/driving/TurnForTime.java

index f2e2540c7bd091966ac722f9534cbe3026047e2a..82dff37237ebbecd43458157343dbf16748c43bf 100755 (executable)
@@ -6,6 +6,19 @@ import org.usfirst.frc.team3501.robot.Robot;
 import edu.wpi.first.wpilibj.Timer;
 import edu.wpi.first.wpilibj.command.Command;
 
+/***
+ * This command turns the robot in a specified direction for a specified
+ * duration.
+ *
+ * pre-condition: robot is on a flat surface
+ *
+ * post-condition: robot has turned in the specified direction for the specified
+ * time
+ *
+ * @author Meryem, Avi, and Sarvesh
+ *
+ */
+
 public class TurnForTime extends Command {
   private final double SPEED = 0.5;
   private Direction direction;
@@ -25,7 +38,6 @@ public class TurnForTime extends Command {
 
   @Override
   protected void execute() {
-
     if (direction == Direction.RIGHT) {
       Robot.driveTrain.setMotorSpeeds(SPEED, -SPEED);
     } else if (direction == Direction.LEFT) {