f87ec65dd676dbff81e9d98d0d588938205a038a
1 package org
.usfirst
.frc
.team3501
.robot
.commands
.driving
;
3 import org
.usfirst
.frc
.team3501
.robot
.Constants
.Direction
;
5 import edu
.wpi
.first
.wpilibj
.command
.Command
;
7 public class TurnForTime
extends Command
{
9 public TurnForTime(double seconds
, Direction direction
) {
13 protected void initialize() {
17 protected void execute() {
19 * if direction is right make the left motor run forward make the right
20 * motor run backward if direction is left make right motor run forward make
21 * the left motor run backward
26 protected boolean isFinished() {
28 * when time is up return true
34 protected void end() {
38 protected void interrupted() {