1 package org
.usfirst
.frc
.team3501
.robot
.commands
;
3 import edu
.wpi
.first
.wpilibj
.command
.Command
;
8 public class DriveForDistance
extends Command
{
10 public DriveForDistance(double distance
, double speed
) {
14 // Called just before this Command runs the first time
15 protected void initialize() {
18 // Called repeatedly when this Command is scheduled to run
19 protected void execute() {
22 // Make this return true when this Command no longer needs to run execute()
23 protected boolean isFinished() {
27 // Called once after isFinished returns true
28 protected void end() {
31 // Called when another command which requires one or more of the same
32 // subsystems is scheduled to run
33 protected void interrupted() {