LOG_D(PHY,"Estimated SNR for PUSCH is = %f dB (ulsch_power %f, noise %f)\n",SNRtimes10/10.0,dB_fixed_x10(gNB->pusch_vars[ULSCH_id]->ulsch_power_tot)/10.0,dB_fixed_x10(gNB->pusch_vars[ULSCH_id]->ulsch_noise_power_tot)/10.0);
LOG_I(PHY,"Estimated SNR for PUSCH is = %f dB (ulsch_power %f, noise %f)\n",SNRtimes10/10.0,dB_fixed_x10(gNB->pusch_vars[ULSCH_id]->ulsch_power_tot)/10.0,dB_fixed_x10(gNB->pusch_vars[ULSCH_id]->ulsch_noise_power_tot)/10.0);
if(SNRtimes10<-640)cqi=0;
if(SNRtimes10<-640)cqi=0;
elseif(SNRtimes10>635)cqi=255;
elseif(SNRtimes10>635)cqi=255;
...
@@ -664,7 +664,7 @@ int phy_procedures_gNB_uespec_RX(PHY_VARS_gNB *gNB, int frame_rx, int slot_rx) {
...
@@ -664,7 +664,7 @@ int phy_procedures_gNB_uespec_RX(PHY_VARS_gNB *gNB, int frame_rx, int slot_rx) {