1 package org
.usfirst
.frc
.team3501
.robot
.commands
.shooter
;
3 import edu
.wpi
.first
.wpilibj
.command
.Command
;
6 * This command runs the fly wheel at a given speed for a given time. The fly
7 * wheel is intended to shoot balls fed by the intake wheel.
11 public class RunFlyWheel
extends Command
{
12 private double motorVal
;
16 * See JavaDoc comment in class for details
19 * value range from -1 to 1
21 * in seconds, amount of time to run fly wheel motor
23 public RunFlyWheel(double motorVal
, double time
) {
24 this.motorVal
= motorVal
;
28 // Called just before this Command runs the first time
30 protected void initialize() {
33 // Called repeatedly when this Command is scheduled to run
35 protected void execute() {
38 // Called once after isFinished returns true
40 protected void end() {
43 // Called when another command which requires one or more of the same
44 // subsystems is scheduled to run
46 protected void interrupted() {
50 protected boolean isFinished() {