Baron 58/58TC
Flight Crew Instrument; Flight Crew Flight Instructor; Flight Crew Air Transport Pilot (ATP); Flight Crew Multiengine
Flight Crew Last 90 Days 30; Flight Crew Total 6100; Flight Crew Type 800
Situational Awareness; Distraction
Airspace Violation All Types; Deviation - Track / Heading All Types; Deviation / Discrepancy - Procedural FAR; Deviation / Discrepancy - Procedural Clearance
Flight Crew Became Reoriented; Flight Crew Took Evasive Action
Human Factors
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.
BE58 pilot reported the autopilot disconnected while he was distracted with other tasks resulting in an unintentional entry into Class B airspace.