Skip to content
This repository has been archived by the owner on May 19, 2024. It is now read-only.

Commit

Permalink
fix(superstructure): Improve ejecting.
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenheroux committed Apr 11, 2024
1 parent df69d48 commit b5d5b8a
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/RobotConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -47,5 +47,5 @@ public enum Subsystem {
EnumSet.of(
Subsystem.ARM, Subsystem.INTAKE, Subsystem.ODOMETRY, Subsystem.SHOOTER, Subsystem.SWERVE);

public static final Set<Subsystem> REAL_SUBSYSTEMS = EnumSet.of(Subsystem.SHOOTER);
public static final Set<Subsystem> REAL_SUBSYSTEMS = ALL_SUBSYSTEMS;
}
2 changes: 2 additions & 0 deletions src/main/java/frc/robot/superstructure/Superstructure.java
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
import edu.wpi.first.wpilibj.shuffleboard.ShuffleboardLayout;
import edu.wpi.first.wpilibj.shuffleboard.ShuffleboardTab;
import edu.wpi.first.wpilibj2.command.Command;
import edu.wpi.first.wpilibj2.command.Commands;
import frc.lib.Subsystem;
import frc.lib.Telemetry;
import frc.robot.arm.Arm;
Expand Down Expand Up @@ -173,6 +174,7 @@ public Command amp() {

public Command eject() {
return to(SuperstructureState.EJECT_POSITION)
.andThen(Commands.waitSeconds(SuperstructureConstants.EJECT_PAUSE))
.andThen(hold(SuperstructureState.EJECT))
.withName("EJECT");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@ public class SuperstructureConstants {

public static final double PULL_DURATION = 0.15;

public static final double EJECT_PAUSE = 0.25;

}

0 comments on commit b5d5b8a

Please sign in to comment.