Feature/spin move#94
Merged
Merged
Conversation
Merge DCMP code to main
Replaces fixed-field-pivot orbit approach with pure rotation + calibrated auto-lateral velocity. Documents direction math, termination conditions, and what changes in each file. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Two-task plan: rewrite spinMoveCommand with auto-lateral velocity approach, remove unused constant, verify in simulation. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Replaces the fixed field-coordinate pivot orbit approach (which produced zero net lateral displacement) with pure rotation plus a calibrated auto-lateral velocity derived from pivot distance and angular speed. Removes validity gating on robot speed/direction and center-of-rotation offset logic entirely. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Snapshot DrivePreferences.spinMoveAngularSpeed at command start into state.omega so autoVy and rotationalRate always agree. Fix 2 * Math.PI to 2.0 * Math.PI for type consistency, and add a comment on spinRequest warning against lifting it to a field due to CTRE's mutable fluent API. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Binds left/right triggers to spinMoveCommand with 3s timeout. Adds spinMoveAngularSpeed tunable preference. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
|
✓ Build successful and code formatting check passed! |
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.
No description provided.