a15008b56d2869cfe2305b5ec113ebde42f913e8
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / driving / TurnForTime.java
1 package org.usfirst.frc.team3501.robot.commands.driving;
2
3 import org.usfirst.frc.team3501.robot.Constants.Direction;
4
5 import edu.wpi.first.wpilibj.Timer;
6 import edu.wpi.first.wpilibj.command.Command;
7
8 public class TurnForTime extends Command {
9
10 public TurnForTime(double seconds, Direction direction) {
11 Timer timer = new Timer();
12 }
13
14 @Override
15 protected void initialize() {
16 }
17
18 @Override
19 protected void execute() {
20 /*
21 * if direction is right make the left motor run forward make the right
22 * motor run backward if direction is left make right motor run forward make
23 * the left motor run backward
24 */
25 }
26
27 @Override
28 protected boolean isFinished() {
29 /*
30 * when time is up return true
31 */
32 return false;
33 }
34
35 @Override
36 protected void end() {
37 }
38
39 @Override
40 protected void interrupted() {
41 }
42 }