Narrative:

We were level at 15000 ft after climb out of mdw, il. Controller requested a 020 degree heading, we were on a 340 degree heading. The first officer dialed in 020 degrees on the FMS mcu. After about 20 seconds I noticed the aircraft in a left turn, the wrong way to 020 degrees. I told the copilot to disconnect the autoplt and immediately turn right to 020 degrees. ATC controller said we were 'close' to another aircraft. Flight continued normally to msp.

Google
 

Original NASA ASRS Text

Title: A320 HAD TRACK DEV IN C90 CLASS E.

Narrative: WE WERE LEVEL AT 15000 FT AFTER CLBOUT OF MDW, IL. CTLR REQUESTED A 020 DEG HDG, WE WERE ON A 340 DEG HDG. THE FO DIALED IN 020 DEGS ON THE FMS MCU. AFTER ABOUT 20 SECONDS I NOTICED THE ACFT IN A L TURN, THE WRONG WAY TO 020 DEGS. I TOLD THE COPLT TO DISCONNECT THE AUTOPLT AND IMMEDIATELY TURN R TO 020 DEGS. ATC CTLR SAID WE WERE 'CLOSE' TO ANOTHER ACFT. FLT CONTINUED NORMALLY TO MSP.

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.