1 package org
.usfirst
.frc
.team3501
.robot
.commands
.shooter
;
3 import edu
.wpi
.first
.wpilibj
.command
.Command
;
6 * Runs index wheel at a given speed in () for given time in seconds
14 public class RunIndexWheel
extends Command
{
16 private double motorVal
;
18 public RunIndexWheel(double motorVal
, double time
) {
19 this.motorVal
= motorVal
;
23 // Called just before this Command runs the first time
25 protected void initialize() {
28 // Called repeatedly when this Command is scheduled to run
30 protected void execute() {
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() {
45 protected boolean isFinished() {