cjcliffe / CubicSDR

Cross-Platform Software-Defined Radio Application
http://www.cubicsdr.com
GNU General Public License v2.0
2.06k stars 253 forks source link

IQ output #831

Open rs1729 opened 4 years ago

rs1729 commented 4 years ago

Is there a reason for channel[0] = Imag channel[1] = Real in the IQ output? https://github.com/cjcliffe/CubicSDR/blob/master/src/modules/modem/analog/ModemIQ.cpp#L55

This way the IQ data is swapped compared to rtl_sdr (and it does not match the FM-output). Would it be possible to set

    audioOut->data[i * 2] = input->data[i].real;
    audioOut->data[i * 2 + 1] = input->data[i].imag;

in src/modules/modem/analog/ModemIQ.cpp/ModemIQ::demodulate()? (I hope this is the part responsible for the IQ-output; at least it worked for me.)

Request: Would it be possible to include an optional lowpass filter for the IQ-modem?