Narrative:

While on my first cross country solo flight, the compass gyroscope was not working. I was flying with the aid of the magnetic compass which was difficult to read because of intermittent mild turbulence. My attention temporarily strayed and I inadvertently strayed from my planned altitude of 7800 ft into the stapleton TCA (8000 ft). My altitude was 8050 ft when I realized what had happened and I immediately descended. I was not in the TCA more than 30 seconds at the most, and I discovered this error as I was scanning the instruments. No other aircraft were in the vicinity. Lesson learned: avoid focusing attention on one aspect of the flight.

Google
 

Original NASA ASRS Text

Title: STUDENT PLT OF AN SMA SEL ACFT INADVERTENTLY PENETRATED A TCA (CLASS B) AIRSPACE ON FIRST SOLO XCOUNTRY.

Narrative: WHILE ON MY FIRST XCOUNTRY SOLO FLT, THE COMPASS GYROSCOPE WAS NOT WORKING. I WAS FLYING WITH THE AID OF THE MAGNETIC COMPASS WHICH WAS DIFFICULT TO READ BECAUSE OF INTERMITTENT MILD TURB. MY ATTN TEMPORARILY STRAYED AND I INADVERTENTLY STRAYED FROM MY PLANNED ALT OF 7800 FT INTO THE STAPLETON TCA (8000 FT). MY ALT WAS 8050 FT WHEN I REALIZED WHAT HAD HAPPENED AND I IMMEDIATELY DSNDED. I WAS NOT IN THE TCA MORE THAN 30 SECONDS AT THE MOST, AND I DISCOVERED THIS ERROR AS I WAS SCANNING THE INSTS. NO OTHER ACFT WERE IN THE VICINITY. LESSON LEARNED: AVOID FOCUSING ATTN ON ONE ASPECT OF THE FLT.

Data retrieved from NASA's ASRS site as of July 2007 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.