-
Notifications
You must be signed in to change notification settings - Fork 29
[uss_qualifier] check more tightly around clustering threhsholds for nominal_behavior #1260
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -45,6 +45,7 @@ | |
|
|
||
| SPEED_PRECISION = 0.05 | ||
| HEIGHT_PRECISION_M = 1 | ||
| DISTANCE_PRECISION_M = 0.1 | ||
| TIMESTAMP_DISCONNECT_TOLERANCE_SEC = 1 | ||
|
|
||
| # SP responses to /flights endpoint's p99 should be below this: | ||
|
|
@@ -675,7 +676,10 @@ def _evaluate_clusters_obfuscation_distance( | |
| cluster_width, cluster_height = geo.flatten( | ||
| cluster_rect.lo(), cluster_rect.hi() | ||
| ) | ||
| min_dim = 2 * self._rid_version.min_obfuscation_distance_m | ||
| min_dim = ( | ||
| 2 * self._rid_version.min_obfuscation_distance_m | ||
| - DISTANCE_PRECISION_M | ||
| ) | ||
|
Comment on lines
+679
to
+682
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Note: without the epsilon, when running the NetRID v19 scenario, for a requested diagonal of (might or might not be related to the fact that we get a cluster when we expect details, depending on how clusters are built by mock_uss) |
||
| if cluster_height < min_dim or cluster_width < min_dim: | ||
| # Cluster has a too small distance to the edge | ||
| check.record_failed( | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@BenjaminPelletier or @mickmis, above, if the diagonal is set to
max_details_diagonal_m * (1 - DISTANCE_ERROR_TOLERANCE_FRACTION), mock_uss will return a cluster rather than the details (at least if I can trust the uss_qualifier logs), at least for NetRID v19 (out of time to check for v22a)Is this expected? (I think not, but before digging I'd rather check)
I'll bring this up at the next weekly meeting (this comment is mostly to provide context during the discussion)