Text this: Segmented UAV Trajectory Optimization via Fifth-Order Polynomial Approximation and Analytical Optimal Control.