nRF Connect SDK API 3.3.99
Loading...
Searching...
No Matches

◆ cs_de_ifft()

float cs_de_ifft ( float iq_tones_comb[2 *CONFIG_BT_CS_DE_NFFT_SIZE])

#include <include/bluetooth/cs_de.h>

Calculates a distance estimate based on the IFFT magnitude of the input IQ values. Note! After calling this function, the input IQ values in iq_tones_comb are overwritten with the IFFT magnitude.

Parameters
[in,out]iq_tones_combcombined IQ values from two devices. The first CS_DE_NUM_CHANNELS * 2 elements should match the format described in cs_de_combined_iq_calculate
Returns
Distance estimate between the two devices in meters