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] Implement Tsitouras 5th order numerical integrator #7383

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

Advay17
Copy link
Contributor

@Advay17 Advay17 commented Nov 12, 2024

Closes #7123

@Advay17 Advay17 requested a review from a team as a code owner November 12, 2024 17:16
@Advay17 Advay17 force-pushed the Tsit5 branch 2 times, most recently from 7a33067 to 17135d5 Compare November 12, 2024 17:30
@calcmogul calcmogul changed the title Implemented Tsitouras 5th order numerical integrator [wpimath] Implement Tsitouras 5th order numerical integrator Nov 12, 2024
@Advay17 Advay17 force-pushed the Tsit5 branch 2 times, most recently from 8d64dab to f39bda2 Compare November 12, 2024 20:54
@calcmogul
Copy link
Member

/format

Copy link
Member

@calcmogul calcmogul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You forgot the WPI_UNIGNORE_DEPRECATED macro that pops the diagnostic state.

@calcmogul
Copy link
Member

calcmogul commented Nov 12, 2024

Looks like the arm simulation test hung in C++ and Java on a few platforms. This could indicate a bug in the new integrator that's causing the max error to be really large (so the steps are tiny and the solver takes forever).

@calcmogul
Copy link
Member

The issue could be related to numerical precision, a bug in the implementation, or a bug in the paper. You could compare it against https://github.com/SciML/OrdinaryDiffEq.jl/tree/master/lib/OrdinaryDiffEqTsit5/src.

@Advay17
Copy link
Contributor Author

Advay17 commented Dec 6, 2024

The float method in the linked repo appeared to be at most 4 decimal places more precise, I can try updating the constants. In addition, the signs for the b2 constants are flipped in my code and the paper when compared to the other repo, so I will try swapping those as well.

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.

Implement Tsitouras 5th order numerical integrator
3 participants