From: Meryem Esa Date: Wed, 3 Feb 2016 03:46:11 +0000 (-0800) Subject: write pseudo code X-Git-Url: http://challenge-bot.com/repos/?p=3501%2Fstronghold-2016;a=commitdiff_plain;h=5ac4d78eefa23df500d5d97bf5bcc58a89de51fe write pseudo code --- 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() { + } }