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.
10 * value range from -1 to 1
15 public class RunFlyWheel
extends Command
{
16 private double motorVal
;
19 public RunFlyWheel(double motorVal
, double time
) {
20 this.motorVal
= motorVal
;
24 // Called just before this Command runs the first time
26 protected void initialize() {
29 // Called repeatedly when this Command is scheduled to run
31 protected void execute() {
34 // Called once after isFinished returns true
36 protected void end() {
39 // Called when another command which requires one or more of the same
40 // subsystems is scheduled to run
42 protected void interrupted() {
46 protected boolean isFinished() {