add comments for DriveDistance command
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / driving / DriveDistance.java
index d981d99e5b0eac798ff3949c9108a609f99dd6c3..2af7387150068f67bf2e102dd5044a814f2fc73e 100755 (executable)
@@ -5,11 +5,15 @@ import org.usfirst.frc.team3501.robot.Robot;
 import edu.wpi.first.wpilibj.command.Command;
 
 /**
+ * This command makes the robot drive a specified distance using encoders on the
+ * robot and using a feedback loop
  *
+ * parameters:
+ * distance the robot will move in inches
  */
 public class DriveDistance extends Command {
 
-  public DriveDistance() {
+  public DriveDistance(double distance) {
     requires(Robot.getDriveTrain());
   }