Open
Conversation
After modifying offset, it moves turret to the updated position using the offset.
codeNinja-1
requested changes
Mar 20, 2026
| public Command modifyOffsetAngle(Angle amount){ | ||
| return runOnce( | ||
| () -> { | ||
| manualOffset = manualOffset.plus(amount); |
Collaborator
There was a problem hiding this comment.
You can just set manual offset to amount instead of adding them. Otherwise it would be hard to restore the original shooting settings.
Collaborator
There was a problem hiding this comment.
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( |
Collaborator
There was a problem hiding this comment.
Add the offset to track().
| @@ -1,9 +1,19 @@ | |||
| { | |||
Collaborator
There was a problem hiding this comment.
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))); | ||
|
|
Collaborator
There was a problem hiding this comment.
We also need to be able to offset the hood.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Added manual offset and refresh to adjust position for accuracy. It is a manual turret correction