Skip to content
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

[uss_qualifier] netrid: net0260 - check SP correctly reports horizontal accuracy #825

Merged
merged 1 commit into from
Nov 14, 2024

Conversation

Shastick
Copy link
Contributor

@Shastick Shastick commented Oct 29, 2024

Progress towards #754

@Shastick Shastick marked this pull request as ready for review October 29, 2024 17:56
@Shastick Shastick marked this pull request as draft October 31, 2024 16:51
@Shastick Shastick marked this pull request as ready for review November 4, 2024 11:55
@Shastick Shastick force-pushed the net-0260-horizontal-accuracy branch from 4899dc0 to c3dc163 Compare November 6, 2024 14:21
Copy link
Contributor

@mickmis mickmis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM modulo minor comment.

@@ -938,6 +938,19 @@ def _evaluate_normal_sp_observation(
details=f"{mapping.injected_flight.uss_participant_id}'s flight with injection ID {mapping.injected_flight.flight.injection_id} in test {mapping.injected_flight.test_id} had telemetry index {mapping.telemetry_index} at {injected_telemetry.timestamp} with vertical speed {injected_telemetry.vertical_speed}, but Service Provider reported vertical speed {mapping.observed_flight.flight.raw.current_state.vertical_speed} at {mapping.observed_flight.query.query.request.initiated_at}",
)

with self._test_scenario.check(
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is relying on observed_position and injected_position. Move this block closer up where those are defined? There is a check in the middle that does not rely on it.

) as check:
if (
injected_position.accuracy_h.value
!= observed_position.accuracy_h.value
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Coming back to this after review: If accuracy_h is None, this will fail. This should be checked before.

@Shastick Shastick force-pushed the net-0260-horizontal-accuracy branch 2 times, most recently from 836fd42 to 3b073b1 Compare November 13, 2024 12:00
@Shastick Shastick force-pushed the net-0260-horizontal-accuracy branch from 3b073b1 to 4c7afb1 Compare November 13, 2024 12:20
[mapping.injected_flight.uss_participant_id],
) as check:
if (
"accuracy_h" in observed_position
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

FTR for the later pass on those, we probably should fail the check if the accuracy is injected but not observed (not the case here).
(I think I left a similar comment for the vertical accuracy)

@mickmis mickmis merged commit 9698154 into interuss:main Nov 14, 2024
20 checks passed
@mickmis mickmis deleted the net-0260-horizontal-accuracy branch November 14, 2024 08:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants