add comments for DriveDistance command
authorMeryem Esa <meresa14@gmail.com>
Sat, 14 Jan 2017 19:19:00 +0000 (11:19 -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/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());
   }