-
Notifications
You must be signed in to change notification settings - Fork 986
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
Combine /imu/data and /imu/data_raw #39
Comments
Stream rates can be requested by |
This is what I get from 'data' :
I get this from data_raw:
Please let me know what is the problem. I'm using the PX4 stack alongwith 'common' message set. How do I use set_stream_rate? Kabir |
Seems it is bug.
P.S.: Add 4 space for code blocks. |
Will you be able to check out this bug and fix it? |
Set rate example:
Note: APM drop stream request not from GCS. I will check that bug, but I need help with validation (I do not have PX4). |
Could you add dump of imu/data_raw stream? |
Yep, I will validate the fix for you. Thanks for the help!! Kabir |
From data_raw :
|
I fix it. Check please. |
Yep fixed ;) It is working as it should. Thanks for the fix. So, for 250 Hz update on 'imu/data' I need to set stream rate of 250Hz on both HIGHRES_IMU and ATTITUDE, right? |
Yes, you right. But values in REQUEST_MESSAGE_STREAM not well described, so you must check in px4 source what values to use. |
@mhkabir, @vooon I'm trying to fetch read rostopic echo /mavros/imu/data_raw But i get nothing. Please refer to http://erlerobotics.gitbooks.io/erlerobot/en/mavlink/ros/mavros.html. |
It can be related, please show how do you use socat. And see /diagnostics topic (better using rqt runtime monitor). FCU connection status must be "connected" and rx_seq increases. Also you can add hex dump to socat and check message flow. |
At http://erlerobotics.gitbooks.io/erlerobot/en/mavlink/ros/mavros.html you can see that i launch
I tried |
Strange. Try Add |
And don't set _gsc_host if you don't use stream, "" disables send until somebody sends packet to _bind_port. |
Something I found, set_stream_rate doesn't work with PX4 stack. I need to delve into the source code to find out how they handle it... |
FYI: APM reject REQUEST_DATA_STREAM if msg.sysid != GCS (parameter). |
@vmayoral, i am trying get same issue, but mavros works. My steps:
On both socat terminals have some data flow, and have messages after |
Reproduce @vmayoral problem, when socat demonized with But |
@vmayoral If you are connecting to pixhawk on PX4 stack with USB, you have to make sure you start the mavlink stream by connecting with QGC. @vooon This can be worked around by initialising the mavlink on USB by sending the following bytes to PX4 first. |
@vooon Sorry I realise you already have this via startup_px4_usb_quirk parameter :) |
@ggregory8 not shure, but APM (BeaglePilot use their code) don't require PX4 USB quirk. I think original issue is fixed, so i can close. |
What's the difference between "data" and "data_raw" ? |
As far as I understand:
Can we get a single topic with all 3 sets of data in one message? To get this combined message at 100Hz, I would need to stream both HIGHRES_IMU and ATTITUDE at 100Hz right?
Kabir
The text was updated successfully, but these errors were encountered: