580b05967b147d6b9fe8b69d850267717fd83df5
[3501/2017steamworks] / src / org / usfirst / frc / team3501 / robot / commands / intake / ReverseIntake.java
1 package org.usfirst.frc.team3501.robot.commands.intake;
2
3 import edu.wpi.first.wpilibj.command.Command;
4
5 /**
6 * Reverses the intake roller for a specified amount of time in seconds
7 *
8 * parameters: time to run intake
9 */
10 public class ReverseIntake extends Command {
11
12 public ReverseIntake(double timeToMove) {
13 // Use requires() here to declare subsystem dependencies
14 // eg. requires(chassis);
15 }
16
17 // Called just before this Command runs the first time
18 @Override
19 protected void initialize() {
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 false;
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 }