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

◆ cs_de_rtt()

float cs_de_rtt ( int32_t rtt_accumulated_half_ns,
uint8_t rtt_count )

#include <include/bluetooth/cs_de.h>

Calculate a distance estimate based on the accumulated RTT To do this, average time of flight is calculated and multiplied with the speed of light.

Parameters
[in]rtt_accumulated_half_nsthe accumulated total of RTT values over a CS procedure in units of 0.5 ns.
[in]rtt_countthe total number of rtt measurements in the procedure
Returns
Distance estimate between the two devices in meters