Skip to content

Feature/spin move#94

Merged
Orcasphynx merged 9 commits into
developmentfrom
feature/spin-move
Apr 19, 2026
Merged

Feature/spin move#94
Orcasphynx merged 9 commits into
developmentfrom
feature/spin-move

Conversation

@Orcasphynx

Copy link
Copy Markdown
Collaborator

No description provided.

y0shi and others added 9 commits April 13, 2026 13:24
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>
@Orcasphynx Orcasphynx merged commit 19a1d85 into development Apr 19, 2026
2 checks passed
@Orcasphynx Orcasphynx deleted the feature/spin-move branch April 19, 2026 00:36
@github-actions

Copy link
Copy Markdown

✓ Build successful and code formatting check passed!

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.

2 participants