unit test code working, but actual test failing on tx output
authordrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Mon, 12 Jun 2017 05:22:11 +0000 (05:22 +0000)
committerdrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Mon, 12 Jun 2017 05:22:11 +0000 (05:22 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@3182 01035d8c-6547-0410-b346-abe4f91aad63

codec2-dev/octave/tofdm.m

index 4816ca1cd0bee692c048dafcf4d04ab4eb87d5f4..ffff746a02f7dc7084b5b47a4cb83ef91ec28d56 100644 (file)
@@ -31,11 +31,11 @@ system('../build_linux/unittest/tofdm');
 load tofdm_out.txt;
 
 stem_sig_and_error(1, 111, tx_bits_log_c, tx_bits_log - tx_bits_log_c, 'tx bits', [1 length(tx_bits_log) -1.5 1.5])
-stem_sig_and_error(2, 211, real(tx_log_c), real(tx_log - tx_log_c), 'tx re', [1 length(tx_log_c) -1.5 1.5])
-stem_sig_and_error(2, 212, imag(tx_log_c), real(tx_log - tx_log_c), 'tx im', [1 length(tx_log_c) -1.5 1.5])
+stem_sig_and_error(2, 211, real(tx_log_c), real(tx_log - tx_log_c), 'tx re', [1 length(tx_log_c) -0.1 0.1])
+stem_sig_and_error(2, 212, imag(tx_log_c), real(tx_log - tx_log_c), 'tx im', [1 length(tx_log_c) -0.1 0.1])
 
 % Run through checklist -----------------------------
 
 check(W, W_c, 'W');
 check(tx_bits_log, tx_bits_log_c, 'tx_bits');
-check(tx_symbols_log, tx_log_c, 'tx');
+check(tx_log, tx_log_c, 'tx');