Skip to content

Commit

Permalink
reduce max_group / increase sync peer limit
Browse files Browse the repository at this point in the history
  • Loading branch information
wiedehopf committed Sep 23, 2020
1 parent 0797ed1 commit 31ef23e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions mlat/server/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
MAX_RANGE = 500e3

# soft limit for the number of peers a single receiver will have
MAX_PEERS = 50
MAX_PEERS = 70
# limit is only in effect when receivers are further than 50 km apart
MAX_PEERS_MIN_DISTANCE = 50e3
MAX_PEERS_MIN_DISTANCE = 70e3


# maximum number of planes we use for sync per receiver (randomly chosen every 15 seconds):
Expand All @@ -57,11 +57,11 @@
MLAT_DELAY = 2.0

# maxfev (maximum function evaluations) for the solver
SOLVER_MAXFEV = 145
SOLVER_MAXFEV = 165

# limit group size, discard the rest of message copies
# first pruning step before clock normalization
MAX_GROUP = 35
MAX_GROUP = 25

# only add receivers to the cluster if they are further than a certain distance
# from all receivers already in the cluster
Expand Down
2 changes: 1 addition & 1 deletion mlat/server/mlattrack.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def receiver_mlat(self, receiver, timestamp, message, utc):

# limit group size, discard the rest of message copies
# first pruning step before clock normalization
if len(group.copies) >= config.MAX_GROUP:
if len(group.copies) > config.MAX_GROUP:
return

group.copies.append((receiver, timestamp, utc))
Expand Down

0 comments on commit 31ef23e

Please sign in to comment.