Skip to content

Fix curvature drive algorithm and improve docs - #19

Open
fibonacci61 wants to merge 2 commits into
vexide:mainfrom
fibonacci61:fix/curvature
Open

Fix curvature drive algorithm and improve docs#19
fibonacci61 wants to merge 2 commits into
vexide:mainfrom
fibonacci61:fix/curvature

Conversation

@fibonacci61

Copy link
Copy Markdown
Contributor

Fixes linear and angular power being swapped while turning in place, and adds missing sin call in second remap of remap_turn. Adds more detailed docs for slew and turn_nonlinearity constants, removes unused quick_stop_accumulator value (holdover from BLRS implementation).

Also adds some small code refactors and an assertion on turn_nonlinearity for correctness. The algorithm could technically still run even if the assertion is violated, but its output wouldn't make any sense.

@lewisfm
lewisfm requested a review from tropicaaal July 12, 2026 20:29
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