write pseudo code
authorMeryem Esa <meresa14@gmail.com>
Wed, 3 Feb 2016 03:46:11 +0000 (19:46 -0800)
committerMeryem Esa <meresa14@gmail.com>
Mon, 15 Feb 2016 01:01:05 +0000 (17:01 -0800)
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() {
+  }
 }