Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[wpimath] Exit early when parameterizing malformed spline #6827

Conversation

calcmogul
Copy link
Member

Currently, a max iteration heuristic is used to determine when a spline is malformed. Instead, we can report a failure immediately if dx and dy are too small, because the heading won't be accurate either.

Fixes #6826.

@calcmogul calcmogul requested a review from a team as a code owner July 12, 2024 20:50
@calcmogul calcmogul force-pushed the wpimath-exit-early-when-parameterizing-malformed-spline branch 2 times, most recently from 5e97d78 to 86980cc Compare July 12, 2024 21:05
Currently, a max iteration heuristic is used to determine when a spline
is malformed. Instead, we can report a failure immediately if dx and dy
are too small, because the heading won't be accurate either.

Fixes wpilibsuite#6826.
@calcmogul calcmogul force-pushed the wpimath-exit-early-when-parameterizing-malformed-spline branch from 86980cc to 6ef3be0 Compare July 12, 2024 21:06
@PeterJohnson PeterJohnson merged commit deb5f3d into wpilibsuite:main Jul 13, 2024
34 of 35 checks passed
@calcmogul calcmogul deleted the wpimath-exit-early-when-parameterizing-malformed-spline branch July 13, 2024 05:00
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.

#6767 drastically increases test times
2 participants