Skip to content

Commit

Permalink
Replace monitorlib observation_api by uas_standards
Browse files Browse the repository at this point in the history
  • Loading branch information
barroco committed Sep 13, 2023
1 parent f13a435 commit d017d41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 40 deletions.
2 changes: 1 addition & 1 deletion monitoring/mock_uss/riddp/clustering.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
from implicitdict import ImplicitDict

from monitoring.monitorlib.rid import RIDVersion
from monitoring.monitorlib.rid_automated_testing import observation_api
from uas_standards.interuss.automated_testing.rid.v1 import observation as observation_api


class Point(object):
Expand Down
40 changes: 1 addition & 39 deletions monitoring/monitorlib/rid_automated_testing/observation_api.py
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

0 comments on commit d017d41

Please sign in to comment.