fixed bug in fdmdv_ut to use do_fft param, Thanks John Gibbs
authordrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Sun, 30 Nov 2014 21:05:25 +0000 (21:05 +0000)
committerdrowe67 <drowe67@01035d8c-6547-0410-b346-abe4f91aad63>
Sun, 30 Nov 2014 21:05:25 +0000 (21:05 +0000)
git-svn-id: https://svn.code.sf.net/p/freetel/code@1955 01035d8c-6547-0410-b346-abe4f91aad63

codec2-dev/octave/fdmdv_ut.m

index 0df37aed6a02b1c17581100efc42744b13502d3e..3ee5b4de6bd3a3462ac5277d91c926a0c046ea20 100644 (file)
@@ -182,7 +182,7 @@ for f=1:frames
   % mode to keep states updated
   
   [pilot prev_pilot pilot_lut_index prev_pilot_lut_index] = get_pilot(pilot_lut_index, prev_pilot_lut_index, M);
-  [foff_coarse S1 S2] = rx_est_freq_offset(rx_fdm, pilot, prev_pilot, M);
+  [foff_coarse S1 S2] = rx_est_freq_offset(rx_fdm, pilot, prev_pilot, M, !sync);
 
   if sync == 0
     foff = foff_coarse;