Run multiple files or while loo simulataneously
1 view (last 30 days)
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?