1 package org
.usfirst
.frc
.team3501
.robot
.commands
.shooter
;
3 import org
.usfirst
.frc
.team3501
.robot
.Robot
;
4 import org
.usfirst
.frc
.team3501
.robot
.subsystems
.Shooter
;
6 import edu
.wpi
.first
.wpilibj
.command
.Command
;
9 * This command reverses the index wheel at a given speed for given time in
12 * @author shivanighanta
15 public class ReverseIndexWheel
extends Command
{
16 private Shooter shooter
= Robot
.getShooter();
20 * See JavaDoc comment in class for details
23 * value range from -1 to 1
25 * in seconds, amount of time to run index wheel motor
28 public ReverseIndexWheel(double time
) {
29 requires(Robot
.getDriveTrain());
34 protected void initialize() {
38 protected void execute() {
39 shooter
.reverseIndexWheel();
44 protected boolean isFinished() {
45 return timeSinceInitialized() >= time
;
49 protected void end() {
50 shooter
.stopIndexWheel();
55 protected void interrupted() {