Mathematical modeling and control of a tiltrotor UAV