modern autopilots use computer software to control the aircraft. the software reads the aircraft's current position, and then controls a flight control system to guide the aircraft. in such a system, besides classic flight controls, many autopilots incorporate thrust control capabilities that can control throttles to optimize the airspeed.