27 lines
521 B
Python
27 lines
521 B
Python
from typing import TypedDict
|
|
from typing_extensions import Annotated
|
|
|
|
from .decode import flarm as flarm_decode
|
|
|
|
__all__ = ["DecodedMessage", "flarm"]
|
|
|
|
|
|
class DecodedMessage(TypedDict):
|
|
timestamp: int
|
|
icao24: str
|
|
latitude: float
|
|
longitude: float
|
|
altitude: Annotated[int, "m"]
|
|
vertical_speed: Annotated[float, "m/s"]
|
|
groundspeed: int
|
|
track: int
|
|
type: str
|
|
sensorLatitude: float
|
|
sensorLongitude: float
|
|
isIcao24: bool
|
|
noTrack: bool
|
|
stealth: bool
|
|
|
|
|
|
flarm = flarm_decode
|