From: Meryem Esa Date: Sat, 14 Jan 2017 19:19:00 +0000 (-0800) Subject: add comments for DriveDistance command X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=commitdiff_plain;h=c0e9f91162b9c4b88e1ae5610730e91db86a6dd0 add comments for DriveDistance command --- 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()); }