constants: Rename WIFI_MAX_CLUSTER_METERS to WIFI_MAX_RADIUS
This commit is contained in:
@@ -1,11 +1,11 @@
|
|||||||
WIFI_DEFAULT_RADIUS = 100 # m
|
WIFI_DEFAULT_RADIUS = 100 # m
|
||||||
WIFI_DEFAULT_SIGNAL = -100
|
WIFI_DEFAULT_SIGNAL = -100
|
||||||
WIFI_MIN_RADIUS = 10 # m
|
WIFI_MIN_RADIUS = 10 # m
|
||||||
|
WIFI_MAX_RADIUS = 500.0 # m
|
||||||
WIFI_MIN_ACCURACY = 10.0
|
WIFI_MIN_ACCURACY = 10.0
|
||||||
WIFI_MAX_ACCURACY = 500.0
|
WIFI_MAX_ACCURACY = 500.0
|
||||||
WIFI_MIN_SIGNAL = -90
|
WIFI_MIN_SIGNAL = -90
|
||||||
WIFI_MAX_SIGNAL = -10
|
WIFI_MAX_SIGNAL = -10
|
||||||
WIFI_MAX_CLUSTER_METERS = 500.0
|
|
||||||
WIFI_MAX_CLUSTER_SIZE = 20
|
WIFI_MAX_CLUSTER_SIZE = 20
|
||||||
|
|
||||||
CELL_TYPES = ('GSM', 'WCDMA', 'LTE')
|
CELL_TYPES = ('GSM', 'WCDMA', 'LTE')
|
||||||
|
@@ -16,8 +16,8 @@ from ols.constants import (
|
|||||||
CELL_MIN_SIGNAL,
|
CELL_MIN_SIGNAL,
|
||||||
WIFI_DEFAULT_SIGNAL,
|
WIFI_DEFAULT_SIGNAL,
|
||||||
WIFI_MAX_ACCURACY,
|
WIFI_MAX_ACCURACY,
|
||||||
WIFI_MAX_CLUSTER_METERS,
|
|
||||||
WIFI_MAX_CLUSTER_SIZE,
|
WIFI_MAX_CLUSTER_SIZE,
|
||||||
|
WIFI_MAX_RADIUS,
|
||||||
WIFI_MAX_SIGNAL,
|
WIFI_MAX_SIGNAL,
|
||||||
WIFI_MIN_ACCURACY,
|
WIFI_MIN_ACCURACY,
|
||||||
WIFI_MIN_SIGNAL,
|
WIFI_MIN_SIGNAL,
|
||||||
@@ -470,7 +470,7 @@ class ClusteringLocator(LocatorBase):
|
|||||||
cluster_lookups,
|
cluster_lookups,
|
||||||
min_radius=WIFI_MIN_ACCURACY,
|
min_radius=WIFI_MIN_ACCURACY,
|
||||||
min_signal=WIFI_MIN_SIGNAL,
|
min_signal=WIFI_MIN_SIGNAL,
|
||||||
max_distance=WIFI_MAX_CLUSTER_METERS)
|
max_distance=WIFI_MAX_RADIUS)
|
||||||
|
|
||||||
log.debug(
|
log.debug(
|
||||||
f'Wifi clusters: {len(clusters)} (' + ', '.join(
|
f'Wifi clusters: {len(clusters)} (' + ', '.join(
|
||||||
|
Reference in New Issue
Block a user