Skip to content

fixed the stow so that it works with the new dev#63

Closed
davidpolcen-sudo wants to merge 3 commits intodevfrom
feature/stow_update2
Closed

fixed the stow so that it works with the new dev#63
davidpolcen-sudo wants to merge 3 commits intodevfrom
feature/stow_update2

Conversation

@davidpolcen-sudo
Copy link
Copy Markdown
Contributor

No description provided.

@quipp quipp added enhancement New feature or request Untested This codes has not been tested, apart from a build. labels Apr 11, 2026
Copy link
Copy Markdown
Contributor

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

Updates turret hood stowing to better “seat” at the mechanical stow position and aligns teleop behavior so the turret stows by default and only targets while actively shooting.

Changes:

  • Adjusted hood stow behavior to settle based on measured hood velocity (and reset hood encoder at stow).
  • Updated RobotContainer bindings so turret targeting runs while the shoot trigger is held; turret default command is now stow.
  • Added new constants for hood settle thresholds/timing and a transfer load delay.

Reviewed changes

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

File Description
src/main/java/frc/robot/subsystems/TurretSubsystem.java Adds hood velocity accessor and changes stow sequence to settle until hood motion is stable, then resets hood angle at stow.
src/main/java/frc/robot/RobotContainer.java Runs turret targeting only while shooting; sets turret default to stow; adds a small delay before starting transfer load on shoot.
src/main/java/frc/robot/Constants.java Introduces new turret stow stability/velocity constants and a transfer LOAD_DELAY.

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

Comment thread src/main/java/frc/robot/subsystems/TurretSubsystem.java Outdated
Comment thread src/main/java/frc/robot/subsystems/TurretSubsystem.java
Comment on lines +424 to +427
public static final double HOOD_STABLE = 5;

public static final double HOOD_STABLE_TIME = 0.1;

Copy link

Copilot AI Apr 11, 2026

Choose a reason for hiding this comment

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

HOOD_STABLE_TIME is introduced but is unused anywhere, while HOOD_STABLE (value 5) is the constant actually used as the Timer elapsed threshold. Either remove the unused constant or use a single clearly-named constant (with units in the name/comment) for the stow stability time to avoid confusion/misconfiguration.

Suggested change
public static final double HOOD_STABLE = 5;
public static final double HOOD_STABLE_TIME = 0.1;
public static final double HOOD_STABLE = 5; // seconds

Copilot uses AI. Check for mistakes.
targetingSupplier,
driveSubsystem::getPose,
driveSubsystem::getVelocity));
turretSubsystem.setDefaultCommand(turretSubsystem.getStowCommand());
Copy link

Copilot AI Apr 11, 2026

Choose a reason for hiding this comment

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

TurretSubsystem's getStowCommand() sets SmartDashboard key Turret/IsStowing to true on initialize and never clears it. With the turret default command now set to getStowCommand(), this flag will likely stay true for the entire teleop session, which makes the indicator misleading. Consider changing the default to a non-stow idle/hold command, or update getStowCommand() to set the flag false when the stow sequence completes/ends.

Suggested change
turretSubsystem.setDefaultCommand(turretSubsystem.getStowCommand());
turretSubsystem.setDefaultCommand(new RunCommand(() -> {
}, turretSubsystem));

Copilot uses AI. Check for mistakes.
@quipp quipp closed this Apr 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request Untested This codes has not been tested, apart from a build.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants