mirror of
https://github.com/Team4388/2026KPopRobotHunters.git
synced 2026-06-09 00:38:03 -06:00
fix
This commit is contained in:
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user