Despite the widespread application of Unmanned Aerial Vehicles (UAVs) or drones in various critical missions like precision agriculture, their flight path control is mainly done manually, and it suffers from limitations such as human latency, high chance of human error, and unstable flight paths. In this research, a testing and optimization of flight path performance of autonomously controlled drones through high-fidelity simulation of the flight paths of the drones using ROS 2, the SITL-PX4 Autopilot, the Gazebo simulator, and web-based GCS will be done. The simulation takes place in the 3D agricultural/rice field with static obstacles scenario. A* algorithm computes the shortest-path that is free of collisions using the occupancy grid map generated from the sensors' scans. The comparison and evaluation were performed experimentally with different distances of up to 45 meters between manual and autonomous control. The experiments clearly showed that the A* algorithm-based autonomous control outperformed manual control significantly. For the longest test distance of 45 meters, the autonomous control managed to finish the route in 57.2 seconds with an average speed of 0.79 m/s, compared to 105.5 seconds for manual control with an average speed of 0.43 m/s. The development of this autonomous navigation system resulted in increased time efficiency by 45.78% and higher relative speed by 83.72%. The successful integration of ROS 2, PX4, and GCS web application enables safe and accurate simulation before implementation on real-world UAVs.
Copyrights © 2026