Narrative:

After receiving clearance we departed. The route description is to climb on a heading of 210 to cross zzzzz at or below 1750 ft. At approximately 1500 ft I engaged the navigation function and autopilot. The plane immediately started a turn to the left away from the course in the FMS. I disengaged the auto pilot and began a turn to the right on course when ATC queried me and then gave me vectors. At approximately 3000 ft the cockpit and cabin began to get hot and fill with smoke. We [advised ATC] and landed on runway xx.it is not clear at this time if there was a malfunction of the autopilot due to the cause of the smoke. We expedited what we thought was the appropriate action to stay on course without causing an air incident while dealing with the [smoke and heat].

Google
 

Original NASA ASRS Text

Title: Lear 31 flight crew reported smoke and heat in the cockpit. The crew returned to the departure airport.

Narrative: After receiving clearance we departed. The route description is to climb on a heading of 210 to cross ZZZZZ at or below 1750 ft. At approximately 1500 ft I engaged the NAV function and autopilot. The plane immediately started a turn to the left away from the course in the FMS. I disengaged the auto pilot and began a turn to the right on course when ATC queried me and then gave me vectors. At approximately 3000 ft the cockpit and cabin began to get hot and fill with smoke. We [advised ATC] and landed on Runway XX.It is not clear at this time if there was a malfunction of the autopilot due to the cause of the smoke. We expedited what we thought was the appropriate action to stay on course without causing an air incident while dealing with the [smoke and heat].

Data retrieved from NASA's ASRS site and automatically converted to unabbreviated mixed upper/lowercase text. This report is for informational purposes with no guarantee of accuracy. See NASA's ASRS site for official report.