Text this: UAV Path Planning under Dynamic Threats Using an Improved PSO Algorithm