write pseudo code
[3501/stronghold-2016] / src / org / usfirst / frc / team3501 / robot / commands / driving / TurnForTime.java
CommitLineData
6bb7f8ac 1package org.usfirst.frc.team3501.robot.commands.driving;
be737780 2
5ac4d78e
ME
3import org.usfirst.frc.team3501.robot.Constants.Direction;
4
be737780
ME
5import edu.wpi.first.wpilibj.command.Command;
6
be737780
ME
7public class TurnForTime extends Command {
8
5ac4d78e
ME
9 public TurnForTime(double seconds, Direction direction) {
10 }
11
12 @Override
13 protected void initialize() {
14 }
15
16 @Override
17 protected void execute() {
18 /*
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
22 */
23 }
24
25 @Override
26 protected boolean isFinished() {
27 /*
28 * when time is up return true
29 */
30 return false;
31 }
32
33 @Override
34 protected void end() {
35 }
36
37 @Override
38 protected void interrupted() {
39 }
be737780 40}