-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Replace monitorlib observation_api by uas_standards
- Loading branch information
Showing
2 changed files
with
2 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 1 addition & 39 deletions
40
monitoring/monitorlib/rid_automated_testing/observation_api.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,39 +1 @@ | ||
from typing import List, Optional | ||
|
||
from implicitdict import ImplicitDict | ||
from uas_standards.astm.f3411 import v22a | ||
|
||
|
||
# Mirrors of types defined in remote ID automated testing observation API | ||
|
||
|
||
class Position(ImplicitDict): | ||
lat: float | ||
lng: float | ||
alt: Optional[float] | ||
|
||
|
||
class Path(ImplicitDict): | ||
positions: List[Position] | ||
|
||
|
||
class Cluster(ImplicitDict): | ||
corners: List[Position] | ||
area_sqm: float | ||
number_of_flights: int | ||
|
||
|
||
class Flight(ImplicitDict): | ||
id: str | ||
most_recent_position: Optional[Position] | ||
recent_paths: Optional[List[Path]] | ||
|
||
|
||
class GetDetailsResponse(v22a.api.RIDFlightDetails): | ||
# TODO: Update automated_testing_interface instead of using the ASTM details response schema | ||
pass | ||
|
||
|
||
class GetDisplayDataResponse(ImplicitDict): | ||
flights: List[Flight] = [] | ||
clusters: List[Cluster] = [] | ||
# Replaced by uas_standards definitions |