Ask Your Question
1

rosserial arduino timer problem

asked 2019-07-11 15:31:46 -0500

MrMartins gravatar image

I'm trying to make a publisher in Arduino to send some data to ROS. But I can't do it unless I comment the timer I have on my code. I'm using timer3 but already tried timer1 also.

The problem I get when running "rosrun rosserial_python serial_node.py /dev/ttyACM0" is : "Unable to sync with device"

But when the timer is off it works perfectly.

edit retag flag offensive close merge delete

Comments

for what do you need time form arduino?

khasreto gravatar imagekhasreto ( 2019-07-11 16:41:28 -0500 )edit

I'm using them to control 2 motors. Btw, ROS is installed on a Raspberry Pi with no internet access so it's kind of hard to copy my entire code.

MrMartins gravatar imageMrMartins ( 2019-07-11 17:00:56 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2019-07-12 11:57:34 -0500

duck-development gravatar image

how often you timer fires? how long take it to finisch the timer interrupt?

it it create to mutch load then you get time outs in the communication.

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2019-07-11 15:31:46 -0500

Seen: 27 times

Last updated: Jul 12