001/************************* PROJECT RON *************************/ 002/* Copyright (c) 2026 StuyPulse Robotics. All rights reserved. */ 003/* Use of this source code is governed by an MIT-style license */ 004/* that can be found in the repository LICENSE file. */ 005/***************************************************************/ 006package com.stuypulse.robot.commands.shooter; 007 008import com.stuypulse.robot.subsystems.shooter.Shooter; 009import com.stuypulse.robot.subsystems.shooter.Shooter.ShooterState; 010import edu.wpi.first.wpilibj2.command.InstantCommand; 011 012public class ShooterSetState extends InstantCommand { 013 014 private Shooter shooter; 015 016 private ShooterState shooterState; 017 018 public ShooterSetState(ShooterState shooterState) { 019 this.shooter = Shooter.getInstance(); 020 this.shooterState = shooterState; 021 addRequirements(shooter); 022 } 023 024 @Override 025 public void initialize() { 026 shooter.setState(shooterState); 027 } 028}