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

Target system and component fail serial mavlink #11255

Closed
tuloski opened this issue Jan 21, 2019 · 3 comments
Closed

Target system and component fail serial mavlink #11255

tuloski opened this issue Jan 21, 2019 · 3 comments

Comments

@tuloski
Copy link

tuloski commented Jan 21, 2019

I have a serial to the pixracer which sends MAVlink messages with protocol v1.0.
I'm sending a COMMAND_LONG message and it's received correctly, but the parsing fails here: https://github.com/PX4/Firmware/blob/755eb6a2e9bc3598f994593af15ca095e54055c4/src/modules/mavlink/mavlink_receiver.cpp#L551

because it results a wrong target system and component.
Debugging it seems that it requires a target system == 1 (as specified in the params of the autopilot) and target_component == 1 or == 0 (all components).
The problem is that the mavlink message received has target and component == 0, but I verified the message sent and it includes the correct system and component. I can't understand where those values are being dropped and changed to 1.
Is there something else I should do at MAVlink protocol (the sender) to communicate the target system and component other than inside the messages sent?
Any idea where those values can be dropped and set at 0?

@stale
Copy link

stale bot commented Jun 24, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale
Copy link

stale bot commented Jul 8, 2019

Closing as stale.

@stale stale bot closed this as completed Jul 8, 2019
@julianoes
Copy link
Contributor

Sorry for the late response.
@tuloski you would have to share the code that sends these commands for us to help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants