A Novel Approach for Trajectory Tracking of UAVs