Constantly send data form python script on one raspberry pi pixhawk drone to python script on another raspberry pi pixhawk drone

I have a drone (custom made by someone else form science club and given to me) that was made for a different project so it already has python scripts for controling it through ardupilot (pi connected to pixhawk mounted on drone). What i need to do for my project is to take the location of this drone from that script on the pi and send it to another pi on another drone with the same setup to tell it where to go so they fly together. Right now i’m looking for the easiest way to do that and also are open to redoing some stuff if it makes it easier but any help with any stage of this will be greatly appreciated.

There is the “follow me” flight mode to do what you want. Just read the documentation and try it out.

2 Likes