add hella auton
[3501/3501-spark-go] / src / org / usfirst / frc / team3501 / robot / commands / DriveFor.java
1 package org.usfirst.frc.team3501.robot.commands;
2
3 public class DriveFor extends CommandBase {
4
5 private double speed;
6
7 public DriveFor(double secs, double speed) {
8 super("DriveFor");
9 requires(drivetrain);
10
11 setTimeout(secs);
12 this.speed = speed;
13 }
14
15 protected void execute() {
16 drivetrain.driveRaw(speed, 0);
17 }
18
19 protected boolean isFinished() {
20 return isTimedOut();
21 }
22 }