Commit | Line | Data |
---|---|---|
763ccd44 M |
1 | package org.usfirst.frc.team3501.robot.commands.intake; |
2 | ||
3 | import edu.wpi.first.wpilibj.command.Command; | |
4 | ||
5 | /** | |
6 | * | |
7 | * Starts running the intake for a specific period of time that the user inputs. | |
e8eb8b46 | 8 | * |
763ccd44 M |
9 | * @author Meeta |
10 | */ | |
11 | public class RunIntake extends Command { | |
e8eb8b46 | 12 | private double timeToMove; |
763ccd44 | 13 | |
e8eb8b46 M |
14 | public RunIntake(double timeToMove) { |
15 | this.timeToMove = timeToMove; | |
763ccd44 M |
16 | } |
17 | ||
18 | @Override | |
19 | protected boolean isFinished() { | |
20 | // TODO Auto-generated method stub | |
21 | return false; | |
22 | } | |
23 | ||
24 | // Called just before this Command runs the first time | |
25 | @Override | |
26 | protected void initialize() { | |
27 | } | |
28 | ||
29 | // Called repeatedly when this Command is scheduled to run | |
30 | @Override | |
31 | protected void execute() { | |
32 | } | |
33 | ||
34 | // Called once after isFinished returns true | |
35 | @Override | |
36 | protected void end() { | |
37 | } | |
38 | ||
39 | // Called when another command which requires one or more of the same | |
40 | // subsystems is scheduled to run | |
41 | @Override | |
42 | protected void interrupted() { | |
43 | } | |
44 | } |