Multi vehicles collision avoidance by GPS

Hi,I made an unmanned ship with a diameter of 3M and realized the auto waypoint. Although it was not ideal, I was still improving. Now I want to make a second one, but I have two problems

  1. I want to realize the anti-collision of these two ships through GPS positioning. I searched some parameters through mission planner, but I didn’t see relevant information. Maybe I missed it

  2. I want to build a networking through WiFi (the module has been bought, but haven’t arrived yet) and use the computer as the base station. The two ships are connected to the hot spots of the computer. Does this scheme works?
    Thank you in advance

1 Like

@rmackay9 Hi,I have learn a lot from your answers,Thank you very much.I find AVOID_MARGIN and AVOID_ENABLE parameters,the describtion of AVOID_MARGIN is to know distance from objecs,does the objecs contain another pixhawk’s GPS singal?
Thank you in advance

Today,I find the ADSB.Is the module to avoid business airplane?So I just find SRx_ADSB parameters in the ArduRover firmware.Is there any possibile to build a private ADSB system on the Mission Planner on the PC?just to make avoidance from each other which connected to the Mission Planner.

My WIFI modules have arrived,But the firmware only surpport AP model,cannot swich Station model.So I rebooking firmware according to the course below
https://ardupilot.org/copter/docs/common-esp8266-telemetry.html
HaHardware wiring follows as below


The module is ESP-12F

The firmware is successfully brushed in
I can setup the parameters in the 192.168.4.1 in AP model,I change to the Station model and connected to the hot spots of PC,

I found the Mission Planner cannot connect to the WIFI module.But QGround can automatic connect the WIFI module.

even I use the IP and port in the red box above the Mission Planner still cannot connect

the GCS ID of Mission Planner and QGrouund are both 255


the connection process is as follows
TCP model,then click CONNECT
image
Enter IP address
image
Enter port
image
Then report errors
image
Details


the Chinese above mean “Unable to connect because the target computer actively refused”

I found the link is UDP.I disabled the auto connection in the QGroundControl
image
Then I create a UDP link


It worked !
but the same process still don’t work in Mission Planner.
the UDP of MP cannot input IP ?
I also try to input IP as follows

and listern port
image
the result is always like this
image

UDP link dont need IP address,I tried in QGroundControl.

I tried Mavproxy acccroding the course as below
https://ardupilot.org/dev/docs/mavproxy-on-windows-7.html
My system is Win10,I imput the command “mavproxy.exe --master=udp:14550”


when I input “mavproxy.exe --mav20”

Finally !!!
I input command mavproxy.exe --mav20 --baudrate 57600 --out 127.0.0.1:6789,the “6789” is define by my self.


then open the Mission Planner,use UDP link and input port 6789, It worked.

Thanks to the forum and open source.
(Why am I persist in Mission Planner? I just want to overcome it :crazy_face:)

1 Like

Now I realized collision avoidance by GPS