create dead-reckoning class in Constants.java
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / driving / TurnForTime.java
index 3ec3974d7b1fb9e9d64338cf4cad744c3a22e7da..acddeaa54a355c38a9883db367b4b260bcffb1fb 100755 (executable)
@@ -1,5 +1,6 @@
 package org.usfirst.frc.team3501.robot.commands.driving;
 
+import org.usfirst.frc.team3501.robot.Constants.DeadReckoning;
 import org.usfirst.frc.team3501.robot.Constants.Direction;
 import org.usfirst.frc.team3501.robot.Robot;
 
@@ -20,7 +21,6 @@ import edu.wpi.first.wpilibj.command.Command;
  */
 
 public class TurnForTime extends Command {
-  private static final double DEFAULT_SPEED = 0.5;
   private Direction direction;
   private double seconds;
   private Timer timer;
@@ -33,7 +33,7 @@ public class TurnForTime extends Command {
   }
 
   public TurnForTime(double seconds, Direction direction) {
-    this(seconds, direction, DEFAULT_SPEED);
+    this(seconds, direction, DeadReckoning.DEFAULT_SPEED);
   }
 
   @Override