Merge branch 'Autos-for-pike' of https://github.com/Team4388/2026KPopRobotHunters into Autos-for-pike

This commit is contained in:
Michael Mikovsky
2026-03-03 16:27:02 -08:00
2 changed files with 4 additions and 6 deletions
@@ -120,7 +120,8 @@ public class RobotContainer {
// );
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)
);
@@ -282,6 +283,7 @@ public class RobotContainer {
//set shooter ready (rev) with left trigger hold
new Trigger(() -> getDeadbandedOperatorController().getLeftTriggerAxis() >= 0.5)
.onTrue(new InstantCommand(() -> {
m_robotIntake.setMode(IntakeMode.Idle);
m_robotIntake.rollerStop();
m_robotShooter.spinUpShooting();
}))
@@ -27,8 +27,7 @@ public class Intake extends SubsystemBase {
Retracted,
Extending,
Retracting,
Idle,
RollerStop
Idle
}
private IntakeMode mode = IntakeMode.Idle;
@@ -91,9 +90,6 @@ public class Intake extends SubsystemBase {
case Idle:
io.stopArm();
break;
case RollerStop:
io.setRollerOutput(state, 0);
break;
}
// if (state.retractedLimit){
// this.mode = IntakeMode.Retracted;