Skip to content

Commit

Permalink
Merge pull request #208 from thedropbears/retune_tilt_pid
Browse files Browse the repository at this point in the history
Modify Shooter PID values
  • Loading branch information
LucienMorey authored May 23, 2024
2 parents d2c525a + 4bf8d4b commit 54d1843
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions components/shooter.py
Original file line number Diff line number Diff line change
Expand Up @@ -93,12 +93,12 @@ def __init__(self) -> None:

flywheel_pid = (
Slot0Configs()
.with_k_p(0.41377)
.with_k_p(0.17487)
.with_k_i(0)
.with_k_d(0)
.with_k_s(0.31461)
.with_k_v(0.097173)
.with_k_a(0.013103)
.with_k_s(0.32193)
.with_k_v(0.096182)
.with_k_a(0.0096935)
)

flywheel_gear_ratio = FeedbackConfigs().with_sensor_to_mechanism_ratio(
Expand All @@ -120,7 +120,7 @@ def __init__(self) -> None:
flywheel_right_config.apply(flywheel_pid)
flywheel_right_config.apply(flywheel_gear_ratio)

self.inclinator_controller = PIDController(5.0, 0, 0)
self.inclinator_controller = PIDController(0.6, 0, 0)
self.inclinator_controller.setTolerance(ShooterComponent.INCLINATOR_TOLERANCE)
SmartDashboard.putData(self.inclinator_controller)

Expand Down

0 comments on commit 54d1843

Please sign in to comment.