A Hybrid Control Strategy for Waypoint Transitioning and Loitering of Unmanned Aerial Vehicles