actually make and initialize fields
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / driving / TurnForTime.java
index a15008b56d2869cfe2305b5ec113ebde42f913e8..aef24840ae97ca833bd41659770d87818095b85f 100755 (executable)
@@ -6,13 +6,19 @@ import edu.wpi.first.wpilibj.Timer;
 import edu.wpi.first.wpilibj.command.Command;
 
 public class TurnForTime extends Command {
+  Direction direction;
+  double seconds;
+  Timer timer;
 
   public TurnForTime(double seconds, Direction direction) {
-    Timer timer = new Timer();
+    this.seconds = seconds;
+    this.direction = direction;
   }
 
   @Override
   protected void initialize() {
+    timer = new Timer();
+    timer.start();
   }
 
   @Override