I’m developing an application, that basically consists in controlling velocity and position of two stepper motors, at the same time.
They need to work at the same time, sometimes at different velocities and/or directions, but they need to end at the same time. For example, they might be running at different velocities and directions, but the two of them have to end their cycle in, let’s say, 20 seconds, or 30 seconds… or whatever time they need to be functioning.
Can anybody give me some advice about how to do this? Do I need to create different processes, or one multithreaded process… how do I do that? Thanks in advance!