A PSO-PID quaternion model based trajectory control of a hexarotor UAV