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