Corrected IQ inversion calculation