USB modem fix re: firhilbf c2r update

This commit is contained in:
Charles J. Cliffe 2019-04-17 00:12:54 -04:00
parent 35ae486d20
commit 1a362152ee

View File

@ -56,9 +56,8 @@ void ModemUSB::demodulate(ModemKit *kit, ModemIQData *input, AudioThreadInput *a
nco_crcf_mix_down(ssbShift, input->data[i], &x); nco_crcf_mix_down(ssbShift, input->data[i], &x);
iirfilt_crcf_execute(ssbFilt, x, &y); iirfilt_crcf_execute(ssbFilt, x, &y);
nco_crcf_mix_up(ssbShift, y, &x); nco_crcf_mix_up(ssbShift, y, &x);
// TODO: use fixed firhilbf_c2r usb param to simplify instead of shifting and discarding float lsb_discard;
float usb_discard; firhilbf_c2r_execute(c2rFilt, x, &lsb_discard, &demodOutputData[i]);
firhilbf_c2r_execute(c2rFilt, x, &demodOutputData[i], &usb_discard);
} }
buildAudioOutput(akit, audioOut, true); buildAudioOutput(akit, audioOut, true);