|
From: | w xd |
Subject: | Re: [Discuss-gnuradio] "cfo correction in ofdm_frame_equalizer_vcvc_impl.cc" |
Date: | Thu, 12 Nov 2015 19:35:23 +0800 |
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 positionif (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
[Prev in Thread] | Current Thread | [Next in Thread] |