PX4 VSM can be configured to connect to the PX4 simulator via UDP connection on port 14550. Add this line to
connection.udp_in.local_port = 14550
Please refer to PX4 documentation on how to install and configure SITL (Software In The Loop) simulation.
The PX4 simulator must be launched before PX4 VSM is launched. Otherwise, if VSM is already running it will
terminate the VSM when launched. This applies only to the case when VSM is running on the same host as
Updated about 1 year ago