add comments and parameters for DriveDistance command
[3501/2017steamworks] / 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());
   }