Hi all,

         I have looked at the code of ofdm_frame_equalizer_vcvc_impl.cc and
I have a question about it.Thank you in advance.


        To the payload route:

        The frame_len for example is 9.I think we should shift all the 9
symbols respectively.To the below source gnuradio code,it have shifted all
the frame_len*d_fft_len in one time.

I think maybe  it should like this:

        for(int i=1;i<=9;i++)
        {
               shift_symbol(i)
         }
....




        // Copy the frame and the channel state vector such that the
symbols are shifted to the correct position
      if (carrier_offset < 0) {
memset((void *) out, 0x00, sizeof(gr_complex) * (-carrier_offset));
memcpy(
   (void *) &out[-carrier_offset], (void *) in,
   sizeof(gr_complex) * (d_fft_len * frame_len + carrier_offset)
);
      } else {
memset((void *) (out + d_fft_len * frame_len - carrier_offset), 0x00,
sizeof(gr_complex) * carrier_offset);
memcpy(
   (void *) out, (void *) (in+carrier_offset),
   sizeof(gr_complex) * (d_fft_len * frame_len - carrier_offset)
);
      }

Thank you so much.

Best regards,
xd
_______________________________________________
Discuss-gnuradio mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to