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.intake; 007 008import com.stuypulse.robot.subsystems.intake.Intake; 009import com.stuypulse.robot.subsystems.intake.Intake.IntakeState; 010import edu.wpi.first.wpilibj2.command.InstantCommand; 011 012public class IntakeSetState extends InstantCommand { 013 014 private Intake intake; 015 016 private IntakeState intakeState; 017 018 public IntakeSetState(IntakeState state) { 019 this.intake = Intake.getInstance(); 020 this.intakeState = state; 021 addRequirements(intake); 022 } 023 024 @Override 025 public void initialize() { 026 intake.setState(intakeState); 027 } 028}