001package com.stuypulse.robot.commands.shooter; 002 003import com.stuypulse.robot.subsystems.shooter.Shooter; 004 005import edu.wpi.first.wpilibj.Timer; 006import edu.wpi.first.wpilibj2.command.Command; 007 008public class ShooterFirstShotIncrease extends Command{ 009 private final Shooter shooter; 010 private final Timer timer; 011 012 public ShooterFirstShotIncrease() { 013 shooter = Shooter.getInstance(); 014 timer = new Timer(); 015 } 016 017 @Override 018 public void initialize() { 019 timer.restart(); 020 shooter.addToBonusVelocity(190); 021 } 022 023 @Override 024 public boolean isFinished() { 025 return timer.hasElapsed(1); 026 } 027 028 @Override 029 public void end(boolean interrupted) { 030 shooter.resetBonusVelocity(); 031 } 032}