add comments and parameters for DriveDistance command
authorMeryem Esa <meresa14@gmail.com>
Sat, 14 Jan 2017 19:24:45 +0000 (11:24 -0800)
committerCindy Zhang <cindyzyx9@gmail.com>
Sat, 14 Jan 2017 23:01:53 +0000 (15:01 -0800)
src/org/usfirst/frc/team3501/robot/commands/driving/TurnForAngle.java

index ecf27f59b1605ce12a889b263d90da712ac26f2c..becaa3a2b759b4289abdf36b675b2f621c1f9127 100755 (executable)
@@ -2,14 +2,21 @@ package org.usfirst.frc.team3501.robot.commands.driving;
 
 import org.usfirst.frc.team3501.robot.Robot;
 
+import edu.wpi.first.wpilibj.Relay.Direction;
 import edu.wpi.first.wpilibj.command.Command;
 
 /**
+ * This command turns the robot for a specified angle in specified direction -
+ * either left or right
+ *
+ * parameters:
+ * angle the robot will turn - in degrees
+ * direction the robot will turn - either right or left
  *
  */
 public class TurnForAngle extends Command {
 
-  public TurnForAngle() {
+  public TurnForAngle(double angle, Direction direction) {
     requires(Robot.getDriveTrain());
   }