Made it (Theoretically) Turn Towards the Target#4
Merged
DevWizard13 merged 14 commits intoTeam2550:mainfrom Feb 16, 2026
Merged
Made it (Theoretically) Turn Towards the Target#4DevWizard13 merged 14 commits intoTeam2550:mainfrom
DevWizard13 merged 14 commits intoTeam2550:mainfrom
Conversation
There's a TON I need to fix
OK, tbh I literally forgot what I did. Don't ask me why. IDK. Anyway, it should run now. Kye says it looks like it'll run. It can turn the robot to point at the target (hopefully). I still need to account for camera offset, I'll do that later.
It still needs serious testing. We need to figure out the right modifier value through trial and error. Also, I sincerely hope that someone put in a limit in case it goes over a certain value.
The right bumper triggers the auto-align. It prevents the driver from interfering during the process.
* Made it so that you can't drive while it auto-aligns * Added some modifier values to the turn rate
When the robot is pointing towards the target, it'll automatically fire.
Seriously. The photonvision branch shouldn't have changed THAT much. I suppose git operates with magic.
I added a tolerance for 1 degree for aim, made it run continuously until interrupted, and interrupted it upon being aligned with the target. I could probably find more things to refine, but at this point, I think it's mostly complete. The only thing left to do is test (looking at you, build team).
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 several features:
TODO: