improve antenna order detection
This commit is contained in:
parent
28d096af44
commit
c4196503d8
@ -11,13 +11,13 @@ AntennaIdentifier = tuple[ingest.Host, int]
|
||||
order: list[AntennaIdentifier] = []
|
||||
prev_unplugged: set[AntennaIdentifier] = set()
|
||||
long_antenna_average: dict[AntennaIdentifier, deque[int]] = {
|
||||
(host, 0): deque(maxlen=10 * config.sample_rate) for host in config.receive_hosts
|
||||
} | {(host, 1): deque(maxlen=10 * config.sample_rate) for host in config.receive_hosts}
|
||||
(host, 0): deque(maxlen=15 * config.sample_rate) for host in config.receive_hosts
|
||||
} | {(host, 1): deque(maxlen=15 * config.sample_rate) for host in config.receive_hosts}
|
||||
short_antenna_average: dict[AntennaIdentifier, deque[int]] = {
|
||||
(host, 0): deque(maxlen=config.sample_rate) for host in config.receive_hosts
|
||||
} | {(host, 1): deque(maxlen=config.sample_rate) for host in config.receive_hosts}
|
||||
(host, 0): deque(maxlen=2 * config.sample_rate) for host in config.receive_hosts
|
||||
} | {(host, 1): deque(maxlen=2 * config.sample_rate) for host in config.receive_hosts}
|
||||
|
||||
RSSI_THRESHOLD = 8
|
||||
RSSI_THRESHOLD = 10
|
||||
|
||||
|
||||
def average(data: Collection[Any]) -> float:
|
||||
|
||||
Loading…
Reference in New Issue
Block a user