Lost sync with device, restarting... when Arduino code have delay
Hello all.
I have a problem with rosserial. I have a mobot that responds to the sensors data. I use a publisher/subscriber for this. The mobot is working fine, but I want it to move backwards for about 1-2 seconds then turn right or left depending on the sensors data. The problem is I'm using delay for this and when I add the delay to my Arduino code, rosserial gives me an error of "Lost sync with device, restarting...".
I have read and implemented a lot of solutions but none are working. Do help please.
How does this relate to #q302291?
The linked question is one of my other problems. But since the library part is not working, I resorted to the one without it. This question is my other problem.