Narrative:

I had taken off and turned west as cleared. ATC authorized to change frequency. On establishing a course west I set the autopilot for heading and altitude. I then was distracted by a new flight software program I had just loaded on an ipad the day before. I had tis-b traffic set up on my number 2 radio. I kept looking at traffic and the ipad and was distracted from following the navigation 1 radio set to map or the HSI. I must have tripped off the autopilot without realizing it and at the speed of a baron I was in the wrong place in just a few minutes. I looked at the number 1 navigation and immediately realized what was happening. I penetrated class B [airspace] but caught it very quickly and made an immediate turn away from the airport. Human performance considerations:it was foolish to attempt to resolve the problem with the flight software program without being well on course which was correctly set in my navigation 1. The qualifying factor was poor decision making and not monitoring the autopilot.

Google
 

Original NASA ASRS Text

Title: BE58 pilot reported the autopilot disconnected while he was distracted with other tasks resulting in an unintentional entry into Class B airspace.

Narrative: I had taken off and turned west as cleared. ATC authorized to change frequency. On establishing a course west I set the Autopilot for heading and Altitude. I then was distracted by a new flight software program I had just loaded on an iPad the day before. I had TIS-b traffic set up on my number 2 radio. I kept looking at traffic and the iPad and was distracted from following the NAV 1 radio set to map or the HSI. I must have tripped off the autopilot without realizing it and at the speed of a Baron I was in the wrong place in just a few minutes. I looked at the number 1 NAV and immediately realized what was happening. I penetrated Class B [airspace] but caught it very quickly and made an immediate turn away from the airport. Human Performance Considerations:It was foolish to attempt to resolve the problem with the flight software program without being well on course which was correctly set in my NAV 1. The qualifying factor was poor decision making and not monitoring the autopilot.

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.