File tree Expand file tree Collapse file tree
src/main/java/frc/robot/commands/states Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77import edu .wpi .first .wpilibj2 .command .Command ;
88import frc .robot .RobotContainer ;
99import frc .robot .constants .ConstMotion ;
10+ import frc .robot .constants .ConstRotors ;
11+ import frc .robot .subsystems .StateMachine ;
1012
1113public 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.
You can’t perform that action at this time.
0 commit comments