Autonomous Waypoint Transitioning and Loitering for Unmanned Aerial Vehicles via Hybrid Control