6804c255b781c67c0609f9615a9eb6e921f61274
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
12 * value range is from -1 to 1
17 public class RunIndexWheel
extends Command
{
19 private double motorVal
;
21 public RunIndexWheel(double motorVal
, double time
) {
22 this.motorVal
= motorVal
;
26 // Called just before this Command runs the first time
28 protected void initialize() {
31 // Called repeatedly when this Command is scheduled to run
33 protected void execute() {
36 // Called once after isFinished returns true
38 protected void end() {
41 // Called when another command which requires one or more of the same
42 // subsystems is scheduled to run
44 protected void interrupted() {
48 protected boolean isFinished() {