-
Notifications
You must be signed in to change notification settings - Fork 19
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] Use FlightInfoTemplate for flight intent storage #276
[uss_qualifier] Use FlightInfoTemplate for flight intent storage #276
Conversation
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 - there is just a change in the apply_overrides that I did not 100% understand but I think has an small issue without impact - to be double-checked.
volumes = [] | ||
else: | ||
raise ValueError( | ||
f"Unrecongized uas_state '{info.basic_information.uas_state}'" |
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.
f"Unrecongized uas_state '{info.basic_information.uas_state}'" | |
f"Unrecognized uas_state '{info.basic_information.uas_state}'" |
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.
Thanks; done
result = ImplicitDict.parse(base_object, type(base_object)) | ||
if isinstance(base_object, dict): | ||
result = {k: v for k, v in base_object.items()} | ||
elif base_object is None: |
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 never true because of
if base_object is None:
return overrides
at the beginning of the function.
Or did you mean the following?
elif base_object is None: | |
elif overrides is None: |
But if so, could that be true? I.e. can both isinstance(overrides, dict)
and overrides is None
be true at the same time?
But IIUC the condition+return can just be removed and that's not an issue.
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.
I agree -- I think the issue I was trying to address was separate from this so I've removed the clause
test scenario. Additionally, their end time must leave sufficient time for the execution of the test scenario. For the | ||
sake of simplicity, it is recommended to set the start and end times of all the intents to the same range. |
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 change should probably be also done on:
- monitoring/uss_qualifier/scenarios/astm/utm/nominal_planning/conflict_higher_priority/conflict_higher_priority.md
- monitoring/uss_qualifier/scenarios/astm/utm/flight_intent_validation/flight_intent_validation.md
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.
Sounds good -- done
* Use FlightInfoTemplate for flight intent storage * Address comments a09aac7
This PR continues the transition away from the legacy scd flight planning API by changing the flight intent storage format from being based on InjectFlightRequest (scd API) to being based on FlightInfoTemplate. The CHE flight intent test data is updated to this new format, and the vertices are shortened to just a bounding box (rather than rounded-edge rectangles) for easier readability. The Kentland flight data was unused, so therefore it is deleted in this PR to reduce maintenance burden.
To allow reuse, resolving a FlightIntentCollection (with delta definitions) to a concrete collection is moved to the FlightIntentCollection object itself.
Because verifying the new flight intent data was hard, a small script to render a FlightIntentCollection as a Google Earth KML is added to the test_data folder.
The wrong Polygon type was being referenced in geotemporal, so this is fixed.