Mavros HITL

Hello,

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@127.0.0.1:14557”` 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.

1 Like

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

I had the same problem. I tried fcu_url:=“udp://:14540@127.0.0.1:14580” , 14580 is the port that allocated for OFFBOARD mavlink communication with companion computer , if it still does n’t work try fcu_url:=“udp://:14550@127.0.0.1:14570” but you should be more carefull , this port is allocated for Qground and other ground stations. Do not overflow that port

1 Like