Mavros HITL



I managed to run HITL and Gazebo with px4. I followed the guide and the hitl run perfectly, and I can use the RC. However, I’m not able to run mavros with the indicate UDP ports. For example the command
"roslaunch mavros px4.launch fcu_url:=“udp://:14540@”` does not work. I tried using the port 14550 instead of 14550 and it works, but that’s a problem because I’m going to use this port for QCS and i will use mavros to run some ros node.

Any suggestions or solution? Thanks in advance.


Hey, anyone know how to use mavros or dronecode in HITL? I can’t use the port 14440