AC_WPNav: limit max loiter position error

move interpretation of pilot input to wpnav lib