580b05967b147d6b9fe8b69d850267717fd83df5
1 package org
.usfirst
.frc
.team3501
.robot
.commands
.intake
;
3 import edu
.wpi
.first
.wpilibj
.command
.Command
;
6 * Reverses the intake roller for a specified amount of time in seconds
8 * parameters: time to run intake
10 public class ReverseIntake
extends Command
{
12 public ReverseIntake(double timeToMove
) {
13 // Use requires() here to declare subsystem dependencies
14 // eg. requires(chassis);
17 // Called just before this Command runs the first time
19 protected void initialize() {
22 // Called repeatedly when this Command is scheduled to run
24 protected void execute() {
27 // Make this return true when this Command no longer needs to run execute()
29 protected boolean isFinished() {
33 // Called once after isFinished returns true
35 protected void end() {
38 // Called when another command which requires one or more of the same
39 // subsystems is scheduled to run
41 protected void interrupted() {