Lost sync with device, restarting... when Arduino code have delay

asked 2018-09-04 00:42:47 -0500

Nelle gravatar image

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.

edit retag flag offensive close merge delete


How does this relate to #q302291?

gvdhoorn gravatar image gvdhoorn  ( 2018-09-04 02:04:04 -0500 )edit

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.

Nelle gravatar image Nelle  ( 2018-09-04 02:43:12 -0500 )edit