Capped Average Rssi Calculator
A RSSI calculator whose algorithm performs an average of latest values. The number of these values is capped to a custom maximum. The aim is to lessen the influence of erratic values, as the signal strength is unstable and so the measurement lacks precision.
Parameters
capacity
The depth of the queue. When reached, if a new value is submitted, the oldest value is discarded. A typical setting is 5, for a balance between reactivity and stability.