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

core: ArdupilotManager: fix mavlink-router tcp endpoints #2223

Merged

Conversation

Williangalvani
Copy link
Member

@Williangalvani Williangalvani commented Dec 6, 2023

fix #2222

This will only affect SITL, since Navigator uses UDP.

It also doesn't really affect it, since the behavior is the same, we were just calling things via the wrong names

@Williangalvani Williangalvani marked this pull request as draft December 6, 2023 20:48
@Williangalvani Williangalvani force-pushed the fix_mavlink_router_tcp branch 9 times, most recently from 29515c9 to eb5943a Compare December 7, 2023 13:23
@Williangalvani Williangalvani marked this pull request as ready for review December 7, 2023 14:14
@Williangalvani Williangalvani requested review from patrickelectric and rafaellehmkuhl and removed request for patrickelectric December 7, 2023 14:14
if endpoint.connection_type == EndpointType.TCPClient:
return f"--tcp-port {endpoint.argument}"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wait, here you are using tcp-port as a client and in line 68 as a server.

IIRC the tcp-port receives only the port because it binds on the host computer, being a server by nature.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good catch, it turned out that only the master endpoint was switched

@Williangalvani Williangalvani force-pushed the fix_mavlink_router_tcp branch 2 times, most recently from 42c0c00 to 95103a3 Compare December 7, 2023 14:46
@patrickelectric patrickelectric merged commit ff96e5a into bluerobotics:master Dec 7, 2023
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

MAvlinkRouter TCPServer and TCPClient endpoints are switched
2 participants