nRF Connect SDK API 2.8.99
|
uint16_t bt_conn_set_pcr_params::beta |
Value used to determine the weight of the previous average of RSSI values. A higher value lowers how much the current RSSI weighs into the average, flattening peaks, which also means the controller reacts slower on RSSI changes. The valid range is [0, 4095]. Default value is 2048.
In the controller, the value is used in an exponential weighted averaging of RSSI in a 12-bit fixed point fraction.
avg[n] = gamma * avg[n - 1] + (1 - gamma) * rssi[n]
Here, gamma equals beta/4096, and rssi[n] equals the current RSSI.
For example, for gamma to be 0.25, set the beta parameter in the command to 1024.