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