ca74e1c60c2e93892277c9d4b7d5529b07a4771b
1 package org
.usfirst
.frc
.team3501
.robot
.commands
.intake
;
3 import edu
.wpi
.first
.wpilibj
.command
.Command
;
7 * Starts running the intake for a specific period of time that the user inputs.
11 public class RunIntake
extends Command
{
12 private double timeToMove
;
14 public RunIntake(double timeToMove
) {
15 this.timeToMove
= timeToMove
;
19 protected boolean isFinished() {
20 // TODO Auto-generated method stub
24 // Called just before this Command runs the first time
26 protected void initialize() {
29 // Called repeatedly when this Command is scheduled to run
31 protected void execute() {
34 // Called once after isFinished returns true
36 protected void end() {
39 // Called when another command which requires one or more of the same
40 // subsystems is scheduled to run
42 protected void interrupted() {