From c0e9f91162b9c4b88e1ae5610730e91db86a6dd0 Mon Sep 17 00:00:00 2001 From: Meryem Esa Date: Sat, 14 Jan 2017 11:19:00 -0800 Subject: [PATCH] add comments for DriveDistance command --- .../frc/team3501/robot/commands/driving/DriveDistance.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/org/usfirst/frc/team3501/robot/commands/driving/DriveDistance.java b/src/org/usfirst/frc/team3501/robot/commands/driving/DriveDistance.java index d981d99..2af7387 100755 --- a/src/org/usfirst/frc/team3501/robot/commands/driving/DriveDistance.java +++ b/src/org/usfirst/frc/team3501/robot/commands/driving/DriveDistance.java @@ -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()); } -- 2.30.2