1 package org
.usfirst
.frc
.team3501
.robot
.commands
.shooter
;
3 import org
.usfirst
.frc
.team3501
.robot
.Robot
;
4 import org
.usfirst
.frc
.team3501
.robot
.subsystems
.Shooter
;
5 import org
.usfirst
.frc
.team3501
.robot
.utils
.PIDController
;
7 import edu
.wpi
.first
.wpilibj
.command
.Command
;
12 public class StartUpFlyWheel
extends Command
{
13 private Shooter shooter
= Robot
.getShooter();
14 private PIDController wheelController
;
15 private double wheelP
;
16 private double wheelI
;
17 private double wheelD
;
18 private double motorVal
;
19 private double target
;
21 public StartUpFlyWheel() {
22 // Use requires() here to declare subsystem dependencies
23 // eg. requires(chassis);
27 // Called just before this Command runs the first time
28 protected void initialize() {
32 // Called repeatedly when this Command is scheduled to run
33 protected void execute() {
36 // Make this return true when this Command no longer needs to run execute()
37 protected boolean isFinished() {
41 // 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
47 protected void interrupted() {