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.constants.Settings; 009import com.stuypulse.robot.subsystems.intake.Intake; 010import com.stuypulse.robot.subsystems.intake.Intake.IntakeState; 011import edu.wpi.first.wpilibj2.command.InstantCommand; 012 013public class IntakeSeedPivotStowed extends InstantCommand { 014 015 private final Intake intake; 016 017 public IntakeSeedPivotStowed() { 018 this.intake = Intake.getInstance(); 019 addRequirements(intake); 020 } 021 022 @Override 023 public boolean runsWhenDisabled() { 024 return true; 025 } 026 027 @Override 028 public void initialize() { 029 intake.seedPivotAngle(Settings.Intake.Pivot.STOW_ANGLE); 030 intake.setState(IntakeState.IDLE); 031 } 032}