From 5ac4d78eefa23df500d5d97bf5bcc58a89de51fe Mon Sep 17 00:00:00 2001 From: Meryem Esa Date: Tue, 2 Feb 2016 19:46:11 -0800 Subject: [PATCH] write pseudo code --- .../robot/commands/driving/TurnForTime.java | 56 +++++++++++-------- 1 file changed, 33 insertions(+), 23 deletions(-) diff --git a/src/org/usfirst/frc/team3501/robot/commands/driving/TurnForTime.java b/src/org/usfirst/frc/team3501/robot/commands/driving/TurnForTime.java index d184f58c..f87ec65d 100755 --- a/src/org/usfirst/frc/team3501/robot/commands/driving/TurnForTime.java +++ b/src/org/usfirst/frc/team3501/robot/commands/driving/TurnForTime.java @@ -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() { + } } -- 2.30.2