Home
last modified time | relevance | path

Searched refs:num_angles (Results 1 – 1 of 1) sorted by relevance

/Zephyr-latest/samples/bluetooth/channel_sounding/src/
Ddistance_estimation.c106 uint16_t num_angles = 0; in estimate_distance_using_phase_slope() local
116 theta[num_angles] = atan2(1.0 * combined_q, 1.0 * combined_i); in estimate_distance_using_phase_slope()
117 frequencies[num_angles] = 1.0 * CS_FREQUENCY_MHZ(data[i].channel); in estimate_distance_using_phase_slope()
118 num_angles++; in estimate_distance_using_phase_slope()
122 if (num_angles < 2) { in estimate_distance_using_phase_slope()
127 bubblesort_2(frequencies, theta, num_angles); in estimate_distance_using_phase_slope()
130 for (uint8_t i = 1; i < num_angles; i++) { in estimate_distance_using_phase_slope()
134 for (uint8_t j = i; j < num_angles; j++) { in estimate_distance_using_phase_slope()
138 for (uint8_t j = i; j < num_angles; j++) { in estimate_distance_using_phase_slope()
144 float phase_slope = linear_regression(frequencies, theta, num_angles); in estimate_distance_using_phase_slope()