Commit 7ca6a84e authored by Xiwen JIANG's avatar Xiwen JIANG

bug fixed for oarf_get_frame

parent d621de7f
......@@ -192,7 +192,7 @@ DEFUN_DLD (oarf_get_frame, args, nargout,"Get frame")
for (j=0; j<openair0_num_detected_cards;j++)
{
for (i=0; i<numant; i++)
for (i=0; i<MAX_ANTENNAS; i++)
{
//if ( numant == openair0_num_antennas[j] )
rx_sig[i+(j*MAX_ANTENNAS)] = (short*) openair0_exmimo_pci[ j ].adc_head[ i ];
......@@ -209,7 +209,7 @@ DEFUN_DLD (oarf_get_frame, args, nargout,"Get frame")
for (j=0; j<openair0_num_detected_cards;j++)
for (i=0; i<frame_length_samples[j]; i++)
for (aa=0; aa<numant; aa++)
for (aa=0; aa<MAX_ANTENNAS; aa++)
dx(i, aa+j*MAX_ANTENNAS) = Complex( rx_sig[aa+j*MAX_ANTENNAS][i*2], rx_sig[aa+j*MAX_ANTENNAS][i*2+1] );
openair0_close();
......
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