X-Git-Url: http://challenge-bot.com/repos/?p=3501%2F2017steamworks;a=blobdiff_plain;f=src%2Forg%2Fusfirst%2Ffrc%2Fteam3501%2Frobot%2Fcommands%2Fshooter%2FIncreaseShootingSpeed.java;h=85bd3bd39dbedf9af5418853babcdb49edf7a4b4;hp=aeb74ec036beb37fd1f89af51bb0ec93c98e0eef;hb=ad7e6b1e386d82e35d6049e211b7c1ae3efe705d;hpb=ca372ce8e1ede3b2967ae6f42c539db4eeb812fc diff --git a/src/org/usfirst/frc/team3501/robot/commands/shooter/IncreaseShootingSpeed.java b/src/org/usfirst/frc/team3501/robot/commands/shooter/IncreaseShootingSpeed.java index aeb74ec..85bd3bd 100644 --- a/src/org/usfirst/frc/team3501/robot/commands/shooter/IncreaseShootingSpeed.java +++ b/src/org/usfirst/frc/team3501/robot/commands/shooter/IncreaseShootingSpeed.java @@ -1,5 +1,8 @@ package org.usfirst.frc.team3501.robot.commands.shooter; +import org.usfirst.frc.team3501.robot.Robot; +import org.usfirst.frc.team3501.robot.subsystems.Shooter; + import edu.wpi.first.wpilibj.command.Command; /** @@ -10,35 +13,34 @@ import edu.wpi.first.wpilibj.command.Command; * flywheel is run, it will run at the increased shooting speed */ public class IncreaseShootingSpeed extends Command { + private Shooter shooter = Robot.getShooter(); + public IncreaseShootingSpeed() { } - // Called just before this Command runs the first time @Override protected void initialize() { + shooter.CURRENT_SHOOTING_SPEED += shooter.SHOOTING_SPEED_INCREMENT; } - // Called repeatedly when this Command is scheduled to run @Override protected void execute() { } - // Called once after isFinished returns true @Override protected void end() { } - // Called when another command which requires one or more of the same - // subsystems is scheduled to run @Override protected void interrupted() { + end(); } @Override protected boolean isFinished() { - // TODO Auto-generated method stub - return false; + + return true; } }