Mavlink server configuration of ports wont work
-
Hi all,
you've ben very helpful i have an issue with mavlink-server / Voxl-px4-parametersI have an issue with mavlink-server I tired to change the config files
"onboard_port_from_autopilot": 14557, "gcs_port_to_autopilot": 14558, "gcs_port_from_autopilot": 14559,
I want to change it cause when using two drones or more , it seems like Mavlink comms are interfering between (both connected to same network when it occurs )
each other, and I want to isolate each in its own domain
I changed the config file but that makes the mavlink-server not to pass any data between the autopilot and the voxl px4voxl-mavlinke-inspect
this passes no data from autopilot or to autopilotI think or guess this happens since the ports are hardcoded in the firmware
I tried to cahnge parameters
MAV_0_UDP_PRT
MAV_1_UDP_PRT
but they don't even exist on the params list of modalais voxl2 qrb5165any suggestions how to isolate each drone? or to add those parameters?
how to add the paramers without recompiling the px4-firmware ?i will appreciate your help having trouble flying more than one drone at each moment hinders my work
Best Regard
Jacob -
@jacob-yaacubov Each drone will have it's own IP address so that is how they are separated. Those port numbers in the mavlink server configuration are only for communications within the board, not externally. What makes you say that they are "interfering"?
-
Thanks for the replay
I understand the IP isolation indeed this how I expect this to work
well to answer this I have these weird issues
When QGC is connected only to a single drone the attitude indicator jump between the values of the two drones - hence the home position jumps and the drone refuses to take off
switching one of them off and rebooting the second makes the second one work well when alone on the network- when looking at the ROS topic which is reading from the MPA - (qgc is off at this stage )
the local pose values jumped as well, at first I didn't understand why, but then I realized it was getting one value from drone A second From drone B
both drones run same voxl2 with same SDK 1.1.3
same packages and branches on both
tried to play with MAV_SYS_ID param maybe its mavlink issuekind of confused
both ros master run on 127.0.01 so its local ros communication looks more like mavlink issue not sure though -
@jacob-yaacubov said in Mavlink server configuration of ports wont work:
branches
@jacob-yaacubov said in Mavlink server configuration of ports wont work:
both ros master run on 127.0.01 so its local ros communication looks more like mavlink issue not sure though
Reply
@jacob-yaacubov yes you need to change the mav sys id for both otherwise they will overlap and create the problem you stated before when connecting to qgc and having overlapping px4 instances. As for ROS you need to change the ROS_DOMAIN_ID (an external terminal environment variable) otherwise all the ros topics will also overlap and create multiple publishers and subscribers on the same drone when you have multiple on.
Zach