The cooperative detection of aircraft has been widely concerned by scholars at home and abroad in recent years. This paper mainly studies the positioning accuracy of the sensor-carrying aircraft in collaborative detection. By using Grasshopper Optimisation Algorithm (GOA), Taking Geometrical Dilution of Precision (GDOP) as the objective function, the relative position relationship between aircraft is determined, the optimal detection configuration is planned, and the feasibility of the algorithm is analyzed under limited flight area conditions, the positioning accuracy of collaborative detection is further improved.