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

Commit

Permalink
fix(shooter): Lower maximum speed and slightly boost kP.
Browse files Browse the repository at this point in the history
  • Loading branch information
haydenheroux committed May 16, 2024
1 parent 11e45b3 commit 5784d3b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/shooter/Shooter.java
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ public class Shooter extends Subsystem {
.motorToMechanismRatio(28.0 / 16.0)
.statorCurrentLimit(40.0)) // TODO Test, 40A -> 80A?
.motionProfileConfig(
motionProfile -> motionProfile.maximumVelocity(60).maximumAcceleration(200))
motionProfile -> motionProfile.maximumVelocity(50).maximumAcceleration(200))
.feedforwardControllerConfig(feedforward -> feedforward.kS(0.14).kV(0.2))
.feedbackControllerConfig(feedback -> feedback.kP(0.14))
.feedbackControllerConfig(feedback -> feedback.kP(0.4))
.build();

/** Flywheel controller. */
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/frc/robot/shooter/ShooterState.java
Original file line number Diff line number Diff line change
Expand Up @@ -20,10 +20,10 @@ public record ShooterState(
public static final ShooterState EJECT = new ShooterState(0, -44);

/** Subwoofer shooting state. */
public static final ShooterState SUBWOOFER = new ShooterState(60, 44);
public static final ShooterState SUBWOOFER = new ShooterState(50, 44);

/** Skim shooting state. */
public static final ShooterState SKIM = new ShooterState(60, 44);
public static final ShooterState SKIM = new ShooterState(50, 44);

/** Amp shooting state. */
public static final ShooterState AMP = new ShooterState(10, 20);
Expand Down

0 comments on commit 5784d3b

Please sign in to comment.