Complex atmospheric environment seriously affect the quality of wireless of information transmission. In order to improve the wireless optical communication quality, and reduce the influence of attenuation, flicker, angle misalignment caused by atmospheric scattering, absorption, turbulence, beam expander, mismatch, atmospheric channel model is established while coding techniques for error control in wireless optical communication was researched into.The improvement result of error rate by error correction coding in different SNR situations was obtained. The results showed that the LDPC coding can significantly reduce the BER. For Gaussian channel, SNR can be reduced 8 dB when BER is 10-6; For wireless optical communication , LDPC codes can make the error rate reduced by 4-5 orders of magnitude.