From: Cindy Zhang Date: Wed, 8 Feb 2017 05:10:30 +0000 (-0800) Subject: change motorval to maxtimeout in drivedistance X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=commitdiff_plain;h=db326f4032f30b906635ba072552887f522fac38 change motorval to maxtimeout in drivedistance --- 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 b82e7d6..bdd5a69 100755 --- a/src/org/usfirst/frc/team3501/robot/commands/driving/DriveDistance.java +++ b/src/org/usfirst/frc/team3501/robot/commands/driving/DriveDistance.java @@ -27,7 +27,7 @@ public class DriveDistance extends Command { private double driveD; private double gyroP; - public DriveDistance(double distance, double motorVal) { + public DriveDistance(double distance, double maxTimeOut) { requires(driveTrain); this.maxTimeOut = maxTimeOut; this.target = distance;