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