Run multiple files or while loo simulataneously

1 view (last 30 days)
Hai,
I have 2 sensors on my drone which is laser and camera sensors.
i would like the camera sensors to execute the optical flow at all times (infinitely) and same goes to laser sensors (detecting the distance from the obstacles).
However, both are these has different time steps, one is very fast and the other is very slow (e.g optical flow). Therefore, both of these sensors are not possible to run on a single while loop.
How can i run these 2 while loop at the same time on matlab?
plus, can these 2 loop communicate with each other while running?
Thank you.

Answers (0)

Categories

Find more on Instrument Control Toolbox Supported Hardware in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by