Revert tofdm.m
authorokcsampson <okcsampson@01035d8c-6547-0410-b346-abe4f91aad63>
Wed, 12 Jul 2017 02:43:03 +0000 (02:43 +0000)
committerokcsampson <okcsampson@01035d8c-6547-0410-b346-abe4f91aad63>
Wed, 12 Jul 2017 02:43:03 +0000 (02:43 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@3295 01035d8c-6547-0410-b346-abe4f91aad63

codec2-dev/octave/tofdm.m

index d89a852344f769c36285f852d8ffe3f33af3c4ef..d5ca59e60962159b24d680ee6ff8a93b06e25ce7 100644 (file)
@@ -6,7 +6,7 @@
 % ------------------------------------------------------------------
 
 Nframes = 30;
-sample_clock_offset_ppm = 100.0;
+sample_clock_offset_ppm = 100;
 
 more off; format;
 ofdm_lib;
@@ -34,7 +34,6 @@ end
 % Channel simulation ----------------------------------------------
 
 rx_log = sample_clock_offset(tx_log, sample_clock_offset_ppm);
-rx_log = freq_shift(rx_log, .01, Fs);
 
 % Rx ---------------------------------------------------------------
 
@@ -65,7 +64,7 @@ for f=1:Nframes
   % insert samples at end of buffer, set to zero if no samples
   % available to disable phase estimation on future pilots on last
   % frame of simulation
-
   nin = states.nin;
   lnew = min(Nsam-prx+1,nin);
   rxbuf_in = zeros(1,nin);
@@ -99,7 +98,7 @@ end
 % Override default path by setting path_to_tofdm = "/your/path/to/tofdm"
 
 if exist("path_to_tofdm", "var") == 0
-   path_to_tofdm = "/home/ssampson/testing/tofdm";
+   path_to_tofdm = "../build_linux/unittest/tofdm";
 end
 system(path_to_tofdm);