@@ -464,10 +469,6 @@ int main(int argc, char **argv)
txlev_float=(double)txlev/(double)AMP;// output of signal_energy is fixed point representation
printf("\n");
for(SNR=snr0;SNR<snr1;SNR+=snr_step){
n_errors=0;
...
...
@@ -484,23 +485,19 @@ int main(int argc, char **argv)
for(i=0;i<frame_length_complex_samples;i++){
for(ap=0;ap<frame_parms->nb_antennas_rx;ap++){
((short*)gNB->common_vars.rxdata[ap])[2*i]=(((int16_t*)UE->common_vars.txdata[ap])[(i<<1)])+(int16_t)(sqrt(sigma/2)*gaussdouble(0.0,1.0)*(double)AMP);// convert to fixed point
((short*)gNB->common_vars.rxdata[ap])[2*i]=(((int16_t*)UE->common_vars.txdata[ap])[(i<<1)])+(int16_t)(sqrt(sigma/2)*gaussdouble(0.0,1.0)*(double)AMP);// convert to fixed point