Skip to content

Commit 9938587

Browse files
committed
stm32 ctests working with new cohpsk_ch --fading_dir argument
1 parent 172fa91 commit 9938587

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

stm32/unittest/scripts/tst_ofdm_demod_setup

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,7 @@ case "${TEST_OPT}" in
4545
# Config is <verbose>, <testframes>, <ldpc_en>, <log_payload_syms> <profile>
4646
echo "11000000" > stm_cfg.txt
4747
ofdm_mod --in /dev/zero --out mod_bits.raw --testframes 10 > setup.log 2>&1
48-
cohpsk_ch mod_bits.raw stm_in.raw -20 --Fs 8000 -f -5 \
49-
--raw_dir ${CODEC2_BASE}/raw >> setup.log 2>&1
48+
cohpsk_ch mod_bits.raw stm_in.raw -20 --Fs 8000 -f -5 >> setup.log 2>&1
5049
ofdm_demod --in stm_in.raw --out ref_demod_out.raw --log ofdm_demod_ref_log.txt \
5150
--testframes --verbose 1 > ref_gen_log.txt 2>&1
5251
;;
@@ -56,7 +55,7 @@ case "${TEST_OPT}" in
5655
echo "11000000" > stm_cfg.txt
5756
ofdm_mod --in /dev/zero --out mod_bits.raw --testframes 60 > setup.log 2>&1
5857
cohpsk_ch mod_bits.raw stm_in.raw -24.5 --Fs 8000 -f -10 --mpp \
59-
--raw_dir ${CODEC2_BASE}/raw >> setup.log 2>&1
58+
--fading_dir ${CODEC2_BASE}/build_linux/unittest >> setup.log 2>&1
6059
ofdm_demod --in stm_in.raw --out ref_demod_out.raw --log ofdm_demod_ref_log.txt \
6160
--testframes --verbose 1 > ref_gen_log.txt 2>&1
6261
;;
@@ -65,8 +64,8 @@ case "${TEST_OPT}" in
6564
# Config is <verbose>, <testframes>, <ldpc_en>, <log_payload_syms> <profile>
6665
echo "00001000" > stm_cfg.txt
6766
ofdm_mod --in /dev/zero --out mod_bits.raw --testframes 100 > setup.log 2>&1
68-
cohpsk_ch mod_bits.raw stm_in.raw -20 --Fs 8000 -f -10 --fast \
69-
--raw_dir ${CODEC2_BASE}/raw >> setup.log 2>&1
67+
cohpsk_ch mod_bits.raw stm_in.raw -20 --Fs 8000 -f -10 --mpp \
68+
--fading_dir ${CODEC2_BASE}/build_linux/unittest >> setup.log 2>&1
7069
ofdm_demod --in stm_in.raw --out ref_demod_out.raw --log ofdm_demod_ref_log.txt \
7170
--testframes --verbose 1 > ref_gen_log.txt 2>&1
7271
;;
@@ -83,8 +82,7 @@ case "${TEST_OPT}" in
8382
# Config is <verbose>, <testframes>, <ldpc_en>, <log_payload_syms> <profile>
8483
echo "01110000" > stm_cfg.txt
8584
ofdm_mod --in /dev/zero --out mod_bits.raw --testframes 30 --ldpc 1 > setup.log 2>&1
86-
cohpsk_ch mod_bits.raw stm_in.raw -20 --Fs 8000 -f -10 \
87-
--raw_dir ${CODEC2_BASE}/raw >> setup.log 2>&1
85+
cohpsk_ch mod_bits.raw stm_in.raw -20 --Fs 8000 -f -10 >> setup.log 2>&1
8886
ofdm_demod --in stm_in.raw --out ref_demod_out.raw --log ofdm_demod_ref_log.txt \
8987
--testframes --ldpc 1 --verbose 1 > ref_gen_log.txt 2>&1
9088
;;
@@ -94,7 +92,7 @@ case "${TEST_OPT}" in
9492
echo "01110000" > stm_cfg.txt
9593
ofdm_mod --in /dev/zero --out mod_bits.raw --testframes 120 --ldpc 1 > setup.log 2>&1
9694
cohpsk_ch mod_bits.raw stm_in.raw -30 --Fs 8000 -f -10 --mpp \
97-
--raw_dir ${CODEC2_BASE}/raw >> setup.log 2>&1
95+
--fading_dir ${CODEC2_BASE}/build_linux/unittest >> setup.log 2>&1
9896
ofdm_demod --in stm_in.raw --out ref_demod_out.raw --log ofdm_demod_ref_log.txt \
9997
--testframes --ldpc 1 --verbose 1 > ref_gen_log.txt 2>&1;
10098
;;

stm32/unittest/src/tst_ofdm_demod.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -385,7 +385,7 @@ int main(int argc, char *argv[]) {
385385
fprintf(stderr, " euw: %2d %1d f: %5.1f eraw: %3d ecdd: %3d iter: %3d pcc: %3d\n",
386386
ofdm->uw_errors, ofdm->sync_counter,
387387
(double)ofdm->foff_est_hz,
388-
Nerrs_raw, Nerrs_coded, iter, parityCheckCount);
388+
Nerrs, Nerrs_coded, iter, parityCheckCount);
389389
}
390390

391391
if (config_log_payload_syms) {

0 commit comments

Comments
 (0)