Add move and shoot and port Nathan's shooter code from Java.#8
Merged
Conversation
wh1te-lotus
reviewed
Feb 20, 2026
| const HUB_X = HUB_DISTANCE_FROM_WALL; | ||
| const HUB_Y = ALLIANCE_ZONE_WIDTH / 2; | ||
|
|
||
| const SHOOTER_MIN_LAUNCH_SPEED = 10.0; |
Contributor
There was a problem hiding this comment.
Changing this to 5.0 makes the trajectory much better.
wh1te-lotus
requested changes
Feb 20, 2026
| const HUB_Y = ALLIANCE_ZONE_WIDTH / 2; | ||
|
|
||
| const SHOOTER_MIN_LAUNCH_SPEED = 10.0; | ||
| const SHOOTER_MAX_LAUNCH_SPEED = 25.0; |
Contributor
There was a problem hiding this comment.
Changing to 15.0 is much more reasonable. Something like 20.0 may work as well, although I'm not sure it's necessary.
wh1te-lotus
reviewed
Feb 20, 2026
Contributor
There was a problem hiding this comment.
Can messily compensate for air resistance by adding a fudge factor based on time of flight.
like this: const targetDist = Math.hypot(targetXLocation, targetYLocation) + (0.3 * flightTime);
Lower launch speed range from 10-25 to 5-15 m/s to match realistic alliance zone distances. Add linear air resistance compensation (0.3 * flightTime) to target distance calculation so the auto-shoot aims slightly farther to account for drag-induced horizontal slowdown. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Replace single-ball firing with ball pool (12 meshes) and per-frame physics hit detection. Auto-shoot mode streams balls at 8/sec. Balls turn green on hit, red on miss, and fade out over 500ms. Add prominent hit/miss counter to top bar. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.
Add move and shoot simulation mode and port Nathan's shooter code from java from this branch: https://github.com/Team766/robots/blob/shooter-code/src/main/java/com/team766/robot/y2026/reva/mechanisms/ShooterUtils.java