-
Notifications
You must be signed in to change notification settings - Fork 20
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
[uss_qualifier] netrid: net0260 - check SP correctly reports horizontal accuracy #825
Conversation
4899dc0
to
c3dc163
Compare
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.
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( |
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.
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 |
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.
Coming back to this after review: If accuracy_h
is None
, this will fail. This should be checked before.
836fd42
to
3b073b1
Compare
3b073b1
to
4c7afb1
Compare
[mapping.injected_flight.uss_participant_id], | ||
) as check: | ||
if ( | ||
"accuracy_h" in observed_position |
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.
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)
Progress towards #754