Commit | Line | Data |
---|---|---|
6bb7f8ac | 1 | package org.usfirst.frc.team3501.robot.commands.driving; |
f9878624 | 2 | |
33141cdd KZ |
3 | import org.usfirst.frc.team3501.robot.Robot; |
4 | ||
f9878624 YN |
5 | import edu.wpi.first.wpilibj.command.Command; |
6 | ||
f9878624 YN |
7 | public class Stop extends Command { |
8 | ||
33141cdd KZ |
9 | public Stop() { |
10 | } | |
f9878624 | 11 | |
33141cdd KZ |
12 | @Override |
13 | protected void initialize() { | |
14 | Robot.driveTrain.stop(); | |
15 | } | |
f9878624 | 16 | |
33141cdd KZ |
17 | @Override |
18 | protected void execute() { | |
19 | } | |
f9878624 | 20 | |
33141cdd KZ |
21 | @Override |
22 | protected boolean isFinished() { | |
23 | return true; | |
24 | } | |
f9878624 | 25 | |
33141cdd KZ |
26 | @Override |
27 | protected void end() { | |
28 | } | |
f9878624 | 29 | |
33141cdd KZ |
30 | @Override |
31 | protected void interrupted() { | |
32 | end(); | |
33 | } | |
f9878624 | 34 | } |