Skip to content

Added: soft real time utilities #94

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

Merged
merged 11 commits into from
Aug 19, 2024
Merged

Added: soft real time utilities #94

merged 11 commits into from
Aug 19, 2024

Conversation

franckgaga
Copy link
Member

Closes #85

@franckgaga
Copy link
Member Author

@baggepinnen

I added some simple utilities for soft-real time simulations, based on the method that you described in your video. I call sleep by default, but, as you noticed, its accuracy is bad under 0.1 second. Because of that, there is an argument to choose a simple busy-waiting while loop instead.

See the example in periodsleep docstring: https://juliacontrol.github.io/ModelPredictiveControl.jl/previews/PR94/public/generic_func/#Soft-Real-Time-Utilities

@franckgaga franckgaga merged commit 1e4d3f8 into main Aug 19, 2024
3 of 4 checks passed
@franckgaga franckgaga deleted the soft_real_time_simple branch August 19, 2024 18:09
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.

Real-time loop tools
2 participants