Skip to content

Commit f658df1

Browse files
retract intake state
Co-Authored-By: jayden mendoza <244560677+jaymendo670-png@users.noreply.github.com>
1 parent 1a254ae commit f658df1

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/main/java/frc/robot/commands/states/RetractIntake.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@
77
import edu.wpi.first.wpilibj2.command.Command;
88
import frc.robot.RobotContainer;
99
import frc.robot.constants.ConstMotion;
10+
import frc.robot.constants.ConstRotors;
11+
import frc.robot.subsystems.StateMachine;
1012

1113
public class RetractIntake extends Command {
1214
/** Creates a new RetractIntake. */
@@ -18,7 +20,9 @@ public RetractIntake() {
1820
// Called when the command is initially scheduled.
1921
@Override
2022
public void initialize() {
23+
RobotContainer.rotorsInstance.setIntakeRollersPercentOutput(ConstRotors.STOP);
2124
RobotContainer.motionInstance.setIntakePivotAngle(ConstMotion.RETRACT_INTAKE_PIVOT_ANGLE);
25+
RobotContainer.stateMachineInstance.setRobotState(StateMachine.RobotState.RETRACT_INTAKE);
2226
}
2327

2428
// Called every time the scheduler runs while the command is scheduled.

0 commit comments

Comments
 (0)