Skip to content

Better tuning#24

Merged
dracco1993 merged 3 commits intomasterfrom
better-tuning
Jan 28, 2026
Merged

Better tuning#24
dracco1993 merged 3 commits intomasterfrom
better-tuning

Conversation

@dracco1993
Copy link
Member

No description provided.

@dracco1993 dracco1993 self-assigned this Jan 28, 2026
Copilot AI review requested due to automatic review settings January 28, 2026 18:35
@dracco1993 dracco1993 merged commit 12ac19f into master Jan 28, 2026
1 check passed
@dracco1993 dracco1993 deleted the better-tuning branch January 28, 2026 18:35
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates tuning parameters for the turret and intake subsystems by switching from arm-based to simple motor feedforward control and adjusting PID values.

Changes:

  • Replaced ArmFeedforward with SimpleMotorFeedforward for turret and intake subsystems with updated tuning parameters
  • Added a rezero() command for the turret subsystem and integrated it into the superstructure's rezero functionality
  • Changed intake pivot motor controller from ThriftyNova to SparkMax

Reviewed changes

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

File Description
TurretSubsystem.java Updated feedforward controller, tuned PID/velocity/acceleration values, and added rezero command
Superstructure.java Modified feedAll command to remove intake pivot control and renamed rezero command to include both intake and turret
IntakeSubsystem.java Switched motor controller from ThriftyNova to SparkMax, updated tuning parameters, added soft limits, and adjusted encoder reset call
OperatorControls.java Updated button binding to call the renamed rezero command for both intake and turret

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

kicker.feedCommand().asProxy(),
intake.setPivotAngle(Degrees.of(46)).asProxy()).withName("Superstructure.feedAll");
kicker.feedCommand().asProxy()).withName("Superstructure.feedAll");
// intake.setPivotAngle(Degrees.of(46)).asProxy()).withName("Superstructure.feedAll");
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The commented-out code duplicates the withName call from line 243. If this code needs to be re-enabled, remove the withName call from the commented portion to avoid confusion.

Suggested change
// intake.setPivotAngle(Degrees.of(46)).asProxy()).withName("Superstructure.feedAll");
// intake.setPivotAngle(Degrees.of(46)).asProxy());

Copilot uses AI. Check for mistakes.
Comment on lines +72 to +73
// .withGearing(new MechanismGearing(GearBox.fromReductionStages(5, 5, 60.0 /
// 18.0, 42)))
Copy link

Copilot AI Jan 28, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The commented-out gearing configuration on lines 72-73 appears to be an old version. Remove this commented code to improve clarity, as the active configuration is already defined on line 71.

Suggested change
// .withGearing(new MechanismGearing(GearBox.fromReductionStages(5, 5, 60.0 /
// 18.0, 42)))

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant