From c6b4064571eb16410396eeb6b83ecad57148392e Mon Sep 17 00:00:00 2001 From: drowe67 Date: Sat, 13 Jun 2015 02:26:45 +0000 Subject: [PATCH] changed to NOM_SAMPLES git-svn-id: https://svn.code.sf.net/p/freetel/code@2184 01035d8c-6547-0410-b346-abe4f91aad63 --- codec2-dev/unittest/tcohpsk.c | 2 +- codec2-dev/unittest/test_cohpsk_ch.c | 36 ++++++++++++++-------------- 2 files changed, 19 insertions(+), 19 deletions(-) diff --git a/codec2-dev/unittest/tcohpsk.c b/codec2-dev/unittest/tcohpsk.c index daeb69dc..83dbc93b 100644 --- a/codec2-dev/unittest/tcohpsk.c +++ b/codec2-dev/unittest/tcohpsk.c @@ -200,7 +200,7 @@ int main(int argc, char *argv[]) nout = cohpsk_fs_offset(ch_fdm_frame_log_out, ch_fdm_frame_log, COHPSK_M*NSYMROWPILOT*FRAMES, PPM); assert(nout < (COHPSK_M*NSYMROWPILOT+1)*FRAMES); - nin_frame = COHPSK_SAMPLES_PER_FRAME; + nin_frame = COHPSK_NOM_SAMPLES_PER_FRAME; ch_fdm_frame_log_index = 0; /* --------------------------------------------------------*\ diff --git a/codec2-dev/unittest/test_cohpsk_ch.c b/codec2-dev/unittest/test_cohpsk_ch.c index 8ba27868..08e09398 100644 --- a/codec2-dev/unittest/test_cohpsk_ch.c +++ b/codec2-dev/unittest/test_cohpsk_ch.c @@ -49,7 +49,7 @@ #define ES_NO_DB 8.0 #define HF_DELAY_MS 2.0 -#define CH_BUF_SZ (4*COHPSK_SAMPLES_PER_FRAME) +#define CH_BUF_SZ (4*COHPSK_NOM_SAMPLES_PER_FRAME) /* This file gets generated using the function write_noise_file in tcohpsk.m. You have to run tcohpsk first (any variant) to load the function into Octave, e.g.: @@ -65,8 +65,8 @@ int main(int argc, char *argv[]) { struct COHPSK *coh; int tx_bits[COHPSK_BITS_PER_FRAME]; - COMP tx_fdm[COHPSK_SAMPLES_PER_FRAME]; - COMP ch_fdm[COHPSK_SAMPLES_PER_FRAME]; + COMP tx_fdm[COHPSK_NOM_SAMPLES_PER_FRAME]; + COMP ch_fdm[COHPSK_NOM_SAMPLES_PER_FRAME]; COMP ch_buf[CH_BUF_SZ]; int rx_bits[COHPSK_BITS_PER_FRAME]; float rx_bits_sd[COHPSK_BITS_PER_FRAME]; @@ -150,9 +150,9 @@ int main(int argc, char *argv[]) exit(1); } nhfdelay = floor(HF_DELAY_MS*COHPSK_FS/1000); - ch_fdm_delay = (COMP*)malloc((nhfdelay+COHPSK_SAMPLES_PER_FRAME)*sizeof(COMP)); + ch_fdm_delay = (COMP*)malloc((nhfdelay+COHPSK_NOM_SAMPLES_PER_FRAME)*sizeof(COMP)); assert(ch_fdm_delay != NULL); - for(i=0; i