Robot pilot that can grab the flight controls gets its plane licence