I am using a Pixhawk Mini directly link with USB on my computer running ROS Indigo. I would want to be able to use QGroundControl in parallel, however I am not confident to do so. First I run:
rosrun mavros mavros_node _fcu_url:=/dev/ttyACM0:921600 _gcs_url:=udp://@localhost
But when I run QGroundControl, my previous node crash:
[ERROR] [1507420985.478197815]: serial0: receive: End of file
terminate called after throwing an instance of ‘std::system_error’
what(): Resource deadlock avoided
Aborted (core dumped)
In QGroundControl, I edit link configuration settings in Comm Links by adding :
UDP type on Listening Port 14550. So my questions are:
It is possible to connect both MAVROS and QGroundControl at the same time ? If so how ?
And It is possible to force QGroundControl to connect to a specific at startup ?
Assuming that you are connected on /dev/ttyACM0 port for instance,
Run first mavproxy connected on that port and open two outputs on local ports for example:
Hey @matt
Trying to run QGC and MavROS at the same time on the same machine to perform SITL testing. In performing SITL testing, we can use the following
sim_vehicle.py -L RATBeach --console
Using the above, we see that the mavproxy runs with the following configuration
“mavproxy.py” “–master” “tcp:127.0.0.1:5760” “–sitl” “127.0.0.1:5501” “–out” “127.0.0.1:14550” “–out” “127.0.0.1:14551” “–console”
The problem is with QGC connection. I have tried to connect it on different port but after sometimes, the mavros shows “ON: Lost connection, HEARTBEAT timed out.”.
I appreciated your guidance and help in this regard.