skytracker.models.state.StateGeography#

class skytracker.models.state.StateGeography(*, position: tuple[float, float], geo_altitude: float | None, baro_altitude: float | None, heading: float | None, speed_horizontal: float | None, speed_vertical: float | None, is_on_ground: bool)#

Bases: BaseModel

State geography data

Properties

model_config

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

position

latitude/longitude position [deg]

geo_altitude

geometric altitude [m]

baro_altitude

barometric altitude [m]

heading

heading [deg]

speed_horizontal

horizontal speed [m/s]

speed_vertical

vertical speed [m/s]

is_on_ground

whether aircraft is on ground

Methods

__init__(**data: Any) None#

Create a new model by parsing and validating input data from keyword arguments.

Raises [ValidationError][pydantic_core.ValidationError] if the input data cannot be validated to form a valid model.

self is explicitly positional-only to allow self as a field name.

baro_altitude: Annotated[float | None, FieldInfo(annotation=NoneType, required=True, description='Barometric altitude [m]')]#

barometric altitude [m]

Type:

float | None

geo_altitude: Annotated[float | None, FieldInfo(annotation=NoneType, required=True, description='Geometric altitude [m]')]#

geometric altitude [m]

Type:

float | None

heading: Annotated[float | None, FieldInfo(annotation=NoneType, required=True, description='Heading [deg]')]#

heading [deg]

Type:

float | None

is_on_ground: Annotated[bool, FieldInfo(annotation=NoneType, required=True, description='Whether aircraft is on ground')]#

whether aircraft is on ground

Type:

bool

model_config: ClassVar[ConfigDict] = {}#

Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].

position: Annotated[tuple[float, float], FieldInfo(annotation=NoneType, required=True, description='Latitude/longitude position [deg]')]#

latitude/longitude position [deg]

Type:

tuple[float, float]

speed_horizontal: Annotated[float | None, FieldInfo(annotation=NoneType, required=True, description='Horizontal speed [m/s]')]#

horizontal speed [m/s]

Type:

float | None

speed_vertical: Annotated[float | None, FieldInfo(annotation=NoneType, required=True, description='Vertical speed [m/s]')]#

vertical speed [m/s]

Type:

float | None