((int16_t*)&gNB->common_vars.rxdata[ap][slot_offset])[(2*i)+(delay*2)]=(int16_t)((tx_gain*r_re[ap][i])+(sqrt(sigma/2)*gaussdouble(0.0,1.0)));// convert to fixed point
((int16_t*)&gNB->common_vars.rxdata[ap][slot_offset])[(2*i)+(delay*2)]=(int16_t)((tx_gain*r_re[ap][i])+(sqrt(sigma/2)*gaussdouble(0.0,1.0)));// convert to fixed point