Hi,
I am trying to understand the ODS demo code for calculating AOA, specifically odsdemo_aoaEstBF2D.c. I understand the 2d FFT calculation starting from line 103 till the end since ti training mentioned that in documents. What i dont understand is from line 92 to 99. Here are the codes.
/*Arrange the complex input across virtual antennas in 2D grid based on ODS antenna placement*/ for (antInd = 0; antInd < gMmwDssMCB.dataPathObj[0].numVirtualAntennas; antInd ++) { aInd = antenna2DMAP_a[antInd]; eInd = antenna2DMAP_e[antInd]; DOA_2D_storage[eInd * ODSDEMO_DOA2D_FFTSIZE + aInd].real = inputSignal[antInd].real; DOA_2D_storage[eInd * ODSDEMO_DOA2D_FFTSIZE + aInd].imag = inputSignal[antInd].imag; }
I also found `antenna2DMAP_a` and `antenna2DMAP_e` in the code, they are
antenna2DMAP_a = [0, 0, 1, 2, 0, 0, 1, 2];
antenna2DMAP_e = [0, 2, 2, 2, 1, 3, 3, 3];
I learned that ODS antenna placement is like
I wanna know that how the array can pair with the figure. and in this case the numVirtualAntennas should be 4 or 8?
Any help? thanks!