updated for changed func calls
authordrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Tue, 26 Feb 2013 01:47:19 +0000 (01:47 +0000)
committerdrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Tue, 26 Feb 2013 01:47:19 +0000 (01:47 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@1168 01035d8c-6547-0410-b346-abe4f91aad63

codec2-dev/octave/fdmdv_demod_c.m

index 4f1f12386a85b80281affac3643404076acc6422..c2813e62f17af10ee5257ae8e356ac1bf5d60531 100644 (file)
@@ -36,7 +36,7 @@ function fdmdv_demod_c(dumpfilename, bits)
 
     % count bit errors if we find a test frame
 
-    [test_frame_sync bit_errors] = put_test_bits(rx_bits);
+    [test_frame_sync bit_errors] = put_test_bits(test_bits, rx_bits);
     if (test_frame_sync == 1)
       total_bit_errors = total_bit_errors + bit_errors;
       total_bits = total_bits + Ntest_bits;
@@ -79,6 +79,7 @@ function fdmdv_demod_c(dumpfilename, bits)
   figure(1)
   clf;
   plot(real(rx_symbols_log_c(1:Nc+1,15:frames)),imag(rx_symbols_log_c(1:Nc+1,15:frames)),'+')
+  %plot(real(rx_symbols_log_c(Nc+1,15:frames)),imag(rx_symbols_log_c(Nc+1,15:frames)),'+')
   axis([-2 2 -2 2]);
   title('Scatter Diagram');