1 package org
.usfirst
.frc
.team3501
.robot
.commands
.shooter
;
3 import edu
.wpi
.first
.wpilibj
.command
.Command
;
6 * This command runs index wheel at a given speed for given time in seconds.
8 * pre-condition: fly wheel is running at full speed to prepare for shooting
13 public class RunIndexWheel
extends Command
{
15 private double motorVal
;
18 * See JavaDoc comment in class for details
21 * value range from -1 to 1
23 * in seconds, amount of time to run index wheel motor
25 public RunIndexWheel(double motorVal
, double time
) {
26 this.motorVal
= motorVal
;
30 // Called just before this Command runs the first time
32 protected void initialize() {
35 // Called repeatedly when this Command is scheduled to run
37 protected void execute() {
40 // Called once after isFinished returns true
42 protected void end() {
45 // Called when another command which requires one or more of the same
46 // subsystems is scheduled to run
48 protected void interrupted() {
52 protected boolean isFinished() {