My name is Paulo. I´m a student of Aviation Safety and I need a help for my tesis.
I´m a begginer using python.
I have a problem and I would like a help.
I´m using the Mission Planner to control a drone in the mavproxy (it´s a simulation. There´s no a real drone).
I have a ADS-B receiver connected in my computer and it sends the information of air traffic to the Mission Planner (the image of the airplane appears on the display in Mission Planner).
So… I need a scritp that makes the drone back to home and land when the air traffic is detected.
Can someone help me?
Beside, it’s no reliability by scripting on a ground station that depends on radio link… And windows.
You can easily change the code on autopilot to do RTL while avoiding proximity to traffic.
As I´ve said, there´s no real drone. It´s a simulation using the mavproxy.
So… is there a way to programm (or configure) the autopilot using python or the configurations in the Mission Planner? I´ve tried, but I could not do it.
You only need to enable ADSB on the mission planner drone parameters.
Your simulated drone will already avoid the real trafic that the ADSB receives sees.
You do not need to know python the code is in ardupilot\libraries\AC_avoidance and is written in C++.
I enabled avoid ads-b on the mission planner, the aircraft appears in display, but the virtual drone in mavlink did not return to home.
Do I have to set some mode in mavproxy (or mission planner)?
The receiver that I use is not the uavionics, but a RTL2832U usb.
You need to enable the adsb receiver in mission planner, then connect the adsb receiver to the pixhawk, configure the pixhawk serial port, and enable the adsb parameter.
I don´t have a pixhawk, but I can buy this. But, before I buy a pixhawk, I repeat that there´s not a real drone, but a simulated drone (in Mavproxy), wich is controled by Mission Planner. Are sure that it will work with the pixhawk?
I do not know if other receivers also work. It is possible to test in the SITL, but for that you need to tell the SITL to listen to a real serial connection on your PC. If you get that running, then it will also work with a pixhawk.