From: drowe67 Date: Tue, 1 May 2018 20:59:47 +0000 (+0000) Subject: changes to cohpsk_clip, untested X-Git-Url: http://git.whiteaudio.com/gitweb/?a=commitdiff_plain;h=3273e74908066aaa0c82df6348800d496b551a15;p=freetel-svn-tracking.git changes to cohpsk_clip, untested git-svn-id: https://svn.code.sf.net/p/freetel/code@3549 01035d8c-6547-0410-b346-abe4f91aad63 --- diff --git a/codec2-dev/unittest/tcohpsk.c b/codec2-dev/unittest/tcohpsk.c index 2302c029..fc7b2b16 100644 --- a/codec2-dev/unittest/tcohpsk.c +++ b/codec2-dev/unittest/tcohpsk.c @@ -151,7 +151,7 @@ int main(int argc, char *argv[]) tx_filter_and_upconvert_coh(&tx_fdm_frame[r*COHPSK_M], COHPSK_NC*ND , tx_onesym, fdmdv->tx_filter_memory, fdmdv->phase_tx, fdmdv->freq, &fdmdv->fbb_phase_tx, fdmdv->fbb_rect); } - cohpsk_clip(tx_fdm_frame); + cohpsk_clip(tx_fdm_frame, COHPSK_CLIP, NSYMROWPILOT*COHPSK_M); /* --------------------------------------------------------*\ Channel diff --git a/codec2-dev/unittest/test_cohpsk_ch.c b/codec2-dev/unittest/test_cohpsk_ch.c index d5fec720..f700d1c6 100644 --- a/codec2-dev/unittest/test_cohpsk_ch.c +++ b/codec2-dev/unittest/test_cohpsk_ch.c @@ -172,7 +172,7 @@ int main(int argc, char *argv[]) cohpsk_get_test_bits(coh, tx_bits); cohpsk_mod(coh, tx_fdm, tx_bits, COHPSK_BITS_PER_FRAME); - cohpsk_clip(tx_fdm); + cohpsk_clip(tx_fdm, COHPSK_CLIP, COHPSK_NOM_SAMPLES_PER_FRAME); for(r=0; r