Commit | Line | Data |
---|---|---|
571a0e2a HD |
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 SetLowGear extends Command { | |
11 | ||
12 | public SetLowGear() { | |
13 | requires(Robot.driveTrain); | |
14 | } | |
15 | ||
16 | // Called just before this Command runs the first time | |
17 | @Override | |
18 | protected void initialize() { | |
19 | Robot.driveTrain.setLowGear(); | |
20 | } | |
21 | ||
22 | // Called repeatedly when this Command is scheduled to run | |
23 | @Override | |
24 | protected void execute() { | |
25 | } | |
26 | ||
27 | // Make this return true when this Command no longer needs to run execute() | |
28 | @Override | |
29 | protected boolean isFinished() { | |
30 | return true; | |
31 | } | |
32 | ||
33 | // Called once after isFinished returns true | |
34 | @Override | |
35 | protected void end() { | |
36 | } | |
37 | ||
38 | // Called when another command which requires one or more of the same | |
39 | // subsystems is scheduled to run | |
40 | @Override | |
41 | protected void interrupted() { | |
42 | } | |
43 | } |