Skip to content

Commit a349207

Browse files
committed
Update at 'Mon May 19 20:42:43 EDT 2025'
1 parent 06e1d6b commit a349207

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

src/main/java/frc/robot/RobotContainer.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,9 +270,10 @@ private void configureBindings() {
270270

271271
// joystick.x().onTrue(s_Elevator.goToL3A()).onFalse(s_Elevator.goToL1());
272272
//joystick.a().onTrue(s_Elevator.goToL2A()).onFalse(s_Elevator.goToL1());
273-
joystick.povLeft().whileTrue(Commands.sequence(s_Elevator.goToL2A_wait(), Commands.parallel(s_Elevator.goToL2A().repeatedly(), Commands.sequence(s_Algae.extend(), s_Algae.intake(), s_Shooter.intake()))));
273+
//joystick.povLeft().whileTrue(Commands.sequence(s_Elevator.goToL2A_wait(), Commands.parallel(s_Elevator.goToL2A().repeatedly(), Commands.sequence(s_Algae.extend(), s_Algae.intake(), s_Shooter.intake()))));
274274
//joystick.povRight().whileTrue(Commands.sequence(s_Elevator.goToL3A_wait(), Commands.parallel(s_Elevator.goToL3A().repeatedly(), Commands.sequence(s_Algae.extend(), s_Algae.intake(), ))));
275275
joystick.povRight().whileTrue(Commands.parallel(Commands.sequence(s_Algae.extend(), s_Algae.intake(), s_Shooter.intake())));
276+
joystick.povLeft().whileTrue(Commands.parallel(Commands.sequence(s_Algae.almostextend(), s_Algae.intake(), s_Shooter.intake())));
276277
joystick.rightStick().onTrue(s_Algae.shoot()).onFalse(s_Algae.stopShooter());
277278
//joystick.back().whileTrue(s_Elevator.goToL1Intake().repeatedly().alongWith(s_Algae.intakeL1().andThen(s_Algae.shoot()))).onFalse(s_Algae.holdCoral().alongWith(s_Elevator.goToL1Shoot().repeatedly()));
278279
joystick.leftStick().whileTrue(s_Algae.shootL1low().andThen(s_Algae.slowShoot().andThen(s_Elevator.goToL1Shoot().repeatedly()))).onFalse(s_Algae.home().andThen(s_Algae.stopShooter().andThen(new WaitCommand(5).alongWith(s_Elevator.goToL1()))));

src/main/java/frc/robot/subsystems/algae/Algae.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ public class Algae extends SubsystemBase {
2626
private final AlgaeIOInputsAutoLogged m_inputs = new AlgaeIOInputsAutoLogged();
2727
private final double DownPosition = 0;
2828
private final double ExtendedPosition = -4;
29+
private final double AlmostExtendedPosition = -2.3;
2930
private final double GroundIntake = 17;
3031
;// 32.5
3132
private Timer m_StallTimer;
@@ -92,6 +93,13 @@ public Command extend() {
9293
}).withName("Extend");
9394
}
9495

96+
public Command almostextend() {
97+
// return this.run(() -> m_io.gotosetpoint(L1Setpoint,m_gearRatio));
98+
return this.runOnce(() -> {
99+
m_io.gotosetpoint(AlmostExtendedPosition, m_gearRatio);
100+
}).withName("Extend");
101+
}
102+
95103
public Command groundIntake() {
96104
return this.runOnce(() -> {
97105
m_io.gotosetpoint(GroundIntake, m_gearRatio);

0 commit comments

Comments
 (0)