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

Commit

Permalink
change around states
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenheroux committed Apr 2, 2024
1 parent ea96265 commit 04cfcfe
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion simgui.json
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@
0.0,
0.8500000238418579
],
"height": 338,
"height": 0,
"series": [
{
"color": [
Expand Down
1 change: 1 addition & 0 deletions src/main/java/frc/robot/RobotContainer.java
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ private void configureBindings() {

operatorController.a().onTrue(superstructure.ampPosition());
operatorController.b().onTrue(superstructure.ampShoot());
operatorController.x().onTrue(superstructure.stow());
}

/**
Expand Down
3 changes: 0 additions & 3 deletions src/main/java/frc/robot/shooter/ShooterConstants.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,6 @@ public static class SerializerConstants {

/** Constants for the flywheel motor used in the shooter subsystem. */
public static class FlywheelConstants {
/** Velocity to apply while idly spinning up in rotations per second. */
public static final double IDLE_VELOCITY = 2.5;

/** Velocity to apply while shooting into the speaker in rotations per second. */
public static final double SPEAKER_VELOCITY = 5.65;

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/frc/robot/superstructure/Superstructure.java
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ public Command intake() {
}

public Command idle() {
return to(SuperstructureState.IDLE);
return to(SuperstructureState.SPEAKER_SPIN);
}

public Command shoot() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,10 +26,7 @@ public record SuperstructureState(
public static final SuperstructureState INTAKE =
new SuperstructureState(ShoulderAngleConstants.STOW, RollerConstants.INTAKE_VELOCITY, 0, false, SerializerConstants.INTAKE_VELOCITY);

public static final SuperstructureState IDLE =
new SuperstructureState(ShoulderAngleConstants.STOW, 0, FlywheelConstants.IDLE_VELOCITY, true, 0);

public static final SuperstructureState SPEAKER_SPIN = new SuperstructureState(ShoulderAngleConstants.STOW, 0, FlywheelConstants.SPEAKER_VELOCITY, false, 0);
public static final SuperstructureState SPEAKER_SPIN = new SuperstructureState(ShoulderAngleConstants.STOW, 0, FlywheelConstants.SPEAKER_VELOCITY, true, 0);

public static final SuperstructureState SPEAKER_SHOOT = new SuperstructureState(ShoulderAngleConstants.STOW, 0, FlywheelConstants.SPEAKER_VELOCITY, false, SerializerConstants.SERIALIZE_VELOCITY);

Expand Down

0 comments on commit 04cfcfe

Please sign in to comment.