Hi, I am trying to implement the AOA using the MUSIC algorithm. I am using direction_finding_connectionless_rx code in zephyr (nordic sdk v2.3.0).
I am using nRF52833dk (tag) and nRF52833dk with 4x4 coreHW rectangular antenna array (locator) connected with gpio pins 3,4,28,29. I am getting 8 samples from the reference period, 1 to 37 samples with 2 µs antenna switching slots (45 samples totally).
I am trying to toggle only 3 antennas in linear form with reference antenna (7), so I have set the ant_patterns[ ] as { 0x7, 0x6, 0x7, 0x8, 0x7, 0x9, 0x7 } in main.c. I have printed the antenna ID, it's correct as per the pattern I have set in main.c. But according to the BLE's direction finding specification the 1st 8 samples are from the reference antenna (reference period). I am not sure where I should set the reference antenna in the code. According to the readme.rst file provided in the code, Reference period where single antenna is used for sampling. The samples are spaced 1 µs from each other. The period duration is 8 µs. I am not sure whether it takes reference antenna as a 1st antenna in my antenna switching pattern mentioned above (main.c) 0x7 or It will takes antenna that have been set as dfe-pdu-antenna = <0x7> in (nrf52833dk_nrf52833.overlay) file.
Where should I set the reference antenna?