actually make and initialize fields
authorMeryem Esa <meresa14@gmail.com>
Wed, 3 Feb 2016 03:56:22 +0000 (19:56 -0800)
committerMeryem Esa <meresa14@gmail.com>
Mon, 15 Feb 2016 01:01:12 +0000 (17:01 -0800)
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