Commit | Line | Data |
---|---|---|
d607dcbb ME |
1 | package org.usfirst.frc.team3501.robot.commands; |
2 | ||
3 | import edu.wpi.first.wpilibj.command.Command; | |
4 | ||
5 | /*** | |
6 | * This command will drive the robot through the moat. | |
7 | * | |
8 | * pre-condition: robot is flush against the ramp of the outerworks in front of | |
9 | * the moat | |
10 | * | |
11 | * post-condition: the robot has passed the moat and is in the next zone | |
12 | * | |
13 | * @author Meryem and Avi | |
14 | * | |
15 | */ | |
16 | public class PassMoat extends Command { | |
17 | ||
18 | public PassMoat() { | |
19 | // Use requires() here to declare subsystem dependencies | |
20 | // eg. requires(chassis); | |
21 | } | |
22 | ||
23 | // Called just before this Command runs the first time | |
24 | @Override | |
25 | protected void initialize() { | |
26 | } | |
27 | ||
28 | // Called repeatedly when this Command is scheduled to run | |
29 | @Override | |
30 | protected void execute() { | |
31 | } | |
32 | ||
33 | // Make this return true when this Command no longer needs to run execute() | |
34 | @Override | |
35 | protected boolean isFinished() { | |
36 | return false; | |
37 | } | |
38 | ||
39 | // Called once after isFinished returns true | |
40 | @Override | |
41 | protected void end() { | |
42 | } | |
43 | ||
44 | // Called when another command which requires one or more of the same | |
45 | // subsystems is scheduled to run | |
46 | @Override | |
47 | protected void interrupted() { | |
48 | } | |
49 | } |