Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The local_position/pose topic's refresh rate is too low #8004

Closed
wwwefwehfrgjnrek opened this issue Sep 24, 2017 · 4 comments
Closed

The local_position/pose topic's refresh rate is too low #8004

wwwefwehfrgjnrek opened this issue Sep 24, 2017 · 4 comments
Labels
Admin: More Information Needed Documentation 📑 Anything improving the documentation of the code / ecosystem

Comments

@wwwefwehfrgjnrek
Copy link

wwwefwehfrgjnrek commented Sep 24, 2017

Hey, We are using a VICON system + Pixhawk +Odroid XU4 on our uav. We have Configured the Firmware, and are able to get the mocap data on the local_position/pose topic. However, when I using the command rostopic hz /mavros/local_position/pose to looking at the publishing frequency of the topic's data ,it is found to continue to decrease even lower than 1HZ.Meanwhile, the situation of data loss occurs.I am very confused. Then I commented out the code which is subscribe to the image topics and the function that handles it.The topic 's publishing frequency is 10Hz and the data will not be lost.I do not know why this happens,how to solve it. Thank you

@dagar
Copy link
Member

dagar commented Sep 24, 2017

Where are you seeing the rates? You likely need to increase it here. https://github.com/PX4/Firmware/blob/master/src/modules/mavlink/mavlink_main.cpp#L2042

This can be done by choosing a different mavlink mode, asking for a higher rate via mavlink, or the command line. mavlink stream -d /dev/ttyS1 -s LOCAL_POSITION_NED -r 100

@dagar dagar added Documentation 📑 Anything improving the documentation of the code / ecosystem Admin: More Information Needed labels Sep 24, 2017
@wwwefwehfrgjnrek
Copy link
Author

@dagar Thanks for your help. I use the command rostopic hz /mavros/local_position/pose to view the frequency of data published by mavros.The frequency of data published is continue to decrease even lower than 1HZ.If i asking for a higher rate via mavlink,it will affect other data published?

@dagar
Copy link
Member

dagar commented Sep 25, 2017

That would completely depend on your setup, although you should definitely be able to stream much faster than that unless something is very wrong.

@dagar
Copy link
Member

dagar commented Sep 25, 2017

I'll close this for now. If you have further questions please ask on http://discuss.px4.io/ or https://px4.slack.com.

@dagar dagar closed this as completed Sep 25, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Admin: More Information Needed Documentation 📑 Anything improving the documentation of the code / ecosystem
Projects
None yet
Development

No branches or pull requests

2 participants