add --mavlink_gcs_udp_port param to the drone spawner #10
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.