bug fixed for oarf_get_frame
This commit is contained in:
@@ -192,14 +192,14 @@ DEFUN_DLD (oarf_get_frame, args, nargout,"Get frame")
|
|||||||
|
|
||||||
for (j=0; j<openair0_num_detected_cards;j++)
|
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] )
|
//if ( numant == openair0_num_antennas[j] )
|
||||||
rx_sig[i+(j*MAX_ANTENNAS)] = (short*) openair0_exmimo_pci[ j ].adc_head[ i ];
|
rx_sig[i+(j*MAX_ANTENNAS)] = (short*) openair0_exmimo_pci[ j ].adc_head[ i ];
|
||||||
//else
|
//else
|
||||||
// rx_sig[i+(j*MAX_ANTENNAS)] = (short*) openair0_exmimo_pci[ i / (int)openair0_num_antennas[0] ].adc_head[i % openair0_num_antennas[0]];
|
// rx_sig[i+(j*MAX_ANTENNAS)] = (short*) openair0_exmimo_pci[ i / (int)openair0_num_antennas[0] ].adc_head[i % openair0_num_antennas[0]];
|
||||||
|
|
||||||
// printf("Card %i adc_head[%i] = %p \n",j, i, rx_sig[i+(j*MAX_ANTENNAS)]);
|
// printf("Card %i adc_head[%i] = %p \n",j, i, rx_sig[i+(j*MAX_ANTENNAS)]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -208,8 +208,8 @@ DEFUN_DLD (oarf_get_frame, args, nargout,"Get frame")
|
|||||||
openair0_get_frame(card);
|
openair0_get_frame(card);
|
||||||
|
|
||||||
for (j=0; j<openair0_num_detected_cards;j++)
|
for (j=0; j<openair0_num_detected_cards;j++)
|
||||||
for (i=0; i<frame_length_samples[j]; i++)
|
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] );
|
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();
|
openair0_close();
|
||||||
|
|||||||
Reference in New Issue
Block a user