Narrative:

After initial climb out my heading indicator light illuminated. Soon I lost my flight director bars from the ADI. Shortly after; we experienced a loud banging sound coming from the captain's side below his windscreen. I reset my heading failure button and then tried to put the autoplt on. It remained engaged for a min; but then kicked off again followed by another loud banging sound again from the captain's side. We asked to level off and the captain declared an emergency with departure control. Descended to ZZZ to a successful landing. Plane was taken OTS. I followed up on the write-up to see they had replaced the vg #2; and it operations checked normal. There was no mention about a fix for the loud banging sound we experienced in the correction side of our write-up.

Google
 

Original NASA ASRS Text

Title: IMMEDIATELY AFTER TKOF AN MD80 FO RECEIVED HDG INDICATOR LIGHT AND LOST HIS FLT DIRECTOR. A VERY LOUD BANGING SOUND BELOW THE CAPT'S WINDOW. AN EMER WAS DECLARED AND THE FLT DIVERTED TO A NEARBY ARPT.

Narrative: AFTER INITIAL CLBOUT MY HDG INDICATOR LIGHT ILLUMINATED. SOON I LOST MY FLT DIRECTOR BARS FROM THE ADI. SHORTLY AFTER; WE EXPERIENCED A LOUD BANGING SOUND COMING FROM THE CAPT'S SIDE BELOW HIS WINDSCREEN. I RESET MY HDG FAILURE BUTTON AND THEN TRIED TO PUT THE AUTOPLT ON. IT REMAINED ENGAGED FOR A MIN; BUT THEN KICKED OFF AGAIN FOLLOWED BY ANOTHER LOUD BANGING SOUND AGAIN FROM THE CAPT'S SIDE. WE ASKED TO LEVEL OFF AND THE CAPT DECLARED AN EMER WITH DEP CTL. DSNDED TO ZZZ TO A SUCCESSFUL LNDG. PLANE WAS TAKEN OTS. I FOLLOWED UP ON THE WRITE-UP TO SEE THEY HAD REPLACED THE VG #2; AND IT OPS CHKED NORMAL. THERE WAS NO MENTION ABOUT A FIX FOR THE LOUD BANGING SOUND WE EXPERIENCED IN THE CORRECTION SIDE OF OUR WRITE-UP.

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