Shuttling/Shot Modes Update - #97
Open
Adam-Kolt wants to merge 26 commits into
Open
Conversation
Author
|
Also I guess it needs fixing to actually build/needs the new code pulled into it before merging. @cjayamanne and @Adamtheboss9 you guys can build off of this or take whatever you need for the issue. |
heatonk
self-requested a review
April 6, 2026 20:52
|
Need to create new table for shuttle calibrations in order to correct and merge this code. |
…ttle-make-gooderer
Initialize turret zeroing during autonomous setup and implement zeroing support; reduce auto wait times and tweak path/shooter constants. Changes: - Autos: lower waitTime from 3.5s to 3.0s in Left/Right 5010 Double autos. - Path: adjust goalEndState.rotation in TL-CTL-QTL-BL-L.path. - Launcher: add zeroTurret() on Launcher and LauncherIO, call launcher.zeroTurret() during autonomous setup (guarded by RobotState.isAutonomous()). - LauncherIOReal: implement zeroTurret() using CANcoder absolute position (added StatusSignal import) and set turret angle with encoder offset. - ShotCalculator: adjust several mapping entries (e.g. 4.5403 -> 118.114, 10.9907 -> 158.0, 13.0240 -> 173.0) to refine shot parameters. These changes ensure the turret is correctly zeroed at auto start and update timing/ballistics/path rotation data to match tuning results.
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.
I drafted up this code for the different shot-types before comp, but didn't push the commit/branch. Should be alright, but needs testing.