Quote:
Originally Posted by danielcezar
The only problem is that when i call sleep, the software stops at all, so i cant move the robot while this.
Should i call inside the thread or not?
|
You should call it in a separate thread if it blocks the execution of code you don't want blocked.
Perhaps you should take a step back and explain what it is that you are trying to accomplish instead of asking how to implement the solution that you've come up with. Chances are there is a better way to accomplish it.
-Joe