bab630da953142a9e95034e66bec90d22e08b1cd
1 package org
.usfirst
.frc
.team3501
.robot
.commands
.intake
;
3 import edu
.wpi
.first
.wpilibj
.command
.Command
;
6 * Reverses the intake until the button triggering this command is released
8 * pre-condition: button is pressed
10 public class ReverseIntakeContinuous
extends Command
{
12 public ReverseIntakeContinuous(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() {