bugifix
This commit is contained in:
@@ -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);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user