code for autopilot