ModelPredictiveControl.jl icon indicating copy to clipboard operation
ModelPredictiveControl.jl copied to clipboard

Added: soft real time utilities

Open franckgaga opened this issue 1 year ago • 1 comments

Closes #85

franckgaga avatar Aug 17 '24 23:08 franckgaga

@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 avatar Aug 18 '24 00:08 franckgaga