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

add --mavlink_gcs_udp_port param to the drone spawner #10

Merged
merged 1 commit into from
Jul 9, 2024

Conversation

stibipet
Copy link
Member

@stibipet stibipet commented Jul 4, 2024

I added a way to enable Mavlink UDP stream at an arbitrary port. This is currently disabled by default. When enabled, QGroundControl will autoconnect to the simulated px4 using this port.

Other means can also be used to read the raw mavlink data from the port.

Use --mavlink_gcs_udp_port PORT_NUMBER as a spawner argument. PX4 uses 18570 as a base port number, but an arbitrary value may be used.
When spawning N vehicles with a single command, use N port numbers as well, e.g.:
rosservice call /mrs_drone_spawner/spawn "1 2 --x500 --mavlink_gcs_udp_port 18570 18590"

NOTE: It is the user's responsibility to ensure the ports do not overlap with other programs!

Config of the new mavlink stream can be found here.
If you want to enable QGC connection by default, assign a default port number here.

@stibipet stibipet requested a review from klaxalk July 4, 2024 19:43
@stibipet stibipet added the enhancement New feature or request label Jul 4, 2024
@klaxalk klaxalk merged commit 29ba363 into master Jul 9, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants