Skip to content

Manual shooting adjustment#132

Open
kirbythepuffdragon wants to merge 3 commits intomainfrom
manual_shooting_adjustment
Open

Manual shooting adjustment#132
kirbythepuffdragon wants to merge 3 commits intomainfrom
manual_shooting_adjustment

Conversation

@kirbythepuffdragon
Copy link
Contributor

Added manual offset and refresh to adjust position for accuracy. It is a manual turret correction

After modifying offset, it moves turret to the updated position using the offset.
@kirbythepuffdragon kirbythepuffdragon requested a review from a team March 20, 2026 01:11
public Command modifyOffsetAngle(Angle amount){
return runOnce(
() -> {
manualOffset = manualOffset.plus(amount);
Copy link
Collaborator

Choose a reason for hiding this comment

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

You can just set manual offset to amount instead of adding them. Otherwise it would be hard to restore the original shooting settings.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Also change the name of this method to setOffsetAngle once this is done.

* @return a Command that, while scheduled, continuously moves the turret toward the supplied
* target angle while attempting to maintain the supplied target velocity
*/
public Command track(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Add the offset to track().

@@ -1,9 +1,19 @@
{
Copy link
Collaborator

Choose a reason for hiding this comment

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

Undo changes to this file. It's a configuration that we just want to leave the same.

.axisLessThan(Axis.kRightX.value, -0.5)
.and(() -> fineControl)
.onTrue(this.robot.getTurret().modifyOffsetAngle(Degrees.of(3)));

Copy link
Collaborator

Choose a reason for hiding this comment

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

We also need to be able to offset the hood.

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.

2 participants