ModelPredictiveControl.jl
ModelPredictiveControl.jl copied to clipboard
Added: soft real time utilities
Closes #85
@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