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
18 public class RunIndexWheel
extends Command
{
20 private double motorVal
;
22 public RunIndexWheel(double motorVal
, double time
) {
23 this.motorVal
= motorVal
;
27 // Called just before this Command runs the first time
29 protected void initialize() {
32 // Called repeatedly when this Command is scheduled to run
34 protected void execute() {
37 // Called once after isFinished returns true
39 protected void end() {
42 // Called when another command which requires one or more of the same
43 // subsystems is scheduled to run
45 protected void interrupted() {
49 protected boolean isFinished() {