Commit 8999b51c authored by Francesco Mani's avatar Francesco Mani

bugifix

parent 3952ad77
...@@ -360,12 +360,13 @@ void nr_decode_pucch0(PHY_VARS_gNB *gNB, ...@@ -360,12 +360,13 @@ void nr_decode_pucch0(PHY_VARS_gNB *gNB,
printf("PUCCH IDFT[%d/%d] = (%d,%d)=>%f\n",mcs[i],seq_index,corr_re,corr_im,10*log10(corr_re*corr_re + corr_im*corr_im)); printf("PUCCH IDFT[%d/%d] = (%d,%d)=>%f\n",mcs[i],seq_index,corr_re,corr_im,10*log10(corr_re*corr_re + corr_im*corr_im));
#endif #endif
temp=corr_re*corr_re + corr_im*corr_im; temp=corr_re*corr_re + corr_im*corr_im;
no_corr+=temp;
if (temp>xrtmag) { if (temp>xrtmag) {
xrtmag=temp; xrtmag=temp;
maxpos=i; maxpos=i;
} }
else no_corr+=temp;
} }
no_corr-=xrtmag;
if (nr_sequences>1) if (nr_sequences>1)
no_corr/=(nr_sequences-1); no_corr/=(nr_sequences-1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment