write pseudo code
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / driving / TurnForTime.java
index d184f58c1208d9543496aaa2badb55add3d62aa7..f87ec65dd676dbff81e9d98d0d588938205a038a 100755 (executable)
@@ -1,30 +1,40 @@
 package org.usfirst.frc.team3501.robot.commands.driving;
 
+import org.usfirst.frc.team3501.robot.Constants.Direction;
+
 import edu.wpi.first.wpilibj.command.Command;
 
 public class TurnForTime extends Command {
 
-       public TurnForTime(double seconds) {
-       }
-
-       @Override
-       protected void initialize() {
-       }
-
-       @Override
-       protected void execute() {
-       }
-
-       @Override
-       protected boolean isFinished() {
-               return false;
-       }
-
-       @Override
-       protected void end() {
-       }
-
-       @Override
-       protected void interrupted() {
-       }
+  public TurnForTime(double seconds, Direction direction) {
+  }
+
+  @Override
+  protected void initialize() {
+  }
+
+  @Override
+  protected void execute() {
+    /*
+     * if direction is right make the left motor run forward make the right
+     * motor run backward if direction is left make right motor run forward make
+     * the left motor run backward
+     */
+  }
+
+  @Override
+  protected boolean isFinished() {
+    /*
+     * when time is up return true
+     */
+    return false;
+  }
+
+  @Override
+  protected void end() {
+  }
+
+  @Override
+  protected void interrupted() {
+  }
 }