change location of base files
[3501/3501-spark-go] / src / org / usfirst / frc / team3501 / robot / commands / DriveFor.java
CommitLineData
e81578e3
LH
1package org.usfirst.frc.team3501.robot.commands;
2
5b3b1652
LH
3import org.usfirst.frc.team3501.bases.Command;
4
b2640783 5public class DriveFor extends Command {
e81578e3
LH
6
7 private double speed;
8
9 public DriveFor(double secs, double speed) {
10 super("DriveFor");
11 requires(drivetrain);
12
13 setTimeout(secs);
14 this.speed = speed;
15 }
16
17 protected void execute() {
18 drivetrain.driveRaw(speed, 0);
19 }
20
21 protected boolean isFinished() {
22 return isTimedOut();
23 }
24}