Skip to content

Made it (Theoretically) Turn Towards the Target#4

Merged
DevWizard13 merged 14 commits intoTeam2550:mainfrom
DevWizard13:photonvision
Feb 16, 2026
Merged

Made it (Theoretically) Turn Towards the Target#4
DevWizard13 merged 14 commits intoTeam2550:mainfrom
DevWizard13:photonvision

Conversation

@DevWizard13
Copy link
Copy Markdown
Contributor

@DevWizard13 DevWizard13 commented Feb 14, 2026

Added several features:

  • Made it turn towards the target upon the method being called
  • Made it adjust the speed of the shooter based on distance

TODO:

  • Account for camera offset
  • Add multi-camera support
  • Adjust the modifier for the shooter speed
  • Add a button bind to trigger the auto-align

DevWizard and others added 14 commits February 14, 2026 11:36
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).
@DevWizard13 DevWizard13 merged commit 4c585f4 into Team2550:main Feb 16, 2026
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