Autopilot disengaged event, what I am doing wrong?

Thanks, but I don’t want to use any wrapper. But maybe I can look to sources of this library and check what is going under the hood.