This commit is contained in:
Shikhar
2026-03-03 17:13:28 -07:00
parent 6f9191f277
commit 7dc6e34034
2 changed files with 3 additions and 6 deletions
@@ -120,7 +120,8 @@ public class RobotContainer {
// ); // );
private Command RobotRev = new SequentialCommandGroup( private Command RobotRev = new SequentialCommandGroup(
new InstantCommand(() -> m_robotIntake.setMode(IntakeMode.RollerStop), m_robotIntake), new InstantCommand(() -> m_robotIntake.setMode(IntakeMode.Idle), m_robotIntake),
new InstantCommand(() -> m_robotIntake.rollerStop(), m_robotIntake),
new InstantCommand(() -> m_robotShooter.spinUpShooting(), m_robotShooter) new InstantCommand(() -> m_robotShooter.spinUpShooting(), m_robotShooter)
); );
@@ -27,8 +27,7 @@ public class Intake extends SubsystemBase {
Retracted, Retracted,
Extending, Extending,
Retracting, Retracting,
Idle, Idle
RollerStop
} }
private IntakeMode mode = IntakeMode.Idle; private IntakeMode mode = IntakeMode.Idle;
@@ -91,9 +90,6 @@ public class Intake extends SubsystemBase {
case Idle: case Idle:
io.stopArm(); io.stopArm();
break; break;
case RollerStop:
io.setRollerOutput(state, 0);
break;
} }
// if (state.retractedLimit){ // if (state.retractedLimit){
// this.mode = IntakeMode.Retracted; // this.mode = IntakeMode.Retracted;