Commit | Line | Data |
---|---|---|
be737780 ME |
1 | package org.usfirst.frc.team3501.robot.commands; |
2 | ||
3 | import edu.wpi.first.wpilibj.command.Command; | |
4 | ||
5 | /** | |
6 | * | |
7 | */ | |
8 | public class DriveForDistance extends Command { | |
9 | ||
10 | public DriveForDistance(double distance, double speed) { | |
11 | ||
12 | } | |
13 | ||
14 | // Called just before this Command runs the first time | |
15 | protected void initialize() { | |
16 | } | |
17 | ||
18 | // Called repeatedly when this Command is scheduled to run | |
19 | protected void execute() { | |
20 | } | |
21 | ||
22 | // Make this return true when this Command no longer needs to run execute() | |
23 | protected boolean isFinished() { | |
24 | return false; | |
25 | } | |
26 | ||
27 | // Called once after isFinished returns true | |
28 | protected void end() { | |
29 | } | |
30 | ||
31 | // Called when another command which requires one or more of the same | |
32 | // subsystems is scheduled to run | |
33 | protected void interrupted() { | |
34 | } | |
35 | } |