Quantcast
Channel: ROS Answers: Open Source Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 314

Slower execution speed leading to Lost Sync With Device in STM32F103

$
0
0
Using the rosserial_stm32(https://github.com/yoneken/rosserial_stm32) library, I am trying to publishing a message(std_msgs/UInt32) on the /chatter topic at a rate of 5Hz. The message gets published at a rate 20% lower as seen from the screenshot below. When estimating the time of execution, I found the time taken for each loop to be around 236ms which is roughly 4.2Hz. ![image description](https://user-images.githubusercontent.com/10889883/46659625-dec2ea80-cbe7-11e8-921d-1e9af6d6dab2.png) ![image description](https://user-images.githubusercontent.com/10889883/46659482-95729b00-cbe7-11e8-9aff-114b8b7c6641.png) I am also getting a Lost Sync with Device error very frequently (once every 2 minutes) as the code hangs. Any pointers to solutions? Thanks!

Viewing all articles
Browse latest Browse all 314

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>